Accessing metrics through Grafana UI or Grafana/Mimir APIs
Question asked on Slack:
is there a place where I can run a promql query like we used to do with thanos? I'm trying to get some numbers out from a grafana dashboard do we have a 1y retention? My data dies before feb 2024
Answered by @reprazent:
We rolled out Mimir in Q1 of last year, so that's when the data starts, which is likely what you're seeing there The query interface for mimir is grafana's /explore thing, for better or worse If you need the data older than that, you can still query thanos, but the data will stop with some overlap
We could add a docs page to given overview of:
- Why and when did we switch to Mimir?
- Consequences for metrics availability
- Retention strategy for metrics data
- How to query metrics through Grafana UI
- How to programmatically retrieve metrics through Grafana API or Mimir API (and what type of access needed)