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:

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

yaml
- targets:
  - one.host.com
  - two.host.com
  - three.host.com
  labels:
    service: web
    env: prod
    dc: new_york
Revisions
RevisionDescriptionCreated

Get this dashboard

Import the dashboard template

or

Download JSON

Datasource
Dependencies