Skip to content

feat(prometheus): accept now, now-relative, and -duration time inputs - #187

Open
tjhop wants to merge 1 commit into
mainfrom
feat/now-time-parsing
Open

tjhop wants to merge 1 commit into
mainfrom
feat/now-time-parsing

Conversation

@tjhop

@tjhop tjhop commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

LLM clients routinely send Grafana's relative time syntax (now,
now-1h) or a leading-minus duration (-5m) to the time parameters,
since that works elsewhere in the ecosystem.

Accept the Grafana forms on top of epoch seconds, RFC3339, and bare
duration strings.

Also adds support for negative-duration.

Signed-off-by: TJ Hoplock t.hoplock@gmail.com

LLM clients routinely send Grafana's relative time syntax (`now`,
`now-1h`) or a leading-minus duration (`-5m`) to the time parameters,
since that works elsewhere in the ecosystem.

Accept the Grafana forms on top of epoch seconds, RFC3339, and bare
duration strings.

Also adds support for negative-duration.

Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>
@tjhop
tjhop requested a review from a team as a code owner September 15, 2026 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant