Skip to content
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

Loki backend for rules check #48

Closed
adyanth opened this issue Jun 6, 2024 · 2 comments
Closed

Loki backend for rules check #48

adyanth opened this issue Jun 6, 2024 · 2 comments

Comments

@adyanth
Copy link

adyanth commented Jun 6, 2024

There was a backend flag to rules check that allowed passing in Loki as an option. Is there an alternative to it now?

https://github.com/grafana/cortex-tools/blob/1499f5fb286e672cd238a525169d4cb05f964eab/pkg/commands/rules.go#L51

❯ ~/Downloads/cortextool_0.17.0_mac-os_x86_64 rules check alerting/loki/*.yaml
ERRO[0000] unable parse rules file                       error="6:17: group \"pulsar-bigquery\", rule 0, \"ErrorsInLogs\": could not parse expression: 1:68: parse error: unexpected character: '|'" file=alerting/loki/bqloader-alerts.yaml
cortextool_0.17.0_mac-os_x86_64: error: check operation unsuccessful, unable to parse rules files: file read error, try --help

expr in question:

expr: sum(rate({app="pulsar-bigquery", environment=~"prod|stage"} |= `ERROR`[1m])) by (environment, instance, tenant, deploy_region, team, app, org) > 0
@adyanth
Copy link
Author

adyanth commented Jun 6, 2024

I see this #7
Will this never be supported?

@yeya24
Copy link

yeya24 commented Oct 4, 2024

Hey @adyanth, I believe Loki is out of the scope of this tool now and they should have their own tool to perform such kind of task. Hence, I am going to close this issue

@yeya24 yeya24 closed this as completed Oct 4, 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

No branches or pull requests

2 participants