-
What Grafana version and what operating system are you using?
Grafana v12.1.0 (ccd7b6ce7e) -
What are you trying to achieve?
I’m trying to import Prometheus YAML rules directly from file, as indicated in this new feature -
How are you trying to achieve it?
I have already set a Mimir data source with an enabled ruler, as indicated in the Issues related in Grafana repo -
What happened?
I can’t see the button, although I can edit a data-source Mimir rule and also have imported Mimir rules into Grafana
-
What did you expect to happen?
I expected to see the button -
Can you copy/paste the configuration(s) that you are having problems with?
GF_FEATURE_TOGGLES_ENABLE: “alertingMigrationUI,alertingImportYAMLUI,enableDatagridEditing,dashgpt,canvasPanelPanZoom,grafanaManagedRecordingRules,grafanaManagedRecordingRulesDatasources” -
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
No, I didn’t -
Did you follow any online instructions? If so, what is the URL?
I followed some instructions as mentioned in these issues:
Alerting: Add ability to import rules to GMA from Prometheus YAML by soniaAguilarPeiron · Pull Request #105807 · grafana/grafana · GitHub
Import/Export alert rule in UI. · Issue #73437 · grafana/grafana · GitHub
Way to import Prometheus alert rules into Grafana's Alertmanager · Issue #84150 · grafana/grafana · GitHub
"Import to Grafana-managed rules" feature not working as expected · Issue #105983 · grafana/grafana · GitHub
Hi @thiagomarafelivbl! What happens if you click on the “Import to Grafana-managed rules“ button, does it open the import UI? It should redirect you to /alerting/import-datasource-managed-rules
, where you can select the option to import from a data source or from a file.