sensu-plugins / sensu-plugins-sensu

This plugin provides monitoring and metrics for Sensu.
http://sensu-plugins.io
MIT License
12 stars 35 forks source link

Option for metrics-events.rb to extract partial statitics #90

Open arthurzenika opened 5 years ago

arthurzenika commented 5 years ago

We have an sensu setup monitoring multiple environment and use metrics-events.rb to store in graphite the long term history of the stats of the monitoring system.

We would greatly appreciate if it was possible to "filter" the results by clients (or subscriptions). For example having (assume VMs names start with production-app1 production-app2 preproduction-app1 preproduction-app2 :

metrics-events.rb --scheme production --filter "production*"
metrics-events.rb --scheme preproduction --filter "preproduction*"

Any chance of getting that ?

arthurzenika commented 5 years ago

We also though there might be a way to have this feature by using separate users for each execution and having the sensu api users only see a select part of the infrastructure, do you know if that's possible ?