mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Update lens.ts
This commit is contained in:
parent
c96b226f91
commit
574c2fcf79
@ -118,9 +118,9 @@ export class PrometheusLens extends PrometheusProvider {
|
|||||||
case "bytesSentFailure":
|
case "bytesSentFailure":
|
||||||
return this.bytesSent(opts.ingress, opts.namespace, "^5\\\\d*");
|
return this.bytesSent(opts.ingress, opts.namespace, "^5\\\\d*");
|
||||||
case "requestDurationSeconds":
|
case "requestDurationSeconds":
|
||||||
return `sum(rate(nginx_ingress_controller_request_duration_seconds_sum{ingress="${opts.ingress}",namespace="${opts.namespace}"}[${this.rateAccuracy}])) by (ingress, namespace)`;
|
return `sum(rate(nginx_ingress_controller_request_duration_seconds_sum{ingress="${opts.ingress}",exported_namespace="${opts.namespace}"}[${this.rateAccuracy}])) by (ingress, namespace)`;
|
||||||
case "responseDurationSeconds":
|
case "responseDurationSeconds":
|
||||||
return `sum(rate(nginx_ingress_controller_response_duration_seconds_sum{ingress="${opts.ingress}",namespace="${opts.namespace}"}[${this.rateAccuracy}])) by (ingress, namespace)`;
|
return `sum(rate(nginx_ingress_controller_response_duration_seconds_sum{ingress="${opts.ingress}",exported_namespace="${opts.namespace}"}[${this.rateAccuracy}])) by (ingress, namespace)`;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user