Skip to content

Commit

Permalink
chore(prometheus): add "pod" labeldrop to several serviceMonitors
Browse files Browse the repository at this point in the history
  • Loading branch information
joryirving committed Mar 18, 2024
1 parent 495a896 commit e1c8f4d
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ spec:
release: prometheus
interval: 30s
scrapeTimeout: 30s
additionalRelabeling:
- action: labeldrop
regex: (pod)
targets:
- module: icmp
name: unifi-dream-machine
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ spec:
- /dev/nvme0n1
serviceMonitor:
enabled: true
relabelings:
- action: labeldrop
regex: (pod)
prometheusRules:
enabled: false
tolerations: {}
6 changes: 6 additions & 0 deletions kubernetes/main/apps/observability/gatus/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ spec:
path: /metrics
interval: 1m
scrapeTimeout: 10s
metricRelabelings:
- action: labeldrop
regex: (pod)
- action: replace
sourceLabels: ["service"]
targetLabel: instance
ingress:
app:
className: external
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,9 @@ spec:
- vonage-status-panel
serviceMonitor:
enabled: true
metricRelabelings:
- action: labeldrop
regex: (pod)
ingress:
enabled: true
ingressClassName: external
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ spec:
- /dev/sda
serviceMonitor:
enabled: true
relabelings:
- action: labeldrop
regex: (pod)
prometheusRules:
enabled: false
tolerations: {}

0 comments on commit e1c8f4d

Please sign in to comment.