debian/prometheus-sql-exporter.service
raw| 1 | [Unit] |
| 2 | Description=Prometheus exporter for sql metrics |
| 3 | Documentation=https://github.com/credativ/sql_exporter |
| 4 | ConditionPathExists=/etc/prometheus-sql-exporter.yml |
| 5 | |
| 6 | [Service] |
| 7 | Restart=always |
| 8 | User=postgres |
| 9 | EnvironmentFile=-/etc/default/prometheus-sql-exporter |
| 10 | ExecStart=/usr/bin/prometheus-sql-exporter $ARGS |
| 11 | ExecReload=/bin/kill -HUP $MAINPID |
| 12 | TimeoutStopSec=20s |
| 13 | SendSIGKILL=no |
| 14 | |
| 15 | [Install] |
| 16 | WantedBy=multi-user.target |