{{-ifgt(len $alert.Labels.node)0-}}故障物理机ip: {{ $alert.Labels.node }};{{- end -}} {{-ifgt(len $alert.Labels.pod_name)0-}}故障pod名称: {{ $alert.Labels.pod_name }}{{- end }} === {{- end }} {{- end }} {{-ifgt(len .Alerts.Resolved)0-}} {{- range $ind...
receivers: - name: 'wechat' wechat_configs: - send_resolved: true agent_id: '' # 自建应用的agentId to_party: '' # 接收告警消息的人员Id api_secret: '' # 自建应用的secret corp_id: '' # 企业ID 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. ...
git config --global user.name userName git config --global user.email userEmail 使用HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议配置并使用私人令牌替代登录密码进行克隆、推送等操作 Username for 'https://gitee.com': userName ...
alertname: Watchdog receiver: "wechat" receivers: - name: "wechat" #定义微信接收 wechat_configs: - corp_id: "123456789" #企业微信的ID to_party: "12334" #部门的ID to_tag: "1" #用企业微信接口创建的tag agent_id: "1111" #应用的ID api_secret: "11111" #应用的secret send_resolved: ...
#- send_resolved: true#url: http://10.0.3.6:28082/v1/alertmanager#- name: db-alert-slack#slack_configs:#- channel: #alerts#username: db-alert#icon_emoji: :bell:#title: {{ .CommonLabels.alertname }}#text: {{ .CommonAnnotations.summary }} {{ .CommonAnnotations.description }} expr: ...
apiVersion:apps/v1kind:Deploymentmetadata:name:weixin-hooknamespace:monitoringspec:replicas:1selector:matchLabels:app:weixin-hooktemplate:metadata:labels:app:weixin-hookspec:containers:-name:weixin-hookimage:weixin-hook:1.0.0imagePullPolicy:IfNotPresentports:-containerPort:5000name:httpenv:-name:PROME_...
%nameName of the sensor that triggered the event (including sensor type)%sensor %nodenameName of the node if in a clusterMight not work in older versions %objecttagsAll tags of a sensorAvailable as of PRTG 20.1.56 %parenttagsAll tags of a sensor's parent objectsAvailable as of PRTG 20.1...
{{- if gt (len $alert.Labels.pod_name) 0 -}}故障pod名称: {{ $alert.Labels.pod_name }}{{- end }} === {{- end }} {{- end }} {{- if gt (len .Alerts.Resolved) 0 -}} {{- range $index, $alert := .Alerts -}} {{- if eq $index 0 -}...
name: 'webhook-kafka-adapter' # webhook_configs: # - send_resolved: true # url: 'http://10.0.3.6:28082/v1/alertmanager' #- name: 'db-alert-slack' # slack_configs: # - channel: '#alerts' # username: 'db-alert' # icon_emoji: ':bell:' # title: '{{ .CommonLabels.alertname }...
Conditions: Event acknowledged equals Not Ack 事件恢复时的通知操作 [Recovery operations] Default subject: Resolved: {EVENT.NAME} Default message: Time: {EVENT.DATE} {EVENT.TIME} Host: {HOST.NAME} Level: {TRIGGER.SEVERITY} ItemValue: {ITEM.VALUE} ...