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:
  - api_url: 
'https://hooks.slack.com/services/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
    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:
  - api_url: 
'https://api.flock.com/hooks/sendMessage/xxxxxxxxxxxxxxxxxxxxxxx'
- name: 'flock-webhook_config'
  webhook_configs:
  - url: 'https://api.flock.com/hooks/sendMessage/xxxxxxxxxxxxxxxxxxxxxxxxx'

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/12141b62-c2bb-42d0-a429-37df3addfd24o%40googlegroups.com.

Reply via email to