Alertmanager Slack Example

2,107 views
Skip to first unread message

Tiago Katcipis

unread,
Jan 19, 2016, 1:48:55 PM1/19/16
to Prometheus Developers
Hi,

Im trying to use the new alertmanager but my old configuration stopped working with the following error:


time="2016-01-19T18:17:43Z" level=error msg="Loading configuration file failed: yaml: line 1: mapping values are not allowed in this context" file="/prometheus/cfg/alertmanager.conf" source="main.go:128"


The first obvious thing was the fact that the error involves YAML, the old config is a JSON. So I assume the configuration format changed considerably on the new alertmanager.

Checking out the docs it seems to be lacking a slack example:


Like there is on the current docs:


Is there any documentation (that I missed) that can help me on the migration process ?

I need the newest alert manager because I'm using the latest prometheus to use kubernetes integration, and the newest prometheus does not work with the old alertmanager API (it as giving a 404 error when the alert was triggered).

Best regards,
Tiago Katcipis

Fabian Reinartz

unread,
Jan 19, 2016, 4:03:27 PM1/19/16
to Tiago Katcipis, Prometheus Developers

Quick answer from mobile (sorry, no direct links)

Check the readme in the repository for general information about the new Alertmanager and the beta announcements on this mailing list for links to the right documentation.


--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tiago Katcipis

unread,
Jan 19, 2016, 6:00:42 PM1/19/16
to Fabian Reinartz, Prometheus Developers
Actually I was already hanging around the repository, using grep to look around for slack I can found only code (which is a form of documentation, of course :-). 

I searched both:



I just searched on:


And it only has the old documentation (using JSON).

It seems to be no example on how to use slack configuration on Alertmanager. I could just follow the code and build one, but I'm not sure if this feature is even working right now.

I just wanted to know the status of the slack integration so I could help with what is missing, it may be only documentation, or even some code.

Sorry if I'm missing something basic

Nicholas Capo

unread,
Jan 20, 2016, 8:26:07 AM1/20/16
to Tiago Katcipis, Fabian Reinartz, Prometheus Developers

It looks like there is an example in this comment[1], I'll be trying it later today.

Nicholas

[1] https://github.com/prometheus/alertmanager/issues/203#issuecomment-173179471

Fabian Reinartz

unread,
Jan 20, 2016, 8:46:35 AM1/20/16
to Nicholas Capo, Tiago Katcipis, Prometheus Developers
Slack integration is fully functional.

As said yesterday, the announcement email has a link to initial documentation.

The README in the repository contains a basic example for other receiver integrations. Except for different field names, these are completely analogous to configuring Slack (see link above).

Tiago Katcipis

unread,
Jan 20, 2016, 6:32:38 PM1/20/16
to Fabian Reinartz, Nicholas Capo, Prometheus Developers
On Wed, Jan 20, 2016 at 11:46 AM, Fabian Reinartz <fab.re...@gmail.com> wrote:
Slack integration is fully functional.

Great
 

As said yesterday, the announcement email has a link to initial documentation.

Sorry, I missed the announcement email
I also failed on finding these docs, I thought documentation would be on https://github.com/prometheus/prometheus.github.io
 

The README in the repository contains a basic example for other receiver integrations. Except for different field names, these are completely analogous to configuring Slack (see link above).

Thanks Fabian and sorry for the noise, I will search more carefully on the future.

Fabian Reinartz

unread,
Jan 20, 2016, 6:42:49 PM1/20/16
to Tiago Katcipis, Nicholas Capo, Prometheus Developers
The documentation is written/updated in https://github.com/prometheus/docs. This is also the repository to file issues in for wrong or hard to understand documentation. From there static pages are generated that live in https://github.com/prometheus/prometheus.github.io, which is the website served under http://prometheus.io.

The documentation situation is a bit unlucky at the moment.
We discussed putting it on the web page already even though it is still beta, since the old Alertmanager is effectively retired.

Hope it will be easier then and things are working for you now.

Reply all
Reply to author
Forward
0 new messages