feature: custom files for prometheus exporters
This commit is contained in:
parent
4232840e66
commit
cbd5989707
5 changed files with 34 additions and 0 deletions
1
prometheus/exporters/apache.conf
Normal file
1
prometheus/exporters/apache.conf
Normal file
|
@ -0,0 +1 @@
|
|||
ARGS='--scrape_uri="http://127.0.0.1/server-status?auto"'
|
15
prometheus/exporters/apache.service
Normal file
15
prometheus/exporters/apache.service
Normal 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
|
15
prometheus/exporters/mysqld.service
Normal file
15
prometheus/exporters/mysqld.service
Normal 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
|
1
prometheus/exporters/nginx.conf
Normal file
1
prometheus/exporters/nginx.conf
Normal file
|
@ -0,0 +1 @@
|
|||
ARGS="-nginx.scrape-uri http://127.0.0.1:80/stub_status"
|
2
prometheus/exporters/postgresql.conf
Normal file
2
prometheus/exporters/postgresql.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
# peer mode
|
||||
DATA_SOURCE_NAME='host=/var/run/postgresql sslmode=disable'
|
Loading…
Reference in a new issue