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

View rule - Rule could not be found. #65677

Closed
Roberto6969 opened this issue Mar 31, 2023 · 3 comments
Closed

View rule - Rule could not be found. #65677

Roberto6969 opened this issue Mar 31, 2023 · 3 comments
Labels
area/alerting Grafana Alerting needs more info Issue needs more information, like query results, dashboard or panel json, grafana version etc

Comments

@Roberto6969
Copy link

Hello.

I have some inaccessible rules, which still generates alarms.
image

Rules are listed under Groups, but "See source" button shows:
image

How can I view as well as delete those rules?

Thank You!

@tonypowa tonypowa added the triage/needs-confirmation used for OSS triage rotation - reported issue needs to be reproduced label Mar 31, 2023
@tonypowa
Copy link
Contributor

tonypowa commented Apr 3, 2023

thank you for creating this issue @Roberto6969

Let's check if there are any erros when clicking on See Source by increasing the verbosity of the Grafana server logs. For printing to console, set the console logs to debug as well. More info on troubleshooting Grafana issues here https://grafana.com/docs/grafana/v9.0/troubleshooting/

could also you try to use this API to gather the JSON of those inaccessible alerts?

GET /api/v1/provisioning/alert-rules/{UID}

You can also try the API to delete each rule:

DELETE /api/v1/provisioning/alert-rules/{UID}

@tonypowa tonypowa added needs more info Issue needs more information, like query results, dashboard or panel json, grafana version etc area/alerting Grafana Alerting and removed triage/needs-confirmation used for OSS triage rotation - reported issue needs to be reproduced labels Apr 3, 2023
@Roberto6969
Copy link
Author

@tonypowa thank you for your feedback. It is appreciated due to huge amount of false alarms, I had receiving all the time.

After carefully cleaning all orphan rules with API calls as you suggested, problem has gone. I have no more alerts, which couldn't display "See source".

The only numerous error still remains in log is:
msg="Rule declares one or many reserved labels. Those rules labels will be ignored" labels="alertname=Apparent_Power_alert"

Which labels are "reserved", anyway?

Thank You
Robert

@tonypowa
Copy link
Contributor

@Roberto6969
Thanks for the feedback !

msg="Rule declares one or many reserved labels. Those rules labels will be ignored" labels="alertname=Apparent_Power_alert"

it seems that is being discussed in this other issue:
#55670 (comment)
I would advise to monitor that logging error from there

I am closing this issue. Feel free to reopen if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/alerting Grafana Alerting needs more info Issue needs more information, like query results, dashboard or panel json, grafana version etc
Projects
Archived in project
Development

No branches or pull requests

2 participants