add mongodb dashboard

This commit is contained in:
tom.chivert 2023-09-13 14:09:13 +02:00
parent 023ae33b7b
commit 424a85c88f
3 changed files with 1515 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@ -125,6 +125,16 @@
when: prometheus_mysqld_exporter_targets is defined when: prometheus_mysqld_exporter_targets is defined
notify: "grafana-prometheus-restart" notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana mongodb dashboard"
copy:
src: dashboards/mongodb.json
dest: /opt/docker-compose/grafana-prometheus/dashboards/mongodb.json
owner: '1000'
group: '1000'
mode: '0750'
when: prometheus_mongodb_exporter_targets is defined
notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | import grafana network dashboard" - name: "grafana-prometheus | import grafana network dashboard"
copy: copy:
src: dashboards/network.json src: dashboards/network.json

View File

@ -4,7 +4,7 @@ After=network.target
[Service] [Service]
Type=simple Type=simple
ExecStart=/usr/local/bin/prometheus-mongodb-exporter --compatible-mode --collect-all --discovering-mode ExecStart=/usr/local/bin/prometheus-mongodb-exporter --compatible-mode --collect-all
EnvironmentFile=/etc/default/prometheus-mongodb-exporter EnvironmentFile=/etc/default/prometheus-mongodb-exporter
[Install] [Install]