/sre-extension:monitoring-graphsfrom sre-extension
Generates annotated incident graphs for post-mortems using Python and real monitoring data. Helps visualize outages, error rates, and correlate metrics with incident milestones.
Ships in sre-extension. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill guides the agent through identifying high-signal metrics, extracting data efficiently, and creating professional annotated graphs.
reindex to fill the missing continuous time intervals with 0s.out/incident/metric.csv) or directly parse JSON.generalist) for large datasets to keep the main session history lean.uv run ./scripts/plot_archetype.py --csv data.csv --out draft.png --title "Title"
# Times are assumed to be UTC unless --timezone is specified
uv run ./scripts/plot_archetype.py \
--csv data.csv \
--out final.png \
--final \
--start "YYYY-MM-DD HH:MM:SS" \
--detect "YYYY-MM-DD HH:MM:SS" \
--mitigate "YYYY-MM-DD HH:MM:SS" \
--end "YYYY-MM-DD HH:MM:SS"
#d93025): Breakages, outages, faults, or incident start/end. Use different line thicknesses (linewidth=1 to 3) or styles (:, --, -.) to denote severity.#f9ab00): Human detection or alert triggered.#1e8e3e): Fix, mitigation, or resolution applied.--hmin and --hmax to show Cloud Run/GKE scaling limits (min/max instances).ingress, Green for egress for Network I/O.timeout 60 for data extraction tool calls to avoid infinite loops. Also prefer MCP calls to Monitoring/Logging (faster) vs gcloud commands (slower).assets/sample_correlation_data/improved_incident_graphs.pngSee scripts/reference_dual_plot.py for a complete example of parsing JSON and plotting.
# Force 0s for missing data in outages (Pandas)
full_range = pd.date_range(start=df.index.min(), end=df.index.max(), freq='1min')
df = df.reindex(full_range, fill_value=0)
# 5min rolling average for smoother 'Golden Signal' look
vol_smooth = grouped['Total'].rolling(5, min_periods=1).mean().fillna(0)
avail_smooth = grouped['Availability'].rolling(5, min_periods=1).mean().fillna(0)
fig, (ax1, ax2) = plt.subplots(2, 1, figsize=(15, 10), sharex=True)
ax1.plot(df.index, df.avail, color='#d93025', label='Success Rate') # Top: %
ax1.fill_between(df.index, df.avail, color='#d93025', alpha=0.1)
ax2.plot(df.index, df.vol, color='#1a73e8', label='Traffic') # Bottom: Volume
ax2.fill_between(df.index, df.vol, color='#1a73e8', alpha=0.1)
CHANGELOG.md (opens in a new tab)assets/sample_correlation_data/improved_incident_graphs.png (opens in a new tab)assets/sample_correlation_data/incident_graph.png (opens in a new tab)assets/sample_incident_log_errors/incident_draft_graph.png (opens in a new tab)assets/sample_incident_log_errors/incident_draft_graph_baseline.png (opens in a new tab)assets/sample_incident_log_errors/incident_final_graph.png (opens in a new tab)assets/sample_incident_log_errors/incident_graph_draft.png (opens in a new tab)assets/sample_traffic_blackhole_errors/traffic_blackhole_graph.png (opens in a new tab)assets/sample_traffic_blackhole_errors/traffic_blackhole_graph_full.png (opens in a new tab)assets/sample_traffic_blackhole_errors/traffic_blackhole_zoom.png (opens in a new tab)references/archetypes.md (opens in a new tab)scripts/csv_to_sparkline.py (opens in a new tab)scripts/plot_archetype.py (opens in a new tab)scripts/reference_dual_plot.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
incident-graphs, post-mortem, sre, monitoring, visualization
16 skills in this plugin
/anomaly-detection🐉 Detects anomalies in time-series data from various sources./cloud-logging🐉 Skill for interacting with and analyzing Google Cloud Logging and Error Reporting. Use this when you need to process large JSON logs from GCP or convert them to Apache format for easier analysis./cloud-monitoring🐉 Skill for interacting with Google Cloud Monitoring (CM) via APIs to avoid large context bloat. Produces nice short synoptic "gists" of graphsnpx claudepluginhub googlecloudplatform/sre-plugin --plugin sre-extensionOther plugins' skills for the same job