Skip to content

Send alerts

Connect your monitoring tools so their alerts become Argavon incidents.

Argavon receives alerts over HTTP. Each tool sends to its own endpoint and proves who it is with a source token. The token also tells Argavon which workspace the alerts belong to.

Supported sources

Source Endpoint What it sends Credential
Prometheus Alertmanager POST /api/v1/ingest/prometheus Alertmanager webhook Source token
Grafana Alerting POST /api/v1/ingest/grafana Webhook contact point Source token
Zabbix POST /api/v1/ingest/zabbix Argavon media type (in deploy/zabbix/) Source token
OpenTelemetry (and Jaeger) POST /api/v1/otel/logs, /metrics, /traces OTLP/HTTP, protobuf or JSON Source token
Argavon agent POST /api/v1/ingest/agent Agent event batches Per-agent HMAC signature
Events API POST /api/v1/events One JSON event User session or API key

Other tools are not supported as built-in sources at the moment. To send from a script or a tool not listed, use the Events API.

What a source is

A source is one connection from one tool, for example prod-prometheus. It has:

  • a name (up to 100 characters),
  • a type: prometheus, grafana, zabbix, otel or jaeger,
  • a token the tool sends with every request,
  • health counters: when data last arrived, how many events, the last error.

The type decides which endpoints the token may post to:

Source type Endpoints it may use
prometheus /ingest/prometheus
grafana /ingest/grafana, and /ingest/prometheus (older Grafana setups; the Grafana mapping is still used)
zabbix /ingest/zabbix
otel /otel/logs, /otel/metrics, /otel/traces
jaeger /otel/traces

A token used on the wrong endpoint gets 403.

Create one source per tool instance. Separate sources keep health and errors apart, and you can rotate or delete one without touching the others.

Create a source

You need the operator or admin role.

In the web app

  1. Open Integrations (under Platform in the sidebar).
  2. Pick the tool on the left: OpenTelemetry, Prometheus, Grafana, Jaeger or Zabbix.
  3. Under Connection, type a name (for example prod-prometheus) and click Connect <tool>, for example Connect Prometheus.
  4. Copy the token. The page says: copy it now, it won’t be shown again. Click I’ve saved it when done.

While the token is on screen, the setup steps and the config snippet on the same page have it filled in, ready to copy.

Each source in the list has three buttons:

  • Test: sends a sample alert for that tool through the real parser. See Send a first test alert.
  • Rotate token: issues a new token. The old one stops working at once.
  • Delete: asks you to confirm (Delete (its token stops working)).

Viewers see the list but not the buttons.

With the API

curl -sS -X POST https://argavon.com.com/api/v1/sources \
  -H "Authorization: Bearer $NEUROOPS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "prod-prometheus", "type": "prometheus"}'

The response is 201 Created:

{
  "id": "source-3f9c2a1b7e4d5c6a8b9f0e1d",
  "tenant_id": "…",
  "name": "prod-prometheus",
  "type": "prometheus",
  "token": "9b2e4f…",
  "endpoint": "/api/v1/ingest/prometheus",
  "status": "connected",
  "created_at": "2026-11-04T09:00:00Z",
  "last_event_at": null,
  "last_error": "",
  "last_error_at": null,
  "error_count": 0,
  "total_events": 0
}

$NEUROOPS_API_KEY is an API key with the operator or admin role. See Users, invites and API keys.

Other source calls:

Call What it does
GET /api/v1/sources List sources (tokens are never included)
GET /api/v1/sources/health List sources with a stale flag: a healthy source with no data for 30 minutes
POST /api/v1/sources/test with {"source_id": "…"} Send the sample alert for that source
POST /api/v1/sources/{id}/rotate New token; the response contains it once
DELETE /api/v1/sources/{id} Delete the source; its token stops working

The token is shown once

The token is returned only when you create the source or rotate its token. Lists never include it. If you lose it, rotate the token and update the tool.

Send the token

Every request must carry the token in one of two headers:

X-Source-Token: <token>
Authorization: Bearer <token>

Use whichever your tool can set. Alertmanager and Grafana can set Authorization; the OpenTelemetry Collector examples use X-Source-Token.

Send a first test alert

Two ways.

From the web app. On Integrations, click Test next to your source. Argavon runs that tool's sample payload through the same parser and pipeline as real data. For Prometheus you see Sent. 1 event accepted; see Incidents.

With curl. This sends a minimal Alertmanager payload to a prometheus source:

curl -sS -X POST https://argavon.com.com/api/v1/ingest/prometheus \
  -H "Authorization: Bearer $SOURCE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "alerts": [
      {
        "status": "firing",
        "labels": {
          "alertname": "HighErrorRate",
          "service": "checkout-api",
          "severity": "critical"
        },
        "annotations": {
          "summary": "Error rate above 5%",
          "description": "checkout-api error rate is 8.3%"
        },
        "startsAt": "2026-11-04T09:00:00Z",
        "fingerprint": "curl-test-1"
      }
    ]
  }'

Expected answer:

{"status":"accepted","processed":1}

Open Incidents. A critical incident Error rate above 5% on checkout-api appears. To close it, send the same body again with "status": "resolved". Argavon closes the incident on its own after the quiet period (5 minutes by default; see Prometheus).

What happens to an alert

Each alert is stored as an event, then correlated. If an admin mute matches it, it is stored but opens nothing. A repeat of an alert Argavon saw in the last 5 minutes (same fingerprint) joins the open incident without raising its count. An alert with the same fingerprint as any open incident joins that incident. Otherwise an alert for the same or a related service within 5 minutes joins that service's open incident. If nothing matches, a new incident opens and escalation starts. See Incidents and correlation.

A "resolved" message never opens or bumps an incident. It only marks the alert as recovered, which can close the incident (see auto-close on each source page).

Retries and duplicates

The Prometheus, Grafana and Zabbix endpoints, and the OTLP endpoints, accept an optional X-Idempotency-Key header. A repeat of the same key within 24 hours gets the first answer again, with the header X-Idempotent-Replay: true, and is not processed twice. The Zabbix media type sets this header for you.

Dead-letter queue

When a payload cannot be ingested, Argavon keeps it in the dead-letter queue instead of dropping it. This happens when:

  • the body is not valid JSON, has no alerts, or breaks a limit (the sender gets 400 with the reason),
  • a Zabbix payload has no trigger_id or host,
  • an OTLP body cannot be mapped (400 mapping error: …),
  • an alert parsed but could not be stored (the sender gets 503 and should retry).

On the Prometheus, Grafana and Zabbix endpoints, a rejected payload also counts as an error on its source, and the error shows under the source on Integrations (last error: …).

List the queue (operator or admin):

curl -sS "https://argavon.com.com/api/v1/ingest/dlq?limit=50" \
  -H "Authorization: Bearer $NEUROOPS_API_KEY"
{
  "items": [
    {
      "id": 42,
      "tenant_id": "…",
      "source_id": "source-3f9c2a1b7e4d5c6a8b9f0e1d",
      "source_type": "prometheus",
      "endpoint": "/ingest/prometheus",
      "raw_payload": "{\"alerts\":[]}",
      "error": "alerts array is empty or missing",
      "retry_count": 0,
      "created_at": "2026-11-04T09:05:00Z"
    }
  ]
}

limit defaults to 100 and is capped at 500. Use offset to page.

Warning

Raw payloads can contain secrets from alert annotations. That is why only operators and admins can read the queue.

There is no API to replay an entry. Fix the sender and let it send again.

Limits

Limit Value What you get
Requests per client IP, webhook and OTLP endpoints together 600 per minute 429 rate limit exceeded — try again later, code RATE_LIMIT_EXCEEDED
Requests per client IP, Argavon agent endpoints 3000 per minute (about 250 agents behind one address) same
Requests per source 100 per minute 429 with Retry-After: 60 and code RATE_LIMIT_EXCEEDED
Body size (webhooks and OTLP) 1 MiB 413 request body too large (max 1 MiB)
Alerts per Prometheus or Grafana request 1000 400 too many alerts (max 1000 per request)
OTLP body after gzip decompression 8 MiB 413 decompressed body too large (max 8 MiB)

The per-IP limit is checked before the token, the per-source limit after it. The Argavon agent routes have their own per-IP limit, so many agents behind one NAT do not use up the webhooks' allowance, and the other way round.

If it does not work

You see Cause and fix
401 missing or invalid source token (send X-Source-Token or Authorization: Bearer <token>) No token, a typo, or the token was rotated or the source deleted. Rotate the token and update the tool.
403 source token not authorized for /ingest/… The token belongs to a source of another type. Create a source of the right type.
400 invalid JSON: … or alerts array is empty or missing The body is not what that endpoint expects. Check the payload in the dead-letter queue.
413 Send smaller batches.
429 Too many requests. Batch more alerts per request or spread senders.
503 could not store the alerts; they were kept in the dead-letter queue A database problem on the Argavon side. The sender should retry.
Source shows waiting for data Nothing has arrived with that token yet. Check the URL and the header in the tool.
Source shows degraded or error Requests arrived but some were rejected. The last error is shown under the source.