Error while using time_intervals in Prometheus configuration

40 views
Skip to first unread message

realElonMusk

unread,
Jul 11, 2023, 2:05:22 PM7/11/23
to Prometheus Users
Hi everyone,

I'm encountering an issue with the time_intervals configuration in Prometheus. When running amtool check-config, I receive the following error message: "couldn't parse timestamp 6:00, invalid format."

Here's the relevant snippet of my configuration:

time_intervals:
- name: maintenance_hours
  time_intervals:
  - times:
    - start_time: "6:00" # UTC
      end_time: "9:00" # UTC

Could someone please guide me on the correct format for specifying time intervals in Prometheus?

Regards,
AB

Brian Candler

unread,
Jul 11, 2023, 2:21:08 PM7/11/23
to Prometheus Users
Have you tried "06:00" and "09:00" ?

realElonMusk

unread,
Jul 11, 2023, 3:35:12 PM7/11/23
to Prometheus Users
Yes, this worked. Thanks.
Reply all
Reply to author
Forward
0 new messages