diff options
author | Sam Chudnick <sam@chudnick.com> | 2023-06-25 09:52:36 -0400 |
---|---|---|
committer | Sam Chudnick <sam@chudnick.com> | 2023-06-25 09:52:36 -0400 |
commit | 95b73daa36b23565a8566f71f9b202d3459b685f (patch) | |
tree | cb17b021be70e7868d0ec235a761f0ecdc80f3f2 /data/prometheus-nginx-exporter |
Diffstat (limited to 'data/prometheus-nginx-exporter')
-rw-r--r-- | data/prometheus-nginx-exporter/defaults | 1 | ||||
-rw-r--r-- | data/prometheus-nginx-exporter/metrics.conf | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/data/prometheus-nginx-exporter/defaults b/data/prometheus-nginx-exporter/defaults new file mode 100644 index 0000000..8b48854 --- /dev/null +++ b/data/prometheus-nginx-exporter/defaults | |||
@@ -0,0 +1 @@ | |||
ARGS="-nginx.scrape-uri http://127.0.0.1:10000/stub_status" | |||
diff --git a/data/prometheus-nginx-exporter/metrics.conf b/data/prometheus-nginx-exporter/metrics.conf new file mode 100644 index 0000000..034f0ba --- /dev/null +++ b/data/prometheus-nginx-exporter/metrics.conf | |||
@@ -0,0 +1,14 @@ | |||
1 | server { | ||
2 | listen 10000; | ||
3 | keepalive_timeout 0; | ||
4 | |||
5 | access_log off; | ||
6 | |||
7 | allow 127.0.0.1; | ||
8 | deny all; | ||
9 | |||
10 | location /stub_status { | ||
11 | stub_status on; | ||
12 | } | ||
13 | } | ||
14 | |||