Please help me use of Grafana Date picker in Prometheus data source query.
Here are my details:
I have custom exporter Prometheus metrics as shown below:
pipeline_health_merges{repo="a", closed_at="2023-06-12T16:05:46.902Z", created_at="2023-04-06T19:32:27.123Z", id="1293", instance="host.docker.internal:9091", job="custom-golang-exporter"}
pipeline_health_merges{repo="b",closed_at="2023-06-08T16:05:46.902Z", created_at="2023-04-06T19:32:27.123Z", id="1293", instance="host.docker.internal:9091", job="custom-golang-exporter"}
pipeline_health_merges{repo="a",closed_at="2023-06-01T16:05:46.902Z", created_at="2023-04-06T19:32:27.123Z", id="1293", instance="host.docker.internal:9091", job="custom-golang-exporter"}
pipeline_health_merges{repo="c",closed_at="2023-04-12T16:05:46.902Z", created_at="2023-04-06T19:32:27.123Z", id="1293", instance="host.docker.internal:9091", job="custom-golang-exporter"}
My Query:
pipeline_health_merges{repo=~"a|b"})
I need to show query that filters on closed_at field of metrics based on Grafana date picker that is from (now -10d) and to (now)
I am unable to figure out the correct query to accomplish above. Not even sure about Grafana date picker name.
I am a newbie and request your help.
Thanks!