diff options
author | ZhiMing Zhang <maple_m@hotmail.com> | 2016-03-28 08:50:19 -0500 |
---|---|---|
committer | ZhiMing Zhang <maple_m@hotmail.com> | 2016-03-28 08:50:19 -0500 |
commit | e9f5909847f41c6a5b8097ae4b140479b044f8a2 (patch) | |
tree | 045f5e917091374a4a8adef00c926b67f1bdc5c4 | |
parent | 5a0a35b7d3ece8c1c4b60c12d4ddbfe2a3c070a2 (diff) | |
parent | 00f361c1e7b0c113b615967e5f9320c60adb4ff5 (diff) | |
download | openshift-e9f5909847f41c6a5b8097ae4b140479b044f8a2.tar.gz openshift-e9f5909847f41c6a5b8097ae4b140479b044f8a2.tar.bz2 openshift-e9f5909847f41c6a5b8097ae4b140479b044f8a2.tar.xz openshift-e9f5909847f41c6a5b8097ae4b140479b044f8a2.zip |
Merge pull request #1649 from BlueShells/pv_work
add dynamic pv count
-rw-r--r-- | roles/os_zabbix/vars/template_openshift_master.yml | 35 |
1 files changed, 35 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..1f2117b2c 100644 --- a/roles/os_zabbix/vars/template_openshift_master.yml +++ b/roles/os_zabbix/vars/template_openshift_master.yml @@ -93,6 +93,18 @@ g_template_openshift_master: applications: - Openshift Master + - key: openshift.master.pv.space.total + description: Shows the total space of pv + value_type: int + applications: + - Openshift Master + + - key: openshift.master.pv.space.available + description: Shows the available space of pv + value_type: int + applications: + - Openshift Master + - key: openshift.master.pv.total.count description: Total number of Persistent Volumes in the Openshift Cluster value_type: int @@ -279,6 +291,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' |