alerts-validator

Define which Prometheus alert has no DataPoint over different time range: 1 day, 30 days, and 90 days.

Continuous loop wich get alerts from Alert endpoint, then analyze them with Select endpoint.

Build

GOOS=linux GOARCH=amd64 go build -o alerts-validator-linux-amd64

Metrics

Works with Victoria Metrics v1.76.0

Configuration

Command line

Usage of alerts-validator:
  -conf string
        Config path (default "config.yaml")

YAML

listenAddress: 0.0.0.0      # Listen address for metrics endpoint
listenPort: 9345            # Listen port for metrics endpoint
interval: 10                # Interval between 2 compute in minutes

servers:
  - tenant: "my_tenant"                                             # Added in metric label
    alertUrl: https://vmalert.cluster.local.                        # Endpoint to get alerts
    selectUrl: https://vm.cluster.local./select/000/prometheus      # Endpoint to validate metrics

Contributors

GitHub

View Github