Hi there
I would like to setup the webhook from alertmanager to flock, but I can see it most related are slack_configs or webhook_configs, I had setup the incoming webhook on Flock, also updated the alertmanager.yml config, but I can't push alert message to Flock, I cant see any doc to setup the alertmanager to Flock, please help.
Below are the alertmanager.yml, it including the slack_configs is works, for the Flock's part it didnt work by using both slack_configs or webhook_configs
=====================================================================================================================
receivers:
- name: 'slack'
slack_configs:
username: 'alertmanager alert'
channel: '#alert'
send_resolved: true
title: |-
[{{ .Status | toUpper }}{{ if eq .Status "firing" }}:{{ .Alerts.Firing | len }}{{ end }}] {{ .CommonLabels.alertname }} for {{ .CommonLabels.job }}
{{- if gt (len .CommonLabels) (len .GroupLabels) -}}
{{" "}}(
{{- with .CommonLabels.Remove .GroupLabels.Names }}
{{- range $index, $label := .SortedPairs -}}
{{ if $index }}, {{ end }}
{{- $label.Name }}="{{ $label.Value -}}"
{{- end }}
{{- end -}}
)
{{- end }}
text: >-
{{ with index .Alerts 0 -}}
:chart_with_upwards_trend: *<{{ .GeneratorURL }}|Graph>*
{{- if .Annotations.runbook }} :notebook: *<{{ .Annotations.runbook }}|Runbook>*{{ end }}
{{ end }}
*Alert details*:
{{ range .Alerts -}}
*Alert:* {{ .Annotations.title }}{{ if .Labels.severity }} - `{{ .Labels.severity }}`{{ end }}
*Description:* {{ .Annotations.description }}
*Details:*
{{ range .Labels.SortedPairs }} • *{{ .Name }}:* `{{ .Value }}`
{{ end }}
{{ end }}
- name: 'flock-slack_config'
slack_configs:
- name: 'flock-webhook_config'
webhook_configs: