Skip to content
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

Replace upper default boundary for percentage with infinity instead o… #40

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

Conversation

RincewindsHat
Copy link
Member

…f 100

@@ -564,7 +564,7 @@ func init() {
IsSet: true,
Th: check.Threshold{
Lower: 2,
Upper: 100,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a bit more context on why? Intuitively I would have said a percentage - having a Latin "per cento" origin meaning "from 100" - would have 100 as upper.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is indeed true and was my original thought here. The problem is, that some Monitoring systems (Icinga) chose to ignore the standard and are unable to parse the range format (2:100), so I replaced that here with infinity which results in the range of 2: which can be parsed and is functionally equivalent.
Tl:dr: It's a hack.

@tbauriedel tbauriedel removed their assignment Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants