Silences (mutes)¶
Stop known, noisy alerts from opening incidents and paging people, for a fixed time or until the alert recovers.
In Argavon a silence is called a mute. Anyone signed in can see mutes. Only admins can create and end them.
What a mute does¶
- A matching alert is stored and logged, but it does not create or update an incident, so nobody is paged for it.
- An incident that is already open is not changed by a mute. Acknowledge or resolve it as usual.
- A mute lasts 7 days. It cannot be extended, only ended early. If you still need it after 7 days, create a new one.
- With End this mute when the alert recovers, the mute ends as soon as a matching alert recovers (at the latest after 7 days).
Mutes apply to alerts from Prometheus Alertmanager, Grafana, Zabbix and OpenTelemetry metrics. Alerts from other sources have no reliable alert name or value, so mutes never match them. Test alerts are never muted, so a test always shows whether the whole path works.
How matching works¶
A mute matches an alert only when every condition matches:
| Condition | Matches when |
|---|---|
| Alert names | The alert name is in the list, or the list is all. Case does not matter. |
| Devices | The device is in the list, or the list is all. |
| Service | Empty (any service), or equal to the alert's service. |
| Environment | Empty (any environment), or equal to the alert's environment. |
| Value range (optional) | The alert's numeric value is between the minimum and maximum. |
Where the fields come from:
- Alert name: the
alertnamelabel (Prometheus, Grafana, Zabbix) or the metric name (OpenTelemetry). - Device: the alert's resource, otherwise the first of these labels:
instance,host,hostname,host.name,node,k8s.node.name,pod,k8s.pod.name,service.instance.id. - Environment: the alert's environment, otherwise the
environment,envordeployment.environmentlabel. - Value: Prometheus alerts need a
valueannotation, for examplevalue: "{{ $value }}"in the alert rule. A trailing%is accepted (85%reads as 85).
Value ranges and alerts with no value
An alert with no readable value never matches a mute that has a value range. It comes through. This is on purpose: Argavon shows the alert rather than guess.
You cannot mute everything: a mute with all alert names, all devices, no service and no environment is refused.
Mute an alert in the web app¶
You can start from one alert or from a whole incident. The form is pre-filled from the alerts.
- Open the incident.
- To mute alerts like this incident's, click Mute incident in the incident header.
- To mute one alert, open the Timeline tab and click Mute next to the alert.
- Under Alert name / KPI and Devices, tick the values to mute, or choose All alert names / All devices. You can add more values in the text box. Other devices that sent the same alert in the last 7 days are offered as extra choices.
- Optionally set Service, Environment and a Value range (From / To).
- Type a Reason (required, up to 500 characters). For example: "Known batch job, fix planned for Friday".
- Optionally tick End this mute when the alert recovers.
- Check the preview: "Would have muted N alerts in the last 7 days", with the top devices. A
+after the number means the scan hit its limit and the real number is higher. - Click Mute for 7 days (or Mute until it recovers).
Changes reach every server within 5 seconds.
See and end mutes¶
On the Dashboard, the Active mutes tile shows how many mutes are active. Click it to open the Muted alerts panel:
- Worth a second look: active mutes that are probably no longer needed, with the reason. Admins can click Unmute here.
- Active mutes: what each mute matches, its reason, who created it, when it ends and how many alerts it stopped.
- Ended in the last 7 days: expired and ended mutes. A mute that ended because its alert recovered shows "ended: alert recovered".
- Muted alert log: every alert a mute stopped, newest first. Filter it by mute.
To end a mute early, click Unmute.
Reminders and the stale-mute report¶
Forgotten mutes hide real problems, so Argavon reminds you.
Before a mute ends. About 24 hours before a mute ends, its creator gets an email "Mute ends soon: …" with what it mutes, the reason and how many alerts it stopped, plus a link to the mutes panel. The bell shows the same as "Mute ends soon" for everyone. The email needs outbound email on the server (EMAIL_PROVIDER, see the configuration reference); the bell works without it.
Stale mutes. An active mute is listed under Worth a second look (and in the bell as "Mute may not be needed") when:
- it has not stopped a single alert in the 24 hours or more since it was created, or
- it has stopped nothing for 48 hours or more, so the problem may be fixed, or
- it was created from an incident that is now resolved.
API¶
| Method and path | Who | What it does |
|---|---|---|
GET /api/v1/mutes |
Any signed-in user | Active mutes and those that ended in the last 7 days, with active_count and muted_7d |
POST /api/v1/mutes |
Admin | Create a mute |
POST /api/v1/mutes/preview |
Admin | Count what a mute would have caught in the last 7 days (reason not required) |
GET /api/v1/mutes/suggest?event_id=… or ?incident_id=… |
Admin | Pre-filled fields from an alert or an incident |
GET /api/v1/mutes/stale |
Any signed-in user | stale (with reasons) and ending_soon |
GET /api/v1/mutes/log?mute_id=…&limit=50&offset=0 |
Any signed-in user | Alerts the mutes stopped (limit up to 200) |
POST /api/v1/mutes/{id}/unmute |
Admin | End a mute now |
Request body for create and preview:
| Field | Type | Notes |
|---|---|---|
alert_names |
list of strings | Required. ["all"] for every alert name. |
devices |
list of strings | Required. ["all"] for every device. |
service |
string | Optional. Empty means any. |
environment |
string | Optional. Empty means any. |
value_min, value_max |
number | Optional. |
reason |
string | Required for create, up to 500 characters. |
incident_id |
string | Optional. Links the mute to the incident it was made for. |
end_on_resolve |
boolean | End when a matching alert recovers. |
Mute HighCPU on two hosts until it recovers:
curl -s https://argavon.com.com/api/v1/mutes \
-H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
-d '{
"alert_names": ["HighCPU"],
"devices": ["web01", "web02"],
"service": "checkout-api",
"reason": "Load test until 18:00, tracked in OPS-412",
"end_on_resolve": true
}'
The response is the new mute, with id, ends_at, status (active) and match_count.
End it early:
curl -s -X POST https://argavon.com.com/api/v1/mutes/mute-…/unmute \
-H "Authorization: Bearer $TOKEN"
# => {"status":"unmuted","note":"takes effect on every server within 5 seconds"}
$TOKEN is a session token or an admin API key (nok_…).
If it does not work¶
| Message | What to do |
|---|---|
choose at least one alert name, or all / choose at least one device, or all |
Fill both lists. Use ["all"] if you mean every value. |
this would mute every alert; narrow it by alert name, device, service or environment |
Add at least one condition. |
reason is required |
Say why it is safe to mute. |
value range minimum is greater than the maximum |
Swap From and To. |
alert or incident not found |
The alert or incident id is wrong or belongs to another workspace. |
mute not found or no longer active |
The mute already ended. |
| The dialog says "Muting works for Prometheus, Grafana, Zabbix and OpenTelemetry metric alerts…" | The alerts come from a source mutes do not cover. Fix or silence them at the source. |
| Alerts still come through | Check the preview count. Compare the alert's name, device and environment with the mute, and remember an alert with no value never matches a mute with a value range. |
| No reminder email | The server has no outbound email configured. Watch the bell instead. Reminders are kept, not dropped: once email is set up, mutes that are still about to expire get theirs. |