Analytics

From wyre-technology/msp-claude-plugins · View interactive version

Analytics is an AI agent skill from the GitHub repository wyre-technology/msp-claude-plugins. PagerDuty Analytics: MTTA/MTTR/MTTE/MTTS definitions, incident and interruption counts, aggregation levels (account, service, team, escalation policy), time-range constraints, and benchmark tables for interpreting the numbers.

How to use this skill

Skill file

PagerDuty Analytics

Overview

PagerDuty Analytics provides data-driven insights into incident response performance. Key metrics include Mean Time to Acknowledge (MTTA), Mean Time to Resolve (MTTR), incident frequency, and responder workload. These metrics help MSPs identify operational bottlenecks, measure SLA compliance, and demonstrate value to clients.

Anti-triggers

MTTA and MTTR measure how fast responders reacted to a page. They are not

the same number as contractual SLA attainment on customer tickets, and

reporting one as the other misstates compliance to a client.

resolution targets, business-hours clocks, and breach counts are

freshdesk-sla-business-hours or halopsa-contracts.

the PSA, not PagerDuty; use halopsa-tickets or

connectwise-psa-tickets.

health directly; use rootly-oncall.

Key Concepts

Core Metrics

| Metric | Description |

|--------|-------------|

| MTTA | Mean Time to Acknowledge -- average time from incident trigger to first acknowledgement |

| MTTR | Mean Time to Resolve -- average time from incident trigger to resolution |

| MTTE | Mean Time to Engage -- average time from trigger to first responder engagement |

| MTTS | Mean Time to Start -- average time from trigger to first status change |

| Incident Count | Total number of incidents in the time period |

| Interruptions | Number of off-hours notifications that interrupted responders |

Aggregation Levels

Analytics can be aggregated at different levels:

Time Ranges

All analytics queries require a time range:

API Patterns

Get Incident Analytics

pagerduty_get_analytics_incidents

Parameters:

Example response:

{
  "data": {
    "mean_seconds_to_acknowledge": 180,
    "mean_seconds_to_resolve": 3600,
    "mean_seconds_to_engage": 120,
    "mean_seconds_to_first_ack": 180,
    "mean_seconds_to_mobilize": 300,
    "total_incident_count": 42,
    "total_interruptions": 8,
    "up_time_pct": 99.5
  },
  "filters": {
    "since": "2026-03-01T00:00:00Z",
    "until": "2026-03-27T00:00:00Z"
  }
}

Get Service Analytics

pagerduty_get_analytics_services

Parameters:

Example response:

{
  "data": [
    {
      "service_id": "PSVC123",
      "service_name": "Payment API",
      "mean_seconds_to_acknowledge": 120,
      "mean_seconds_to_resolve": 2400,
      "total_incident_count": 15,
      "total_interruptions": 3,
      "up_time_pct": 99.8
    },
    {
      "service_id": "PSVC456",
      "service_name": "Auth Service",
      "mean_seconds_to_acknowledge": 300,
      "mean_seconds_to_resolve": 7200,
      "total_incident_count": 27,
      "total_interruptions": 5,
      "up_time_pct": 98.9
    }
  ]
}

Common Workflows

Monthly Performance Report

  1. Call pagerduty_get_analytics_incidents for the past month
  2. Call pagerduty_get_analytics_services to break down by service
  3. Calculate trends by comparing to the previous month
  4. Highlight services with degrading MTTA/MTTR
  5. Report on total incident count and interruption frequency

Service-Level SLA Compliance

  1. Get analytics for the target service over the SLA period
  2. Compare MTTA against the acknowledgement SLA (e.g., < 5 minutes)
  3. Compare MTTR against the resolution SLA (e.g., < 4 hours)
  4. Calculate uptime percentage
  5. Flag any SLA violations

Identify Problem Services

  1. Get per-service analytics for the past 30 days
  2. Sort by total_incident_count descending to find noisiest services
  3. Sort by mean_seconds_to_resolve to find slowest-to-resolve services
  4. Cross-reference with service dependencies to assess impact
  5. Recommend alert tuning or architectural improvements

On-Call Workload Assessment

  1. Get analytics filtered by team for the past month
  2. Review total_interruptions to measure off-hours impact
  3. Compare workload across teams to identify imbalances
  4. Review escalation frequency to assess coverage gaps
  5. Recommend schedule adjustments for better distribution

Trend Analysis

  1. Query analytics for multiple time periods (e.g., each of the last 6 months)
  2. Track MTTA and MTTR trends over time
  3. Identify whether incident response is improving or degrading
  4. Correlate changes with team size, tool changes, or process improvements
  5. Present trends in a summary table

Metric Interpretation Guide

MTTA Benchmarks

| MTTA | Assessment |

|------|------------|

| < 1 min | Excellent -- likely automated acknowledgement |

| 1-5 min | Good -- responders are engaged |

| 5-15 min | Acceptable -- room for improvement |

| 15-30 min | Needs attention -- review notification rules |

| > 30 min | Critical -- escalation policies may not be working |

MTTR Benchmarks

| MTTR | Assessment |

|------|------------|

| < 30 min | Excellent -- fast resolution |

| 30 min - 2 hr | Good -- effective incident response |

| 2-4 hr | Acceptable for complex issues |

| 4-8 hr | Needs review -- investigate bottlenecks |

| > 8 hr | Critical -- consider runbooks and automation |

Error Handling

Insufficient Data

Cause: No incidents in the requested time range

Solution: Expand the time range or remove filters

Analytics API Rate Limit

Cause: Exceeded 60 requests per minute for analytics endpoints

Solution: Cache results and reduce query frequency; use broader time ranges

Time Range Too Large

Cause: Requested time range exceeds the maximum (typically 6 months)

Solution: Break the query into smaller time windows

Best Practices

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.