Skip to content

[usage] Fix alerting rules #13255

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

Merged
merged 1 commit into from
Sep 26, 2022
Merged

[usage] Fix alerting rules #13255

merged 1 commit into from
Sep 26, 2022

Conversation

easyCZ
Copy link
Member

@easyCZ easyCZ commented Sep 23, 2022

Description

Prometheus operator has been failing with this error:

range vector in call to function \"increase\", got instant vector"
level=info ts=2022-09-23T13:31:35.581579042Z caller=rules.go:340 component=prometheusoperator msg="Invalid rule" err="35:11: group \"usage\", rule 3, \"GitpodUsageBillingServiceFinalizeInvoiceFailures\": could not parse expression: 1:14: parse error: expected type range vector in call to function \"increase\", got instant vector"
level=info ts=2022-09-23T13:31:35.581586956Z caller=rules.go:340 component=prometheusoperator msg="Invalid rule" err="61:11: group \"usage\", rule 5, \"GitpodUsageStripeWebhookFailures\": could not parse expression: 1:14: parse error: expected type range vector in call to function \"increase\", got instant vector"
level=error ts=2022-09-23T13:31:35.600973771Z caller=klog.go:116 component=k8s_client_runtime func=ErrorDepth msg="sync \"monitoring-satellite/k8s\" failed: Invalid rule"
level=info ts=2022-09-23T13:31:35.601067883Z caller=operator.go:1559 component=prometheusoperator key=monitoring-satellite/k8s msg="update prometheus status"

This change should fix the issue.

Related Issue(s)

Fixes #

How to test

Release Notes

NONE

Documentation

Werft options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide

@easyCZ easyCZ requested a review from a team September 23, 2022 19:18
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Sep 23, 2022
@roboquat roboquat merged commit 95b5fb1 into main Sep 26, 2022
@roboquat roboquat deleted the mp/usage-alerts-fix branch September 26, 2022 07:11
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note-none size/XS team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants