prometheus / prometheus/alertmanager
time_intervals configuration differences in /status
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 8.6k
- Forks
- 2.5k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 61
Description
What did you do?
Updated to v0.25.0 to get support for locations in time_intervals.
What did you expect to see?
time_intervals represented in normal yaml format in the /#/status alertmanager endpoint. (ie. http://alertmanager:9093/#/status)
What did you see instead? Under which circumstances?
The first time_interval represented in yaml format, and the rest represented as dictionary objects. This is the relevant output from the alertmanager status endpoint.
time_intervals:
- name: time_interval_1
time_intervals:
- times:
- start_time: "02:45"
end_time: "23:45"
weekdays: ['monday:friday']
location: America/Chicago
- {name: time_interval_2, time_intervals: [{times: [{start_time: "05:15", end_time: "19:50"}],
weekdays: ['monday:friday'], location: America/Chicago}]}
- {name: time_interval_3, time_intervals: [{times: [{start_time: "02:10", end_time: "18:20"}],
weekdays: ['monday:friday'], location: America/Chicago}]}
Environment
-
System information:
Linux 4.18.0-348.7.1.el8_5.x86_64 x86_64
-
Alertmanager version:
v0.25.0
-
Prometheus version:
v2.32.1
-
Alertmanager configuration file:
I've tried several different configuration formats for these time_intervals (changing time/weekday/location ordering, different spacing, etc.) and all give the same output to status. I'm not sure if I've misconfiguration something, this is intentional representation, or a bug.
time_intervals:
- name: time_interval_1
time_intervals:
- weekdays: ['monday:friday']
times:
- start_time: '02:45'
end_time: '23:45'
location: 'America/Chicago'
- name: time_interval_2
time_intervals:
- weekdays: ['monday:friday']
times:
- start_time: '05:15'
end_time: '19:50'
location: 'America/Chicago'
- name: time_interval_3
time_intervals:
- weekdays: ['monday:friday']
times:
- start_time: '02:10'
end_time: '18:20'
location: 'America/Chicago'
- Prometheus configuration file:
insert configuration here (if relevant to the issue)
N/A
- Logs:
insert Prometheus and Alertmanager logs relevant to the issue here
N/A
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the v0.25.0 behavior by loading the provided time_intervals configuration and opening the /#/status Alertmanager endpoint. Trace how the status response represents multiple time intervals and compare it with the expected YAML format. Done means all time_intervals entries use a consistent representation in the status endpoint.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100