sync roles with changes from OWS
This commit is contained in:
17
roles/nginx_exporter/templates/nginx_exporter.service.j2
Normal file
17
roles/nginx_exporter/templates/nginx_exporter.service.j2
Normal file
@@ -0,0 +1,17 @@
|
||||
## Managed by Ansible ##
|
||||
|
||||
[Unit]
|
||||
Description=Prometheus Nginx Exporter
|
||||
Requires=nginx.service
|
||||
After=nginx.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User={{ nginx_exporter_system_user }}
|
||||
Group={{ nginx_exporter_system_group }}
|
||||
ExecStart={{ nginx_exporter_install_dir }}/nginx-prometheus-exporter -nginx.scrape-uri=unix:{{ nginx_stub_status_socket }}:/stub_status
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
12
roles/nginx_exporter/templates/sub_status.conf.j2
Normal file
12
roles/nginx_exporter/templates/sub_status.conf.j2
Normal file
@@ -0,0 +1,12 @@
|
||||
## Managed by Ansible ##
|
||||
|
||||
# stub_status module provides access to basic status information
|
||||
server {
|
||||
listen unix:{{ nginx_stub_status_socket }};
|
||||
server_name _;
|
||||
access_log off;
|
||||
|
||||
location /stub_status {
|
||||
stub_status;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user