summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Diaz <jdiaz@redhat.com>2016-02-17 10:41:30 -0500
committerJoel Diaz <jdiaz@redhat.com>2016-02-17 10:41:30 -0500
commitf464fd1fa00f58983834168edd38e2539dd08c1f (patch)
treefa16934fae9d1b9071cb58857314284f495da823
parent8ffeaf485ba06ae43952f2e5b7a65e1f09b5b9d4 (diff)
parent7a28bf3def8f7fe2b1794498a333517ff353c8f2 (diff)
downloadopenshift-f464fd1fa00f58983834168edd38e2539dd08c1f.tar.gz
openshift-f464fd1fa00f58983834168edd38e2539dd08c1f.tar.bz2
openshift-f464fd1fa00f58983834168edd38e2539dd08c1f.tar.xz
openshift-f464fd1fa00f58983834168edd38e2539dd08c1f.zip
Merge pull request #1426 from joelddiaz/registry-node-items
create registry items/triggers under Openshift Node
-rw-r--r--roles/os_zabbix/vars/template_openshift_node.yml20
1 files changed, 18 insertions, 2 deletions
diff --git a/roles/os_zabbix/vars/template_openshift_node.yml b/roles/os_zabbix/vars/template_openshift_node.yml
index 4c2c1ae53..c36c593df 100644
--- a/roles/os_zabbix/vars/template_openshift_node.yml
+++ b/roles/os_zabbix/vars/template_openshift_node.yml
@@ -26,13 +26,29 @@ g_template_openshift_node:
applications:
- Openshift Node
- - key: openshift.node.docker-registry.ping
- description: Ping docker-registry from node
+ - key: openshift.node.registry-pods.healthy_pct
+ description: Shows the percentage of healthy registries in the cluster
+ type: int
+ applications:
+ - Openshift Node
+
+ - key: openshift.node.registry.service.ping
+ description: Ping docker-registry service from node
type: int
applications:
- Openshift Node
ztriggers:
+ - name: 'One or more Docker Registries is unhealthy according to {HOST.NAME}'
+ expression: '{Template Openshift Node:openshift.node.registry-pods.healthy_pct.last(#2)}<100 and {Template Openshift Node:openshift.node.registry-pods.healthy_pct.last(#1)}<100'
+ url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_registry.asciidoc'
+ priority: avg
+
+ - name: 'Docker Registry service is unhealthy according to {HOST.NAME}'
+ expression: '{Template Openshift Node:openshift.node.registry.service.ping.last(#2)}<1 and {Template Openshift Node:openshift.node.registry.service.ping.last(#1)}<1'
+ url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_registry.asciidoc'
+ priority: avg
+
- name: 'Openshift Node process not running on {HOST.NAME}'
expression: '{Template Openshift Node:openshift.node.process.count.max(#3)}<1'
url: 'https://github.com/openshift/ops-sop/blob/node/V3/Alerts/openshift_node.asciidoc'