Skip to content
Snippets Groups Projects
Verified Commit 1dc730ee authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

Add skeleton for Blackbox exported (monitor HTTP services)

parent c497f039
Branches
No related tags found
1 merge request!65Add alerting
...@@ -85,8 +85,8 @@ services: ...@@ -85,8 +85,8 @@ services:
- "-notifier.url=http://alertmanager:9093" - "-notifier.url=http://alertmanager:9093"
# HTTP server for vmagent's own metrics # HTTP server for vmagent's own metrics
- "-httpListenAddr=:8880" - "-httpListenAddr=:8880"
# Evaluate rules every 10 minutes # By default, evaluate rules every 1 minute
- "-evaluationInterval=10m" - "-evaluationInterval=1m"
- "-loggerOutput=stdout" - "-loggerOutput=stdout"
volumes: volumes:
- ./vmalert-rules.yml:/config/vmalert-rules.yml - ./vmalert-rules.yml:/config/vmalert-rules.yml
...@@ -106,3 +106,16 @@ services: ...@@ -106,3 +106,16 @@ services:
networks: networks:
- metrics - metrics
restart: unless-stopped restart: unless-stopped
# Monitors HTTP or DNS endpoints and store results in VictoriaMetrics
# Very useful to know when a service is down
blackbox:
image: prom/blackbox-exporter:v0.19.0
container_name: blackbox
command:
- "--config.file=/config/blackbox.yml"
volumes:
- ./blackbox.yml:/config/blackbox.yml
networks:
- metrics
restart: unless-stopped
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment