This is archived documentation for v2.3.x. Go to the latest version.
Storing exemplars in Grafana Mimir
You can enable exemplar storage in Grafana Mimir and view the resulting data in Grafana. While exemplars can be enabled for all tenants at once or for only specific tenants, we recommend enabling and enforcing limits for exemplars for only specific tenants.
Enable exemplars globally
In the Grafana Mimir configuration file, set the
limits.max_global_exemplars_per_uservalue. Start with a relatively low number (100,000) and adjust it if needed.
A partial Grafana Mimir configuration file with
max_global_exemplars_per_userset globally looks as follows:
limits: max_global_exemplars_per_user: 100000
Save and deploy the configuration file.
Perform a rolling update of Grafana Mimir components.
Enable exemplars for a specific tenant
Ensure Grafana Mimir uses a runtime configuration file by verifying that the flag
-runtime-config.fileis set to a non-null value. For more information about supported runtime configuration, refer to Runtime configuration file
In the runtime configuration file, set the
overrides.<TENANT>.max_global_exemplars_per_uservalue. Start with a relatively low number (100,000) and adjust it if needed.
A partial runtime configuration file with
max_global_exemplars_per_userset for a tenant called “tenant-a” would look as follows:
overrides: "tenant-a": max_global_exemplars_per_user: 100000
Save and deploy the runtime configuration file.
-runtime-config.reload-period has elapsed, components reload the runtime configuration file and use the updated configuration.
Related Mimir resources
How to control metrics growth in Prometheus and Kubernetes with Grafana Cloud
This webinar will introduce a metrics cost management framework to optimize metrics growth while keeping rising costs at bay with Grafana Cloud.
Intro to Grafana Mimir: The open source time series database that scales to 1 billion metrics & beyond
Grafana Mimir webinar—learn about our open source solution for extending Prometheus at organizations needing massive scale, rapid query performance.
For billion-series scale or home IoT projects, get started in minutes with Grafana Mimir
Learn how easy it is to get started with Mimir, no matter how many or few time series you need to store.