# Times when the route should be active. These must match the name of a # time interval defined in the time_intervals section. An empty value # means that the route is always active. # Additionally, the root node cannot have any active times. # The route will send notifications only wh...
= bums # 暂停某个时间段内告警,比如晚上8点到第二天7点间暂停告警 mute_time_intervals: [{start: "20:00", end: "07:00"}] # 指定在哪些时间段内才发出警告,用法与上条一样 active_time_intervals: [{start: "20:00", end: "07:00"}] # 可进行子路由节点匹配设置 routes: 2.1.3.1.routes...
NewSetNotifiesStage:创建新的接收器名称映射阶段。 NewTimeMuteStage:创建新的时间静音阶段。 NewTimeActiveStage:创建新的时间活动阶段。 inTimeIntervals:检查时间间隔是否包含给定时间。 File: alertmanager/notify/util.go 在alertmanager项目中,alertmanager/notify/util.go文件的作用是提供了一些通用的实用函数和结构体...
pipeline := pipelineBuilder.New(receivers,waitFunc,inhibitor,silencer,timeIntervals,notificationLog,pipelinePeer, ) disp = dispatch.NewDispatcher(alerts, routes, pipeline, marker, timeoutFunc, nil, logger, dispMetrics) ... } 三.Notify的pipeline 在Notify的pipeline中: 首先,先进行GossipSettle、inhibitor...
[FEATURE] Add support for active time intervals. Active and mute time intervals should be defined viatime_intervalsrather thanmute_time_intervals(the latter is deprecated but it will be supported until v1.0).prometheus#2779 [FEATURE] Add Telegram integration.prometheus#2827 ...
active_time_intervals: [ - <string> ...] # Zero or more child routes. routes: [ - <route> ... ] Example # The root route with all parameters, which are inherited by the child # routes if they are not overwritten. route: receiver: 'default-receiver' group_wait: 30s group_...
alertmanager整体的架构,官方的这张图说的很清楚,本文从源码的角度,分析其各个模块,以及模块间的交互流程。alertmanager的代码使用v0.24.0版本。一.API接...
active_time_intervals: [ - <string> ...] # 零个或多个子路由 routes: [ - <route> ... ] 示例 # 包含所有参数的根路由,如果没有覆盖这些参数,则由子路由继承。 route: receiver: 'default-receiver' group_wait: 30s group_interval: 5m ...
notify Adds: Active time interval (prometheus#2779) March 4, 2022 15:24 pkg Add deprecation note to pkg directory October 13, 2021 14:21 provider Update go dependencies & switch to go-kit/log August 2, 2021 12:43 scripts *: bump to Go 1.17 (prometheus#2792) December 22, 2021 14...
This commit updates /api/v2/alerts/groups to show if an alert is suppressed from one or more active or mute time intervals. While the muted by field can be found in /api/v2/alerts, it is not used here because /api/v2/alerts does not take aggregation or routing into consideration. It...