Skip to content

Commit

Permalink
ROX-14270: Add cloudwatch exporter pod monitor
Browse files Browse the repository at this point in the history
Add a pod monitor to scrape the cloudwatch exporter. The exporter is
used to scrape RDS database metrics from AWS.

See stackrox/acs-fleet-manager#801 for the
cloudwatch exporter deployment.
  • Loading branch information
stehessel committed Feb 8, 2023
1 parent 5b9c55b commit 71bf409
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"pod_monitors": [
"prometheus/pod_monitors/prometheus-self-metrics.yaml",
"prometheus/pod_monitors/rhacs-central-metrics.yaml",
"prometheus/pod_monitors/rhacs-cloudwatch-exporter.yaml",
"prometheus/pod_monitors/rhacs-fleetshard-sync-metrics.yaml",
"prometheus/pod_monitors/rhacs-probe-metrics.yaml",
"prometheus/pod_monitors/rhacs-scanner-metrics.yaml"
Expand Down
22 changes: 22 additions & 0 deletions resources/prometheus/pod_monitors/rhacs-cloudwatch-exporter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: rhacs-cloudwatch-metrics
labels:
app: strimzi
spec:
selector:
matchLabels:
app: cloudwatch-exporter
namespaceSelector:
any: true
podMetricsEndpoints:
- path: /metrics
port: monitoring
relabelings:
- action: labeldrop
regex: endpoint

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

0 comments on commit 71bf409

Please sign in to comment.