Configure an Additional Grafana Mimir Data Source for Grafana SLO
You can create Grafana SLOs with Grafana Mimir data sources. To use a Grafana Mimir data source, verify that you have either Admin or Edit permissions for the data source and that the Ruler API on the Grafana Mimir data source is enabled.
Note: The Grafana Mimir that comes with Grafana Cloud accounts are already configured appropriately to support the Ruler API configuration requirements.
Before you begin
- Verify that you have either Admin or Edit permissions to the Grafana Mimir data source. You can verify for permissions in the data source configuration.
- To verify that the Ruler API is enabled, ensure that the
-ruler.enable-apiCLI flag is enabled. Note that Grafana expects that both the Query API and Ruler API are under the same URL to ensure that data source-managed alerts can function properly. You cannot provide a separate URL for the Ruler API. If you are using a Grafana Mimir that comes with Grafana Cloud, it already has the Ruler API enabled.
Add new Grafana Mimir Data Source for your SLO
To add a Grafana Mimir data source to use with your SLO, you first need to add it as a data source in Grafana.
In the Grafana Cloud sidebar, click Connections and then Data sources.
Click Add data source.
In the list of data sources, click Prometheus. The Prometheus data source configuration page opens.
Enter a name for the data source.
Enter the Prometheus server URL for the Grafana Mimir data source you want to use. To find the Prometheus server URL, open a new tab of your Grafana instance and go to the desired Grafana Mimir data source on the Connections > Data sources page and copy the Prometheus server URL from the Connection section in the Settings tab.
Enter the authentication type and name from the Grafana Mimir data source into your new data source. Enter the authentication methods information from the Authentication section of the Grafana Mimir data source. For the password, enter the API key for the data source.
In the Performance section of your new data source, click on the Prometheus type dropdown and select Mimir.
Click Save & test. The message “Successfully queried the Prometheus API” displays.
You can now select the new Grafana Mimir data source from the Select data source section of the Create SLO wizard.