-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add beacon checks metrics #57
Conversation
This introduce metrics for Salt status beacons (https://docs.saltproject.io/en/latest/ref/beacons/all/salt.beacons.status.html) Will expose metrics for last beacon event per minion and also the total number of observed minions (minions not reported for 4 hours by default are removed every hour). This way, user can not only monitor jobs success, but also if all expected minions are reporting back to Salt master. The exporter will watch the PKI directory of the master for changed files and this way will know how many minions are expected to respond back. On (re)start it will read the minions' keys for initial status of observable minions.
If the idea is okey will also update the docs with information how this can be used and what is required from Salt side to be done to work correctly |
Hi @voyvodov, Thanks for the PR and the idea. I'll have a look! |
I like the idea :)
It should be configurable by the user.
Could also be used to expose the number of registered minion.
nitpick on this: there is a metric to get the total of minion responses, whether it is successful or not. But beacon is a better way 👍 |
Ohh... I put wrong description. In fact it will not remove them until they are removed fron salt master. There is a metric which report the total of all registered minions ( |
@voyvodov LGTM thanks for the contrib!
do you want to update this PR with the documentation or do a dedicated PR for this? |
If you're okey I can do it in seperate PR in next few days |
ok no problemo :) let's merge it! I'll release a new version of the exporter when we will have the documentation up to date. |
This introduce metrics for Salt status beacons
(https://docs.saltproject.io/en/latest/ref/beacons/all/salt.beacons.status.html) Will expose metrics for last beacon event per minion and also the total number of observed minions (minions not reported for 4 hours by default are removed every hour).
This way, user can not only monitor jobs success, but also if all expected minions are reporting back to Salt master.
The exporter will watch the PKI directory of the master for changed files and this way will know how many minions are expected to respond back. On (re)start it will read the minions' keys for initial status of observable minions.