udpate prom add mongo

main
ycz008 2024-04-25 15:44:24 +08:00
parent d4d4d4ac2b
commit 71492fb0a4
1 changed files with 2 additions and 1 deletions

View File

@ -40,7 +40,7 @@ data:
target_label: instance
- target_label: __address__
replacement: mongo-exporter.base.svc:9216
rule_files:
- /etc/prometheus/rules/rule-0.yaml
alerting:
@ -89,6 +89,7 @@ spec:
- --config.file=/etc/prometheus/prometheus.yaml
- --storage.tsdb.path=/etc/prometheus/data
- --storage.tsdb.retention.time=15d
- --web.enable-lifecycle
volumeMounts:
- name: prometheus
mountPath: /prometheus/