mirror of
https://github.com/lensapp/lens.git
synced 2024-09-20 13:57:23 +03:00
1019 B
1019 B
Using Custom Prometheus
When using custom prometheus with Lens app, Lens expects certain things for prometheus rules and labels. Below is listed the changes required to see metrics properly.
kube-prometheus
- To see node metrics properly, please add
- action: replace
regex: (.*)
replacement: $1
sourceLabels:
- __meta_kubernetes_pod_node_name
targetLabel: kubernetes_node
relabeling to node-exporter
servicemonitor crd (for example kubectl edit -n monitoring servicemonitors node-exporter
).
- To see cluster's pod usage on cluster overview properly, please add
metricsRelabeling
tokubelet
service monitor (kubectl edit -n monitoring servicemonitors kubelet
)
metricRelabelings:
- action: replace
sourceLabels:
- node
targetLabel: instance
Helm chart
- To see cpu metrics properly, please set value of
server.global.scrape_timeout
less than 1 minute, for example
helm upgrade --set server.global.scrape_interval=30s prometheus stable/prometheus