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

RFE: dmthin pmie example #46

Closed
moriwaka opened this Issue Aug 27, 2015 · 3 comments

Comments

Projects
None yet
2 participants
Contributor

moriwaka commented Aug 27, 2015

dmthin pools' monitoring by pmie would be normal story.
I hope dmthin monitoring pmie example.

I wrote following pmie script, but I'm not familiar to pmie manner, yet.
Please review and include into examples if it is applicable.

delta = 10 min;
threshold_data = 90;
threshold_metadata = 80;

some_host (
  some_inst (
    100 * dmthin.pool.data.used / dmthin.pool.data.total > $threshold_data
  ) 
) -> print "dmthin pool data %v%used [%i]@%h";

some_host (
  some_inst (
    100 * dmthin.pool.metadata.used / dmthin.pool.metadata.total > $threshold_metadata
  ) 
) -> print "dmthin pool metadata %v%used [%i]@%h";
Contributor

natoscott commented Aug 28, 2015

Nice! Have a look at src/pmdas/cisco and src/pmdas/shping in the PCP tree and the parameterised pmie rules that are installed with those PMDAs. We could do the same thing with your rules above, in src/pmdas/dm - could you send through a patch / pull request?

Contributor

moriwaka commented Aug 28, 2015

Yes, I'll try this weekend.

Contributor

natoscott commented Sep 1, 2015

@moriwaka thanks, that's merged now.

@natoscott natoscott closed this Sep 1, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment