diff --git a/Dockerfile b/Dockerfile index abbaccc..3108fc7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM prom/prometheus -LABEL version="20241021.1.4" +LABEL version="20241021.1.5" LABEL description="prometheus" RUN mkdir -p /etc/prometheus diff --git a/docker-compose.yml b/docker-compose.yml index 100bd11..6e2270a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,7 +10,7 @@ services: prometheus: build: dockerfile: Dockerfile - image: docker-registry1.in.thelinuxpro.net:5000/tlp/prometheus:241021.1.4 + image: docker-registry1.in.thelinuxpro.net:5000/tlp/prometheus:241021.1.5 container_name: prometheus command: '--config.file=/etc/prometheus/prometheus.yml' restart: unless-stopped diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml index c0b6f23..f2ca92e 100644 --- a/prometheus/prometheus.yml +++ b/prometheus/prometheus.yml @@ -26,6 +26,11 @@ scrape_configs: static_configs: - targets: ['pi501.in.thelinuxpro.net:9100', 'pi502.in.thelinuxpro.net:9100'] + - job_name: power-api + metrics_path: /metrics + static_configs: + - targets: ['powerapi.in.thelinuxpro.net:5000'] + - job_name: unifi static_configs: - targets: ['unpoller.in.thelinuxpro.net:9130']