Skip to content

docs: note mute/active time intervals are not inherited - #5440

Open
locker95 wants to merge 1 commit into
prometheus:mainfrom
locker95:docs/route-time-interval-no-inherit-3211
Open

docs: note mute/active time intervals are not inherited#5440
locker95 wants to merge 1 commit into
prometheus:mainfrom
locker95:docs/route-time-interval-no-inherit-3211

Conversation

@locker95

@locker95 locker95 commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

The route block says optional settings inherit from the parent, but mute_time_intervals / active_time_intervals are always copied from the route itself and default to empty. A parent mute does not apply to children that omit the field.

Documented the exception next to the inheritance sentence and on both fields.

Route docs said optional parameters inherit from the parent, but
mute_time_intervals and active_time_intervals are always taken from the
route itself (empty if omitted). Call that out so parents do not look
like they mute children automatically.

Fixes prometheus#3211

Signed-off-by: Dean Chen <862469039@qq.com>
@locker95
locker95 requested a review from a team as a code owner August 7, 2026 20:46
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The route configuration documentation now states that mute_time_intervals and active_time_intervals are not inherited from parent routes. Each route must define the intervals it uses.

Changes

Route interval documentation

Layer / File(s) Summary
Document route inheritance rules
docs/configuration.md
The route documentation states that mute_time_intervals and active_time_intervals default to empty and must be listed on each route that uses them.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description accurately explains the documentation change, but it omits the required checklist, documentation checkbox, sign-off confirmation, best-practices confirmation, and release-notes section… Complete the repository template. Include the applicable checklist selections, confirm required documentation and commit sign-off, state whether the change affects user-facing behavior, and fill the release-notes block with NONE or an appro…
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The documentation updates directly satisfy issue #3211 by clarifying that both time-interval fields do not inherit from parent routes.
Out of Scope Changes check ✅ Passed The changes are limited to the requested route documentation clarification and contain no unrelated code or scope.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title clearly and concisely describes the documentation change for non-inherited mute and active time intervals.
Full details: Description check

Explanation

The description accurately explains the documentation change, but it omits the required checklist, documentation checkbox, sign-off confirmation, best-practices confirmation, and release-notes section content.

Resolution

Complete the repository template. Include the applicable checklist selections, confirm required documentation and commit sign-off, state whether the change affects user-facing behavior, and fill the release-notes block with NONE or an appropriate entry.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Comment thread docs/configuration.md
A route block defines a node in a routing tree and its children. Most optional
configuration parameters are inherited from its parent node if not set
(`receiver`, `group_by`, `group_wait`, `group_interval`, `repeat_interval`, and
`labels`).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

labels behave differently.

Comment thread docs/configuration.md
(`receiver`, `group_by`, `group_wait`, `group_interval`, `repeat_interval`, and
`labels`).

**Exception:** `mute_time_intervals` and `active_time_intervals` are **not**

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a simple sentence with the explanation is fine here. Also, the general idea this sentence is given is wrong: We don't have merging on any lists such as group_by either. The way these parameters really differ is that if they are omitted: In those cases one gets [] rather than what the parent specified.

(This matches the current implementation: those fields are
always taken from the route itself, defaulting to empty.)

Please don't leak the what you are doing in the task inside of our docs.

Comment thread docs/configuration.md
Comment on lines 198 to +342
@@ -330,6 +338,9 @@ labels:
# When a route is muted it will not send any notifications, but
# otherwise acts normally (including ending the route-matching process
# if the `continue` option is not set.)
#
# Not inherited from parent routes. Omit this field only if the route

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is better formulation, just by saying what happens if the field is omitted.

@SoloJacobs

Copy link
Copy Markdown
Contributor

Could you please also remove the Fixes #3211 from your commit. The original issue is not addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants