feature: custom files for prometheus exporters

This commit is contained in:
Claudio Maradonna 2021-06-25 18:33:09 +02:00
parent 4232840e66
commit cbd5989707
Signed by: claudiomaradonna
GPG key ID: B1EDCB4C3B05C387
5 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1 @@
ARGS='--scrape_uri="http://127.0.0.1/server-status?auto"'

View file

@ -0,0 +1,15 @@
[Unit]
Description=Prometheus exporter for Apache
Documentation=https://github.com/Lusitaniae/apache_exporter
Wants=network-online.target
After=network-online.target
[Service]
User=root
Group=root
Type=simple
EnvironmentFile=/etc/default/prometheus-apache-exporter
ExecStart=/usr/bin/apache_exporter $ARGS
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,15 @@
[Unit]
Description=Prometheus exporter for MariaDB
Documentation=https://github.com/prometheus/mysqld_exporter
Wants=network-online.target
After=network-online.target
[Service]
User=root
Group=root
Type=simple
EnvironmentFile=/etc/default/prometheus-mariadb-exporter
ExecStart=/usr/bin/mysqld_exporter $ARGS
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1 @@
ARGS="-nginx.scrape-uri http://127.0.0.1:80/stub_status"

View file

@ -0,0 +1,2 @@
# peer mode
DATA_SOURCE_NAME='host=/var/run/postgresql sslmode=disable'