opsgenie-integration

Query Opsgenie alerts, on-call schedules, and compute MTTA/MTTR metrics via Python scripts.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/erwinv2k-TKG/AgentesVSC --skill opsgenie-integration-erwinv2k-tkg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opsgenie-integration
Source: https://github.com/erwinv2k-TKG/AgentesVSC/tree/main/packs/incidentfox/sre-agent/.claude/skills/alerting-opsgenie
Command: npx skills add https://github.com/erwinv2k-TKG/AgentesVSC --skill opsgenie-integration-erwinv2k-tkg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires httpx, and includes scripts (resource) components.

What problem does it solve? SRE and on-call engineers need fast access to alert data, on-call rotations, and reliability metrics without manually navigating the Opsgenie web UI. This Skill provides scriptable access to alert triage, historical analysis, and alert fatigue detection directly from the agent context. ## Core Features & Use Cases - Alert Triage & Investigation: List, filter, and inspect alerts by status, priority, team, or custom query, and review full alert timelines via log entries. - On-Call Scheduling: Check who is currently on call across all schedules, a specific schedule, or a specific team. - Reliability Metrics: Compute MTTA/MTTR statistics and run alert fatigue analysis that classifies noisy and flapping alerts over a date range. - Use Case: During an incident review, ask for MTTR by priority over the last 30 days, then identify the noisiest alerts with low acknowledgment rates to propose alert tuning. ## Quick Start Ask the agent to list all open P1 alerts in Opsgenie and show who is currently on call for the affected team.

Frequently Asked Questions about opsgenie-integration

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

FAQPage Schema
How do I list open Opsgenie alerts from the command line?

Run list_alerts.py with the --status open flag, optionally adding --priority P1 or a custom --query filter. The script paginates through the Opsgenie v2 alerts API and prints a summary grouped by status and priority.

How to check who is on call in Opsgenie?

Run get_on_call.py with no arguments to list on-call participants across all schedules, or pass --schedule-id or --team-id to narrow the results. It queries the Opsgenie schedules and teams on-call endpoints.

How do I calculate MTTR for Opsgenie alerts?

Run calculate_mttr.py with optional --team-id, --priority, and --days filters. It fetches closed alerts from the Opsgenie API and reports average, median, P95, fastest, and slowest resolution times in minutes.

Do I need to set the OPSGENIE_API_KEY environment variable?

No, credentials are injected automatically by a proxy layer, so the API key is not visible in environment variables. The client falls back to sandbox JWT or tenant/team headers when no API key is present.

How can I detect noisy or flapping alerts in Opsgenie?

Run get_alert_analytics.py with --since and --until date range parameters. It classifies alerts as noisy when fire count is high with low acknowledgment rate, and flapping when alerts auto-resolve quickly, including off-hours distribution.