Skip to content

Comments

feat: add support for offset#1

Open
fstr wants to merge 2 commits intomainfrom
fstr/offset-support-2
Open

feat: add support for offset#1
fstr wants to merge 2 commits intomainfrom
fstr/offset-support-2

Conversation

@fstr
Copy link

@fstr fstr commented Aug 8, 2024

Description

Add support for Prometheus offset modifier in indicator metric expressions.

Use Case

AWS CloudWatch ELB metrics are reported with a 5-10 minute delay. A Prometheus recording rule is evaluated at the current time, at which you will never have AWS ELB metrics in your Prometheus.

This can be solved by applying an offset 10m to the metric. All PromQL statements that use the recording rules don't need to have the offset applied. When the offset is used in the metric for the recording rule, everything is already recorded with the defined offset.

The offset is not great for fast burning alerts but I prefer to have a slightly delayed but working SLO over no SLO. There can also be other use cases where users benefit from applying a (shorter) offset.

If no offset is provided, everything works as before.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 6, 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.

1 participant