Create a webhook endpoint for Prometheus

Create a webhook endpoint so that Prometheus can send automated real-time messages or information to Incident Response.

Before you begin

Role required: Responder, Manager, or Administrator

Procedure

  1. Log in to Incident Response.
  2. On the navigation pane, click Integrations.
    The integrations landing page.
  3. Click the Prometheus integration card.
    By default, the Details tab is selected.
  4. On the form, fill the fields.
    Field Description
    Name Name of the integration.
    Status Status of the integration such as enabled or disabled.
    Note: You can modify this field only after the webhook is generated.
    Description Brief summary about the services of the integration.
    Integration URL The URL of the home page of the monitoring tool that sends alerts.
    Tags Tags that can help users search for the integration.
    Service Name of the service that you want to associate with the integration.
  5. Click Generate Webhook.

    A webhook URL is generated.

    A webhook URL is generated.

    Copy the webhook by clicking the copy icon (Copy the webhook URL.) and paste it in a safe place because you will need it when configuring Prometheus.

    Note: Use the Sample payload tab to view the sample payload. The payload is to verify whether the integration is configured correctly in Incident Response. To test whether an alert is getting generated, click Send sample alert and from the navigation pane on your instance, click Alerts to check if any alert is created. The alert is generated from Incident Response and not from the monitoring tools.
  6. Click Save.

What to do next

  1. Configure the alertmanager.yml file to include webhook as receiver.
  2. In the alertmanager.yml file, under webhook_configs, paste the webhook URL that you have generated.
To know how you can configure the alertmanager.yml file, see Configure webhook in Prometheus.