Skip to content

Conversation

@leizor
Copy link

@leizor leizor commented Nov 21, 2024

This affects the following alerts:

  • NodeFilesystemAlmostOutOfFiles
  • NodeFilesystemSpaceFillingUp
  • NodeFilesystemAlmostOutOfSpace
  • NodeFilesystemFilesFillingUp

Each alert is actually two alerting rules, one for the warning level, and one for the critical level. However, the critical one can be set to emit as a warning by using $._config.nodeCriticalSeverity. When this is true, both alerting rules will generate alerts with an identical set of labels, which is an error when both alerts fire.

We add an extra label to these alerting rules in order to differentiate between the two levels when $._config.nodeCriticalSeverity is set to warning.

This affects the following alerts:

- NodeFilesystemAlmostOutOfFiles
- NodeFilesystemSpaceFillingUp
- NodeFilesystemAlmostOutOfSpace
- NodeFilesystemFilesFillingUp

Each alert is actually two alerting rules, one for the warning level,
and one for the critical level. However, the critical one can be set to
emit as a warning by using $._config.nodeCriticalSeverity. When this is
true, both alerting rules will generate alerts with an identical set of
labels, which is an error when both alerts fire.

We add an extra label to these alerting rules in order to differentiate
between the two levels when $._config.nodeCriticalSeverity is set to
`warning`.

Signed-off-by: Justin Lei <[email protected]>
@discordianfish
Copy link
Member

I see how this can be useful but I think its too specific to be included. You can use mixins to adjust this when using the library anyway. But leaving final decision to @SuperQ

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.

2 participants