diff --git a/prod-upgrade/prom/prometheus.yaml b/prod-upgrade/prom/prometheus.yaml index b73b289..424e9af 100644 --- a/prod-upgrade/prom/prometheus.yaml +++ b/prod-upgrade/prom/prometheus.yaml @@ -25,6 +25,22 @@ data: target_label: instance - target_label: __address__ replacement: mysql-exporter.base.svc:9104 + + - job_name: mongo + static_configs: + - targets: + # All mysql hostnames or unix sockets to monitor. + - mongodb://mongo-rs0-0.mongo-rs0.base.svc:27017 + - mongodb://mongo-rs0-1.mongo-rs0.base.svc:27017 + - mongodb://mongo-rs0-2.mongo-rs0.base.svc:27017 + relabel_configs: + - source_labels: [__address__] + target_label: __param_target + - source_labels: [__param_target] + target_label: instance + - target_label: __address__ + replacement: mongo-exporter.base.svc:9216 + rule_files: - /etc/prometheus/rules/rule-0.yaml alerting: