suggest document for alert manager

18 views
Skip to first unread message

sunil sagar

unread,
Apr 24, 2020, 9:30:10 PM4/24/20
to Prometheus Users
Hi, 

I am working on alert-manager , very new to this . 
I want to write query for if data is not received on certain topic/feed within one hour , it should send mail to a particular group , such kind of alerting mechanism I have to implement . 

Please suggest any documentation I can follow . 

Thanks, 

Christian Hoffmann

unread,
Apr 25, 2020, 7:10:47 AM4/25/20
to sunil sagar, Prometheus Users
Hi,

On 4/25/20 3:30 AM, sunil sagar wrote:
> I am working on alert-manager , very new to this . 
> I want to write query for if data is not received on certain topic/feed
> within one hour , it should send mail to a particular group , such kind
> of alerting mechanism I have to implement . 

This sounds like you want to do two things.

First, you will need to generate Alerts somehow. This is not done by
Alertmanager. As you are on the Prometheus mailing list, I suppose you
will be using Prometheus for that.

Here are some ressources for that:
https://prometheus.io/docs/prometheus/latest/getting_started/
https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/
https://prometheus.io/docs/alerting/overview/
https://prometheus.io/docs/alerting/configuration/#route
https://prometheus.io/docs/alerting/configuration/#email_config

Basically you want to set up Prometheus which scrapes your target. This
provides you with the metrics you need (I'm thinking of some
yourapp_data_last_received_timestamp_seconds).

Then, you can configure Prometheus to generate an alert if this
timestamp is too old.

Your Prometheus server will have to be configured to send its alerts to
alertmanager.

Alertmanager will then decide where to send your alert based on its
routes. The target is called a receiver. You can configure a receiver
which sends mail to a specific group.

I suggest working through these steps and coming back once you hit any
obstacles or problems.

We would then need some more details, e.g. specific error messages,
metric names, config excerpts, etc.


Kind regards,
Christian

Sagar

unread,
Apr 27, 2020, 9:26:57 PM4/27/20
to Christian Hoffmann, Prometheus Users
Hi Christian, 

Thank you for sharing the links , I will check them out. 

As you suggested , I will create routes . 

Regards, 
Sunil Sagar
Reply all
Reply to author
Forward
0 new messages