「✨」 feat: added nginx exporter

This commit is contained in:
KeyZox committed 2025-07-22 16:38:11 +02:00
1 parent 1a1555f0c1
commit 4de9a323e4
8 files changed
+30 -3

No files matched your search

@@ -39,3 +39,10 @@ server {
server_name example.com;
return 301 https://$host$request_uri;
}
server {
listen 8080;
location /nginx_status {
stub_status;
}
}
+1
View File
@@ -1,2 +1,3 @@
include:
- ./prometheus/compose.yml
- ./exporters/compose.yml
+2
View File
@@ -0,0 +1,2 @@
include:
- ./nginx/compose.yml
Whitespace-only changes.
@@ -0,0 +1,12 @@
services:
nginx-exporter:
container_name: transcendence-nginx-exporter
image: nginx/nginx-prometheus-exporter:latest
command:
- '-nginx.scrape-uri=http://transcendence-front:8080/nginx_status'
depends_on:
front:
condition: service_started
networks:
- front
- prom-exporter
+1
View File
@@ -26,4 +26,5 @@ services:
- '--web.enable-lifecycle'
networks:
- prom
- prom-exporter
restart: unless-stopped
@@ -1,5 +1,5 @@
global:
scrape_interval: 30s
scrape_interval: 5s
# alerting:
# alertmanagers:
@@ -15,3 +15,7 @@ scrape_configs:
password: PROM_ADMIN_PASSWD
static_configs:
- targets: ['localhost:9090']
- job_name: 'nginx'
static_configs:
- targets: ['nginx-exporter:9113']