-
Notifications
You must be signed in to change notification settings - Fork 275
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
grafana-backup doesn't restore alerts #197
Comments
Grafana release 9.4 where you can export alert rules through API. Hope they upgrade this backup tool to support these. |
Could you confirm with the latest version that this works for you @LibiKorol? |
Hi, I used the latest ver 1.3.1 with Grafana 9.5.2, all alerts were restored properly. however, the contact points and notification policies weren't restored. |
I use this tool as a sync across a few cluster, so for contract points (slack in my case) and notification policies I tend to set this up per environment as they can be different. |
The restore of rules is not working for me. Using version 1.3.3 with Grafana 9.5.1. I dug into this and in In my case it is returning
On the update rule code I had to add the I'm not sure why I am seeing this behavior. I'm wondering if it is because my Grafana instance is running in Kubernetes cluster and my accessing it through a LoadBalancer though I'm struggling to understand why it would matter. |
@derekmceachern I got the same result as yours and I'm running it in Kubernetes.
|
smells like a grafana bug, it should be a 404. |
@mt3593, Finally had a chance to look into this some more after your comment and it turns out this has been fixed. It took me a while to find the associated pull request but here it is: grafana/grafana#67331 According to the labels it was back ported into v9.4.x and v9.5.x and was merged into the 10.0.0 version. I upgraded to 10.0.1 in our Kubernetes environment and I'm able to confirm that this is fixed. Here is the log snippet from my logs.
So, I would suggest that this item can be closed. |
Hi , everyone , I am still error when restoring alerts ( tried multiple envs , this is a fresh grafana:latest container with just 1 alert rule for testing ) During handling of the above exception, another exception occurred: Traceback (most recent call last): looks like grafana is returning empty response on that endpoint (tested with curl) nothing in grafana logs but anyways this seems like a grafana issue , just wanted to ask if anyone else is facing this issue or if I am doing something worng, |
we use grafana-backup-tool ver 1.2.4 for backing up our grafana.
once we tried to restore the data on other server, all settings were restored successfully besides the alerts.
all alert rules, channels and notification tools weren't restored. the alerts page in Grafana UI was empty.
The text was updated successfully, but these errors were encountered: