Skip to content

Another attempt at fixing the damn alert#8

Merged
kshk123 merged 1 commit intomainfrom
fix-alert
Nov 26, 2025
Merged

Another attempt at fixing the damn alert#8
kshk123 merged 1 commit intomainfrom
fix-alert

Conversation

@kshk123
Copy link
Owner

@kshk123 kshk123 commented Nov 26, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 26, 2025 22:37
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates a Grafana alert rule configuration to handle null/NaN values more gracefully by changing the reducer mode from "strict" to "dropNN". The change affects how the alert processes missing or invalid metric values when evaluating internet download speed thresholds.

Key changes:

  • Modified the reduce expression mode from "strict" to "dropNN" to drop null/NaN values instead of failing strictly
  • Added an inline comment explaining the mode change and mentioning an alternative

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

reducer = "last"
settings = {
mode = "strict"
mode = "dropNN" # drop null/NaN values; alternative: replaceNN
Copy link

Copilot AI Nov 26, 2025

Choose a reason for hiding this comment

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

The comment mentions "replaceNN" as an alternative, but the correct Grafana reduce mode is "replaceNon" (not "replaceNN"). The mode "replaceNon" replaces non-numeric values with a specified value.

Suggested change
mode = "dropNN" # drop null/NaN values; alternative: replaceNN
mode = "dropNN" # drop null/NaN values; alternative: replaceNon

Copilot uses AI. Check for mistakes.
@kshk123 kshk123 merged commit c8ef45e into main Nov 26, 2025
7 checks passed
@kshk123 kshk123 deleted the fix-alert branch November 26, 2025 22:40
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.

1 participant