QuestionQ2

PromQL

Given the metric prometheus_tsdb_lowest_timestamp_seconds, how can you determine the month to which the lowest timestamp in your Prometheus TSDB belongs?

Explanation

PromQL’s month() function returns the calendar month, in UTC, for each input timestamp. Applying it to prometheus_tsdb_lowest_timestamp_seconds extracts the month represented by that metric’s Unix timestamp.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!