Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

dmthin pmieconf scripts #47

Merged
merged 2 commits into from Aug 31, 2015
Jump to file or symbol
Failed to load files and symbols.
+93 −0
Split
View
@@ -25,6 +25,7 @@ IAM = dm
DOMAIN = DM
PMDADIR = $(PCP_PMDAS_DIR)/$(IAM)
PMDAINIT = $(IAM)_init
+PMIEDIR = $(PCP_VAR_DIR)/config/pmieconf/$(IAM)
LDIRT = domain.h $(IAM).log
@@ -43,6 +44,8 @@ install: default
$(INSTALL) -m 755 -d $(PMDADIR)
$(INSTALL) -m 644 root pmns.dmcache pmns.dmthin domain.h help $(PMDADIR)
$(INSTALL) -m 755 Install Remove $(CMDTARGET) $(PMDADIR)
+ $(INSTALL) -m 644 dmthin.data_high_util.pmie $(PMIEDIR)/data_high_util
+ $(INSTALL) -m 644 dmthin.metadata_high_util.pmie $(PMIEDIR)/metadata_high_util
@$(INSTALL_MAN)
else
build-me:
@@ -0,0 +1,45 @@
+#pmieconf-rules 1
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(1)
+
+rule dmthin.data_high_util
+ summary = "$rule$"
+ enumerate = hosts
+ predicate =
+"some_host (
+ some_inst (
+ ( 100 * dmthin.pool.data.used $hosts$ / dmthin.pool.data.total $hosts$ ) > $threshold$
+ )
+)"
+ enabled = no
+ version = 1
+ help =
+"dmthin pool data utilization percent exceeded threshold percent of total size.";
+
+string rule
+ default = "dmthin pool data is filling up"
+ modify = no
+ display = no;
+
+percent threshold
+ default = 95
+ help =
+"The threshold of dmthin pool fullness expressed as a percentage,
+usually in the range of 80 to 99. ";
+
+string action_expand
+ default = "%v%used [%i]@%h"
+ display = no
+ modify = no;
+
+string email_expand
+ default = "host: %h pool: %i data utilization: %v%"
+ display = no
+ modify = no;
+
+string delta
+ default = "10 mins"
+ help =
+"Sample interval between evaluations of this rule.";
+
+#
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(1)
@@ -0,0 +1,45 @@
+#pmieconf-rules 1
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(1)
+
+rule dmthin.metadata_high_util
+ summary = "$rule$"
+ enumerate = hosts
+ predicate =
+"some_host (
+ some_inst (
+ ( 100 * dmthin.pool.metadata.used $hosts$ / dmthin.pool.metadata.total $hosts$ ) > $threshold$
+ )
+)"
+ enabled = no
+ version = 1
+ help =
+"dmthin pool metadata utilization percent exceeded threshold percent of total size.";
+
+string rule
+ default = "dmthin pool metadata is filling up"
+ modify = no
+ display = no;
+
+percent threshold
+ default = 80
+ help =
+"The threshold of dmthin pool fullness expressed as a percentage,
+usually in the range of 50 to 99. ";
+
+string action_expand
+ default = "%v%used [%i]@%h"
+ display = no
+ modify = no;
+
+string email_expand
+ default = "host: %h pool: %i metadata utilization: %v%"
+ display = no
+ modify = no;
+
+string delta
+ default = "10 mins"
+ help =
+"Sample interval between evaluations of this rule.";
+
+#
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(1)