alertmanager-query

Query AlertManager HTTP API to list alerts and manage silences via curl.

45|4|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/VictoriaMetrics/skills --skill alertmanager-query
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: alertmanager-query
Source: https://github.com/VictoriaMetrics/skills/tree/main/plugins/query/skills/alertmanager-query
Command: npx skills add https://github.com/VictoriaMetrics/skills --skill alertmanager-query

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Query AlertManager's HTTP API to list alerts, manage silences, and inspect inhibition state via curl, enabling quick diagnostics and maintenance without a UI.

Core Features & Use Cases

  • List alerts with filters (active, silenced, inhibited) to monitor current conditions.
  • Create, view, and delete silences to pause alert routing during maintenance windows.
  • Validate alert routing and silence configurations in in-cluster or local development environments.

Quick Start

Run curl against the AlertManager v2 API to list alerts and manage silences.

Frequently Asked Questions about alertmanager-query

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I list active and silenced alerts in AlertManager using curl?

Query the AlertManager /api/v2/alerts endpoint using curl with VM_ALERTMANAGER_URL and VM_AUTH_HEADER variables. You can apply filters to specifically retrieve active, silenced, or inhibited alerts for incident response and routing validation.

What is the best way to manage AlertManager silences without accessing the UI?

Manage silences without a UI by sending curl requests to the AlertManager /api/v2/silences endpoint via API v2. You can create, view, and delete silences to pause alert routing during maintenance windows or incident response.

Can I inspect the inhibition state of alerts in a Prometheus setup via the API?

Yes, you can inspect alert inhibition states in a Prometheus setup by querying the AlertManager API v2. Using curl against the /api/v2/alerts endpoint retrieves and validates which alerts are currently inhibited during incident response.

Does this approach require specific authentication headers for in-cluster debugging?

Yes, in-cluster debugging requires the VM_AUTH_HEADER for authentication. You must also configure the VM_ALERTMANAGER_URL variable to properly route curl requests to the correct AlertManager API v2 endpoints for alerts and silences.

How do I validate alert routing configurations in local development environments?

Validate alert routing in local development by querying the AlertManager HTTP API v2 with curl. Listing alerts and managing silences through endpoints like /api/v2/alerts verifies routing behavior without needing the AlertManager UI.