-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ROX-14270: Add cloudwatch exporter pod monitor
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
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
resources/prometheus/pod_monitors/rhacs-cloudwatch-exporter.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |