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