Add glance-registry alert
Change-Id: I53b6626c2a23035650bef3852aad2ddcea72e939
diff --git a/glance/meta/prometheus.yml b/glance/meta/prometheus.yml
index b72cbbc..4e1a84d 100644
--- a/glance/meta/prometheus.yml
+++ b/glance/meta/prometheus.yml
@@ -14,6 +14,28 @@
summary: "Endpoint check for '{{ $labels.service }}' is down"
description: >-
Endpoint check for '{{ $labels.service }}' is down for 2 minutes
+ GlanceRegistryServiceDown:
+ if: >-
+ http_response_status{service=~"glance-registry"} == 0
+ for: 2m
+ labels:
+ severity: down
+ service: "{{ $labels.service }}"
+ annotations:
+ summary: "HTTP check for '{{ $labels.service }}' down"
+ description: >-
+ The HTTP check for '{{ $labels.service }}' is down on {{ $labels.host }} for 2 minutes.
+ GlanceAPIServiceDown:
+ if: >-
+ http_response_status{service=~"glance-api"} == 0
+ for: 2m
+ labels:
+ severity: down
+ service: "{{ $labels.service }}"
+ annotations:
+ summary: "HTTP check for '{{ $labels.service }}' down"
+ description: >-
+ The HTTP check for '{{ $labels.service }}' is down on {{ $labels.host }} for 2 minutes.
GlanceErrorLogsTooHigh:
{%- endraw %}
{%- set log_threshold = monitoring.error_log_rate|float %}
diff --git a/glance/meta/telegraf.yml b/glance/meta/telegraf.yml
index bdacc59..b686426 100644
--- a/glance/meta/telegraf.yml
+++ b/glance/meta/telegraf.yml
@@ -6,4 +6,7 @@
glance-api:
address: "http://{{ server.bind.address|replace('0.0.0.0', '127.0.0.1') }}:{{ server.bind.port }}/"
expected_code: 300
+ glance-registry:
+ address: "http://{{ server.bind.address|replace('0.0.0.0', '127.0.0.1') }}:{{ server.registry.port }}/"
+ expected_code: 300
{%- endif %}
\ No newline at end of file