enable etcd latency metrics in kube-apiserver

kube-apiserver has a histogram etcd_request_duration_seconds that
measures latency between the kube-apiserver and etcd instance.
This metrics is currently dropped by cluster-prometheus. Enable
this metrics so we have visibility into etcd latency.

We ensured that this does not enable other unwanted metrcis

count by(name) ({name=~"etcd_request.+"})

etcd_request_duration_seconds_bucket
etcd_request_duration_seconds_count
etcd_request_duration_seconds_sum
This commit is contained in:
Abu Kashem
2020-07-03 09:49:56 -04:00
parent f4568b06dc
commit 4d6e3d5c19
2 changed files with 2 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ spec:
sourceLabels:
- __name__
- action: drop
regex: etcd_(debugging|disk|request|server).*
regex: etcd_(debugging|disk|server).*
sourceLabels:
- __name__
- action: drop