summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhiming Zhang <zhizhang@use-tower1.ops.rhcloud.com>2016-03-22 22:32:24 -0400
committerZhiming Zhang <zhizhang@use-tower1.ops.rhcloud.com>2016-03-22 22:32:24 -0400
commita6cdc712749f58dacf1dfeddb5a747987d582b9c (patch)
tree855f705b6772492ef9b1f81fc12aa4bfa3e0ac04
parentb7ed298359eaa69b1c00acd0edd101511765c6ea (diff)
downloadopenshift-a6cdc712749f58dacf1dfeddb5a747987d582b9c.tar.gz
openshift-a6cdc712749f58dacf1dfeddb5a747987d582b9c.tar.bz2
openshift-a6cdc712749f58dacf1dfeddb5a747987d582b9c.tar.xz
openshift-a6cdc712749f58dacf1dfeddb5a747987d582b9c.zip
add dynamic pv count
-rw-r--r--roles/os_zabbix/vars/template_openshift_master.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/roles/os_zabbix/vars/template_openshift_master.yml b/roles/os_zabbix/vars/template_openshift_master.yml
index 705066b35..875c90df4 100644
--- a/roles/os_zabbix/vars/template_openshift_master.yml
+++ b/roles/os_zabbix/vars/template_openshift_master.yml
@@ -279,6 +279,29 @@ g_template_openshift_master:
applications:
- Openshift Master Metrics
+ zdiscoveryrules:
+ - name: disc.pv
+ key: disc.pv
+ lifetime: 1
+ description: "Dynamically register the Persistent Volumes"
+
+ zitemprototypes:
+ - discoveryrule_key: disc.pv
+ name: "disc.pv.count.{#OSO_PV}"
+ key: "disc.pv.count[{#OSO_PV}]"
+ value_type: int
+ description: "Number of PV's of this size"
+ applications:
+ - Openshift Master
+
+ - discoveryrule_key: disc.pv
+ name: "disc.pv.count.available.{#OSO_PV}"
+ key: "disc.pv.count.available[{#OSO_PV}]"
+ value_type: int
+ description: "Number of PV's of this size that are available"
+ applications:
+ - Openshift Master
+
ztriggers:
- name: 'Openshift Master process not running on {HOST.NAME}'
expression: '{Template Openshift Master:openshift.master.process.count.max(#3)}<1'