Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

Add a flag --command_labels that #14

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

pimvanpelt
Copy link

This flag determines if the metrics contain labels with the nagios command, or if the metrics are named with the
nagios command.

--command_labels=false (the default)
nagios_paphosting_check_ssh_exec_time{hostname="absynth.ipng.nl", service="sshd:22"} 0.093268

--command_labels=true
nagios_command_exec_time{hostname="absynth.ipng.nl", command="paphosting_check_ssh", service="sshd:22"} 0.093268

Justification for this PR is in #13
Code works but are missing tests. Per discussion with Stephen, I'm a bit strapped for time so I won't be able to add tests any time soon. I can however polish this PR up if need be. Thanks for your consideration and working on plugging Nagios into Prometheus!

labels with the nagios command, or if the metrics are named with the
nagios command.

--command_labels=false (the default)
nagios_paphosting_check_ssh_exec_time{hostname="absynth.ipng.nl", service="sshd:22"} 0.093268

--command_labels=true
nagios_command_exec_time{hostname="absynth.ipng.nl", command="paphosting_check_ssh", service="sshd:22"} 0.093268

See discussion in:
m-lab#13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant