update exporter conf for mongoDB and mysql

This commit is contained in:
Ludovic Cartier
2021-05-31 16:23:19 +02:00
parent 78bceb35f7
commit e51e4ce7a0
6 changed files with 21 additions and 25 deletions

View File

@ -5,7 +5,7 @@ After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/prometheus-mongodb-exporter
EnvironmentFile=/etc/mongodb-exporter.conf
EnvironmentFile=/etc/default/prometheus-mongodb-exporter
[Install]
WantedBy=multi-user.target

View File

@ -1,10 +1,12 @@
[Unit]
Description=Prometheus PostgreSQL Exporter
After=network.target
[Service]
Type=simple
User={{ prometheus_postgres_exporter_user|default("postgres") }}
ExecStart=/usr/local/bin/prometheus-postgres-exporter
EnvironmentFile=/etc/default/prometheus-postgres-exporter
[Install]
WantedBy=multi-user.target