Google Managed Prometheus AlertsΒΆ

Warning

Due to updates in the Google Managed Prometheus API, these instructions may be outdated. Please contact our team for support on Slack (https://bit.ly/robusta-slack) or by email (support@robusta.dev). We're working on updating the documentation.

This guide shows how to send alerts from Google Managed Prometheus to Robusta.

For configuring metric querying from Google Managed Prometheus, see Google Managed Prometheus.

PrerequisitesΒΆ

An instance of Google Managed Prometheus with the following components configured:

Send Alerts to RobustaΒΆ

To send alerts to Robusta, create an AlertManager configuration file with the name alertmanager.yaml:

receivers:
  - name: 'robusta'
    webhook_configs:
      - url: 'http://<helm-release-name>-runner.<namespace>.svc.cluster.local/api/alerts'
        send_resolved: true
  - name: 'default-receiver'

route:
  routes:
    - receiver: 'robusta'
      group_by: [ '...' ]
      group_wait: 1s
      group_interval: 1s
      matchers:
        - severity =~ ".*"
      repeat_interval: 4h
      continue: true
  receiver: 'default-receiver'

Apply this file as a secret to your cluster using the following command:

kubectl create secret generic alertmanager \
  -n gmp-public \
  --from-file=alertmanager.yaml

Verify it WorksΒΆ

Run this command to send a dummy alert to the GMP AlertManager in your cluster:

robusta demo-alert --alertmanager-url='http://alertmanager.gmp-system.svc.cluster.local:9093

You know it works if you receive an alert from Robusta.

Configure Metric QueryingΒΆ

To enable Robusta to pull metrics from Google Managed Prometheus, see Google Managed Prometheus.