add version and 301 should be http

This commit is contained in:
Kameron Kenny 2024-10-21 12:49:41 -04:00
parent 6281236c94
commit 472cd97dc6
No known key found for this signature in database
GPG Key ID: E5006629839D2276
3 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
FROM prom/prometheus
LABEL version="20241021.1.3"
LABEL version="20241021.1.4"
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:241021.1.3
image: docker-registry1.in.thelinuxpro.net:5000/tlp/prometheus:241021.1.4
container_name: prometheus
command: '--config.file=/etc/prometheus/prometheus.yml'
restart: unless-stopped

View File

@ -57,6 +57,7 @@ scrape_configs:
static_configs:
- targets:
- http://powerapi.in.thelinuxpro.net:5000/power/blackbox
- http://powerapi.in.thelinuxpro.net:5000/power/_VERSION
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
@ -71,8 +72,8 @@ scrape_configs:
module: [http_301]
static_configs:
- targets:
- https://thelinux.pro
- https://kameronkenny.com
- http://thelinux.pro
- http://kameronkenny.com
relabel_configs:
- source_labels: [__address__]
target_label: __param_target