b22375ebfd
This commit follows up the work in Kolla to provide deploy and configure the Prometheus blackbox exporter. An example blackbox-exporter module has been added (disabled by default) called os_endpoint. This allows for the probing of endpoints over HTTP and HTTPS. This can be used to monitor that OpenStack endpoints return a status code of either 200 or 300, and the word 'versions' in the payload. This change introduces a new variable `prometheus_blackbox_exporter_endpoints`. Currently no defaults are specified because the configuration is heavily dependent on the deployment. Co-authored-by: Jack Heskett <Jack.Heskett@gresearch.co.uk> Change-Id: I36ad4961078d90e2fd70c9a3368f5157d6fd89cd
25 lines
438 B
Django/Jinja
25 lines
438 B
Django/Jinja
modules:
|
|
http_2xx:
|
|
prober: http
|
|
os_endpoint:
|
|
prober: http
|
|
http:
|
|
valid_status_codes: [200,300]
|
|
headers:
|
|
Content-Type: application/json
|
|
fail_if_body_not_matches_regexp:
|
|
- "versions"
|
|
http_post_2xx:
|
|
prober: http
|
|
http:
|
|
method: POST
|
|
tcp_connect:
|
|
prober: tcp
|
|
ssh_banner:
|
|
prober: tcp
|
|
tcp:
|
|
query_response:
|
|
- expect: "^SSH-2.0-"
|
|
icmp:
|
|
prober: icmp
|