Website Monitoring
Monitor WebSite availability, SSL Certificate validity, ICMP availability
Prometheus setup
Prometheus should have two jobs setup against the same target in order this dashboard to work correctly:
- job_name: webservers
file_sd_configs:
- files:
- /etc/prometheus/file_sd/webservers.yml
metrics_path: /probe
params:
module:
- http_2xx
relabel_configs:
- source_labels:
- __address__
target_label: __param_target
- source_labels:
- __param_target
target_label: instance
- target_label: __address__
replacement: blackbox.explorter.net:9115
- job_name: icmp
file_sd_configs:
- files:
- /etc/prometheus/file_sd/webservers.yml
metrics_path: /probe
params:
module:
- icmp
relabel_configs:
- source_labels:
- __address__
target_label: __param_target
- source_labels:
- __param_target
target_label: instance
- target_label: __address__
replacement: blackbox.explorter.net:9115
Example /etc/prometheus/file_sd/webservers.yml
:
- targets:
- one.host.com
- two.host.com
- three.host.com
labels:
service: web
env: prod
dc: new_york
Data source config
Collector config:
Upload an updated version of an exported dashboard.json file from Grafana
Revision | Description | Created | |
---|---|---|---|
Download |