From 5c1401098a4ead424394650e33a7c289f95316a1 Mon Sep 17 00:00:00 2001 From: Kameron Kenny <1267885+kkenny@users.noreply.github.com> Date: Mon, 21 Oct 2024 11:00:44 -0400 Subject: [PATCH] add powerapi --- Dockerfile | 2 +- docker-compose.yml | 2 +- prometheus/prometheus.yml | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9f79a28..301a425 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM prom/prometheus -LABEL version="20240623.1.7" +LABEL version="20241021.1.1" LABEL description="prometheus" RUN mkdir -p /etc/prometheus diff --git a/docker-compose.yml b/docker-compose.yml index e3bf393..44a035a 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:240623.1.7 + image: docker-registry1.in.thelinuxpro.net:5000/tlp/prometheus:241021.1.1 container_name: prometheus command: '--config.file=/etc/prometheus/prometheus.yml' restart: unless-stopped diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml index ac86267..0be0b5d 100644 --- a/prometheus/prometheus.yml +++ b/prometheus/prometheus.yml @@ -50,6 +50,21 @@ scrape_configs: - target_label: __address__ replacement: blackbox-exporter.in.thelinuxpro.net:9115 + - job_name: blackbox_http_2xx + metrics_path: /probe + params: + module: [http_2xx] + static_configs: + - targets: + - https://powerapi.in.thelinuxpro.net + relabel_configs: + - source_labels: [__address__] + target_label: __param_target + - source_labels: [__param_target] + target_label: instance + - target_label: __address__ + replacement: blackbox-exporter.in.thelinuxpro.net:9115 + - job_name: blackbox_http_3xx metrics_path: /probe params: