fix: thread polaris metrics

pull/17608/head^2
fuwx 1 year ago
parent 1a699a2481
commit 292d19fbfd
No known key found for this signature in database
GPG Key ID: C8FA8C18DFB4702B

@ -47,7 +47,7 @@ class ThreadPolarisP90(BuiltinTool):
return json.dumps(stats)
def get_metrics(self, type: str, pod: str, start: int, end: int) -> dict:
query = 'increase(originx_thread_polaris_nanoseconds_sum{pod="' + pod + '", type="cpu"}[1m])'
query = 'increase(originx_thread_polaris_nanoseconds_sum{pod="' + pod + '", type="' + type + '"}[1m])'
step = '10m'
hour = 3600 * 1000

Loading…
Cancel
Save