Scrape duration for a target

21 views
Skip to first unread message

Shelten

unread,
Apr 10, 2023, 5:56:27 AM4/10/23
to Prometheus Users
How to achieve a target scrape duration, example, the machine was added so and so date and removed from the scrape so and so date, so how to get the time interval between them ?

Brian Candler

unread,
Apr 10, 2023, 7:16:23 AM4/10/23
to Prometheus Users
You could look at the "up" metric, see when it appeared and when it disappeared.  Obviously, this only works for whatever data retention period you have configured.
Reply all
Reply to author
Forward
0 new messages