Skip to content

feat(operator): Add alert for discarded samples - #13512

Merged
periklis merged 2 commits into
grafana:mainfrom
xperimental:alert-discarded-samples
Jul 29, 2024
Merged

feat(operator): Add alert for discarded samples#13512
periklis merged 2 commits into
grafana:mainfrom
xperimental:alert-discarded-samples

Conversation

@xperimental

@xperimental xperimental commented Jul 12, 2024

Copy link
Copy Markdown
Collaborator

What this PR does / why we need it:

This PR adds an alert to the set of alerts provided by the operator, that fires when there are samples discarded by Loki during ingestion. It should only alert on non-retryable errors.

Which issue(s) this PR fixes:

Fixes LOG-5731

Special notes for your reviewer:

The threshold for alerting is currently set to "zero". This means that the alert will fire if any samples are discarded. I don't think we can do an alerting based on percentage here (because I do not see a metric for "accepted samples") or if it makes any sense.

I'm looking into extending the unit-tests we have for alerts to also cover this alert.

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • Title matches the required conventional commits format, see here
Comment thread operator/docs/lokistack/sop.md Outdated
@xperimental
xperimental force-pushed the alert-discarded-samples branch 2 times, most recently from c8b3a0f to 4547f1d Compare July 25, 2024 17:16
@xperimental
xperimental force-pushed the alert-discarded-samples branch from c592ff4 to fe38a68 Compare July 26, 2024 15:32
@xperimental
xperimental marked this pull request as ready for review July 26, 2024 15:36
@xperimental
xperimental requested review from a team and periklis as code owners July 26, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants