Integrations

Prometheus Alertmanager

prometheus

Coralogix allows you to monitor Prometheus events through webhooks. Using Alertmanager you can track the state of instances and machines, monitor their memory, disk usage and more. Using alerts and visualizations you can gain insight into the status of these Alerts.  This can help with root cause and impact analysis as well as in correlating resources with issues.

Coralogix came up with an easy solution to allow you to collect Prometheus alarms. The steps below are going to walk you through how to do so.

Before starting your integration please contact Coralogix Customer success through chat in our website www.coralogix.com or send us an email to support@coralogix.com requesting a token for your integration. 

  1. You need to have Prometheus configured with Alertmanager.
  2. Add some rules in your alert_file.yml and this can be as many rules as you like.
  3. Please make sure to confirm your rules are working properly by using:   
         Promtool check rules  /path to your rules.yml file.

  4. Configure your alertmanager to trigger an alert once any of the rules in your rules.yml file has been satisfied.

  5. Open alertmanager.yml usually it is located under /etc/alertmanger/alertmanager.yml, the path depends on your installation.

 

   5. Add the following to the file. 

route:
  receiver: Coralogix

receivers:
  - name: Coralogix
    webhook_configs:
      - url: Coralogix-url
        send_resolved: true

Receiver

Name

url

Can be any name you like  but just to differentiate between your receivers put something meaningful

The same as your receiver

https://integrations.Cluster URL/v1/prometheus/v1/events/<token>

If you’d like to specify the application name and subsystemname you can add them right after the token in the payload URL like the below example.

https://integrations.coralogix.com/v1/prometheus/v1/events/<token>?appName=<my-app>&subSystem=<my-subsystem>

Cluster URL is a variable. Please match this part with a row entry within the table. Copy the table row entry located under the column that matches the top-level domain of your Coralogix account (.com, .in, etc.). Replace the variable part of the URL with this entry.

 .com.in
Elasticsearch-APIhttps://coralogix-esapi.coralogix.com:9443https://es-api.app.coralogix.in:9443
SSL Certificateshttps://coralogix-public.s3-eu-west-1.amazonaws.com/certificate/Coralogix-EU.crthttps://coralogix-public.s3-eu-west-1.amazonaws.com/certificate/Coralogix-IN
.pem
Cluster URLcoralogix.comapp.coralogix.in

Please make sure to use amtool to check the alert manager config and make sure it passes. Your alert manager will not start if this config is not correct.

If the config passes you will get a success message with details about what you have configured in your alertmanger.yml.

 

Example of the log you would see in Coralogix UI.

 

 

Start solving your production issues faster

Let's talk about how Coralogix can help you

Managed, scaled, and compliant monitoring, built for CI/CD

Get a demo

No credit card required

© 2021 Copyright Coralogix. All rights reserved.

Get a personalized demo

Jump on a call with one of our experts and get a live personalized demonstration