Closed lpmi-13 closed 7 months ago
Thanks for opening this. Are both source and destination on Amazon Managed Grafana? Reading alerting rules is possible on 8.4 but the destination should be 9.4 for creating alerting rules in the destination.
I'm curious how many alerting rules did you have in your 8.4 environment?
both the source and destination are on Amazon Managed Grafana.
The other strange part is that after I ran this and received the above error, I checked a bit later and the alerts actually DID show up in the destination. I need to tweak the configuration a bit, since I'm now receiving the following notification in the UI when trying to navigate to alert...
Notifier with invalid identifier is detected
Do you want to delete notifier with invalid identifier: _V9CEa-4z from the dashboard JSON?
After successful deletion, make sure to save the dashboard for storing the update JSON.
but that's not a big blocker.
We have 30 alerts in the current 8.4 environment.
I ran into this same issue but have found both the problem and a workaround.
When it's copying the alerting rules it's expecting Grafana Alerting to be set to On for both the 8.4 and 9.4 workspaces. This option is under Workspace configuration options.
I had an 8.4 Workspace and migrated to a new 9.4 workspace and recieved the error:
error: alerting API version not supported for src, minimum supported is v8.4
Switching both workspaces to have alerting on allowed it to perform the migration without error. Also tested with a new destination workspace with alerting turned on during creation and it migrated without error as well.
The code currently looks to be doing a catchall on any error and throwing that above error. Would be worth putting in a check to see if alerting is on and/or if there are any rules.
Yeah good catch @benfriebe, we'll add the Grafana Alerting requirements in the docs. Also the error is too generic, we'll issue a fix for that
Did you search for similar issues before submitting?
Release version
0.1.3 (though this was downloaded via the 0.1.4 release tag)
Is it a permission issue?
What is your environment, configuration and the example used?
and this is at the end of the output from the
migrate
commandAdditional Information