diff options
Diffstat (limited to 'roles/monitoring/prometheus/exporter/base/templates')
-rw-r--r-- | roles/monitoring/prometheus/exporter/base/templates/nginx-vhost.conf.j2 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/monitoring/prometheus/exporter/base/templates/nginx-vhost.conf.j2 b/roles/monitoring/prometheus/exporter/base/templates/nginx-vhost.conf.j2 new file mode 100644 index 00000000..e032ca3d --- /dev/null +++ b/roles/monitoring/prometheus/exporter/base/templates/nginx-vhost.conf.j2 @@ -0,0 +1,15 @@ +server { + listen {{ prometheus_exporter_port }}; + listen [::]:{{ prometheus_exporter_port }}; + server_name _; + + ## TODO: configure ssl + + location / { + return 404 "unknown exporter: $uri\n"; + } + include /etc/prometheus-exporter/exporters-enabled/*; + + access_log /var/log/nginx/access-prometheus-exporter.log; + error_log /var/log/nginx/error-prometheus-exporter.log; +} |