add powerapi

This commit is contained in:
Kameron Kenny 2024-10-21 11:00:44 -04:00
parent 6ca642ae7f
commit 5c1401098a
No known key found for this signature in database
GPG Key ID: E5006629839D2276
3 changed files with 17 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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: