Fetching POD metrics for specific day through Prometheus API call

  • Grafana version v 9.1.6

  • We are using Prometheus API to fetch POD metrics of applications for the last day or last hour.

  • But, we want to fetch POD metrics of an application for Monday’s of last week or, first week of Monday in a month.

  • We don’t know how we could achieve either of them. Can you please suggest? Like what argument need to be passed in the start and end timeframe tag, example: now-1w/w (for previous week).

  • Can you please help in constructing and share example curl command?