Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/grafana-cloud/observe-and-act/alert-and-measure-reliability/slo/set-up/additionaldatasources.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana-cloud/observe-and-act/alert-and-measure-reliability/slo/set-up/additionaldatasources/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
Configure additional data sources for SLOs
You can create Grafana SLOs against data sources other than the default Grafana Cloud Mimir data source.
An SLO uses a source data source, which the SLI query is executed against, and a target data source, to remote write the recorded series to. The two can be the same data source or different ones. Refer to select the source and target data sources for more information.
Supported data sources
You can use the following as the source data source:
- Mimir (Grafana Cloud Prometheus Metrics)
- Prometheus-compatible data source
The target data source must be a Mimir or other Prometheus-compatible data source that accepts recording rules. Refer to configure a target data source.
When creating SLOs on Splunk, AppDynamics or Graphite data sources, the target data source is not selectable and is always the default provisioned Grafana Cloud Mimir.
Note
The Grafana Mimir that comes with Grafana Cloud accounts is already configured appropriately and can be selected as both a source data source and a target data source.
Before you begin
- Verify that you have Query permissions to the data source. You can verify permissions in the data source configuration.
- If the data source is backed by Grafana Cloud, make sure you have a Grafana Cloud Access Policy with the scopes it needs over the appropriate realms:
- A source data source needs
metrics:read. - A target data source needs both
metrics:readandmetrics:write.
- A source data source needs
Add a data source for your SLO
To add a 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 the data source type you want to add. For a Grafana Mimir data source, click Prometheus. The data source configuration page opens.
Enter a name for the data source.
Enter the server URL for the data source you want to use.
Enter the authentication details for the data source. If you use a Cloud Access Policy, refer to how to authorize a service using an access policy token.
Click Save & test. The message “Successfully queried the Prometheus API” displays.
You can now select the new data source as the source data source in the SLO wizard.
Configure a target data source
The target data source stores the recording rules that Grafana generates for the SLO. Grafana evaluates those rules and writes the results to the target.
The target is also read from. Recording rules for the longer SLI time windows are calculated from the shorter recorded ones, and the SLO burn-rate alert rules and dashboards query the recorded SLO metrics.
To be used as a target, a data source must:
- Be a Mimir or other Prometheus-compatible data source.
- Have Allow as recording rules target enabled, in Advanced settings > Alerting.
- Use a Grafana Cloud Access Policy with both the
metrics:readandmetrics:writescopes.
Configure data source-managed recording rules
Grafana evaluates SLO recording rules for you. A small number of legacy Grafana Cloud stacks instead use data source-managed recording rules. On these stacks the SLI query and the recording rules use a single data source, and the Create SLO wizard shows one Select data source picker instead of two.
These stacks have extra requirements. The data source must:
- Be a Grafana Mimir data source. In Advanced settings > Performance, set Prometheus type to Mimir.
- Have the Ruler API enabled, using the
-ruler.enable-apiCLI flag. Grafana expects the Query API and the Ruler API to be under the same URL. You can’t provide a separate URL for the Ruler API. - Use a Grafana Cloud Access Policy with the
metrics:read,rules:read, andrules:writescopes over the appropriate realms.
Note
The Grafana Mimir data source that comes with Grafana Cloud accounts is already configured to meet these requirements.
Grafana Cloud customers who want to switch to Grafana-managed recording rules for SLO should submit a support ticket through Grafana Cloud to request the change or coordinate with their Grafana account team as needed. Note that this is a stack-wide plugin configuration.
Was this page helpful?
Related resources from Grafana Labs


