You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| serviceMonitor.namespace | string |`""`| Install the ServiceMonitor into a different Namespace, as the monitoring stack one (default: the release one) |
107
+
| serviceMonitor.labels | object |`{"release":"kube-prometheus-stack"}`| Assign additional labels according to Prometheus' serviceMonitorSelector matching labels. By default, it uses the kube-prometheus-stack one. |
108
+
| serviceMonitor.matchLabels | object |`{}`| Change matching labels. By default, it uses client service labels. |
109
+
| serviceMonitor.namespace | string |`""`| Install the ServiceMonitor into a different namespace than release one. |
110
+
| serviceMonitor.serviceAccount | object |`{"name":"kube-prometheus-stack-prometheus","namespace":"monitoring-system"}`| ServiceAccount for scraping metrics from etcd. By defult, it uses the kube-prometheus-stack one. |
111
+
| serviceMonitor.serviceAccount.name | string |`"kube-prometheus-stack-prometheus"`| ServiceAccount name |
By default such `ServiceMonitor` is installed in the same namespace as the `kamaji-etcd` release. If you want to install it in a different namespace, you can set the `serviceMonitor.namespace` value to the desired namespace.
68
+
69
+
By default, the `ServiceMonitor` is configured to scrape metrics every 15 seconds. You can adjust this interval by setting the `serviceMonitor.endpoint.interval` value.
70
+
71
+
By default, the `ServiceMonitor` uses the ServiceAccount `kube-prometheus-stack-prometheus` in the `monitoring-system` namespace to scrape metrics from etcd. If you want to use a different ServiceAccount, you can set the `serviceMonitor.serviceAccount.name` and value `serviceMonitor.serviceAccount.namespace` to the desired values.
72
+
45
73
## Key Metrics to Monitor
46
74
47
75
Here’s a summary of important `etcd` metrics that help monitor cluster health. A full list of metrics is available [here](https://etcd.io/docs/v3.5/metrics/etcd-metrics-latest.txt).
High disk write latency can signal disk issues and affect `etcd` stability. To monitor disk performance, visualize the time taken to commit 99% of requests:
98
126
99
127
```sh
100
-
histogram_quantile(0.99, sum(rate(etcd_disk_backend_commit_duration_seconds_bucket{job=~"etcd"}[5m])) by (le,instance))
128
+
histogram_quantile(0.99, sum(rate(etcd_disk_backend_commit_duration_seconds_bucket{job=~"kamaji-etcd"}[5m])) by (le,instance))
0 commit comments