Skip to content

Commit

Permalink
Add emailsender metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
kurlov committed Jul 12, 2024
1 parent 12c3dfa commit 9d0d0de
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"prometheus/pod_monitors/prometheus-self-metrics.yaml",
"prometheus/pod_monitors/rhacs-cloudwatch-exporter.yaml",
"prometheus/pod_monitors/rhacs-fleetshard-sync-metrics.yaml",
"prometheus/pod_monitors/rhacs-tenant-metrics.yaml"
"prometheus/pod_monitors/rhacs-tenant-metrics.yaml",
"prometheus/pod_monitors/rhacs-emailsender-metrics.yaml"
],
"rules": [
"prometheus/billing-rules.yaml",
Expand Down
30 changes: 30 additions & 0 deletions resources/prometheus/pod_monitors/rhacs-emailsender-metrics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: rhacs-emailsender-metrics
labels:
app: rhacs
spec:
selector:
matchLabels:
app: "emailsender"
namespaceSelector:
any: true
podMetricsEndpoints:
- path: /metrics
port: monitoring
relabelings:
- action: labeldrop
regex: endpoint

- sourceLabels: [container]
action: replace
targetLabel: job

- action: labelmap
regex: __meta_kubernetes_pod_annotation_rhacs_redhat_com_(.+)
replacement: rhacs_${1}

- action: labelmap
regex: __meta_kubernetes_pod_label_rhacs_redhat_com_(.+)
replacement: rhacs_${1}

0 comments on commit 9d0d0de

Please sign in to comment.