prom
This commit is contained in:
@@ -108,6 +108,7 @@ docker run --detach --name prometheus \
|
|||||||
-p "9090:9090" \
|
-p "9090:9090" \
|
||||||
-v prometheus:/prometheus \
|
-v prometheus:/prometheus \
|
||||||
-v ./prometheus:/etc/prometheus/targets \
|
-v ./prometheus:/etc/prometheus/targets \
|
||||||
|
-v /var/run/docker.sock:/var/run/docker.sock:ro \
|
||||||
-l "caddy=prometheus.localhost" \
|
-l "caddy=prometheus.localhost" \
|
||||||
-l "caddy.reverse_proxy={{upstreams 9090}}" \
|
-l "caddy.reverse_proxy={{upstreams 9090}}" \
|
||||||
-l "caddy.tls=internal" \
|
-l "caddy.tls=internal" \
|
||||||
@@ -122,7 +123,7 @@ docker run --detach --name prometheus \
|
|||||||
- source: prometheus_config
|
- source: prometheus_config
|
||||||
target: /etc/prometheus/prometheus.yml
|
target: /etc/prometheus/prometheus.yml
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
-
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- host.docker.internal=host-gateway
|
- host.docker.internal=host-gateway
|
||||||
|
|
||||||
|
|||||||
4
prometheus/pompe.yml
Normal file
4
prometheus/pompe.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
- labels:
|
||||||
|
job: pompe
|
||||||
|
targets:
|
||||||
|
- "localhost:8099"
|
||||||
Reference in New Issue
Block a user