feat(servicemonitor): for prometheus, use pod name for instance

!1
This commit is contained in:
2023-09-23 18:43:54 +09:30
parent 89f0feae08
commit e2540a955f

View File

@ -14,6 +14,13 @@ spec:
endpoints:
- interval: 30s
port: web
relabelings:
- action: replace
regex: (.*)
replacement: $1
sourceLabels:
- __meta_kubernetes_pod_name
targetLabel: instance
- interval: 30s
port: reloader-web
selector: