Skip to content

Commit

Permalink
Adding extra labels to our metrics
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Schwartz <[email protected]>
  • Loading branch information
ahus1 committed Jan 8, 2025
1 parent 3f2417d commit e039bb4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions provision/minikube/keycloak/templates/keycloak-monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,21 @@ spec:
selector:
matchLabels:
app: keycloak
# Use pod target labels "as is" without any renaming
# podTargetLabels:
# - app
podMetricsEndpoints:
- port: management
scheme: https
tlsConfig:
insecureSkipVerify: true
relabelings:
- targetLabel: application
# Alternative: hard-coded value
# replacement: "keycloak"
sourceLabels:
- __meta_kubernetes_pod_label_app
regex: (.+)
replacement: ${1}

{{ end }}

0 comments on commit e039bb4

Please sign in to comment.