From b8b5e116c29b822f8148cbdac71c0757eb735c77 Mon Sep 17 00:00:00 2001 From: Kameron Kenny <1267885+kkenny@users.noreply.github.com> Date: Mon, 21 Oct 2024 13:49:34 -0400 Subject: [PATCH] metrics for powerapi --- Dockerfile | 2 +- docker-compose.yml | 2 +- prometheus/prometheus.yml | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) 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']