Skip to content

Add a new metric to correctly count resolved incidents over a time window #58

@ZhdanAndrew

Description

@ZhdanAndrew

I would like to request adding a new metric that allows counting the number of incidents that entered the resolved status over a given time range using PromQL functions like increase().

Currently, using increase(pagerduty_summary_incident_statuschange_count{serviceID="1", status="resolved"}[7d]) does not return the correct number of incidents resolved in the last 7 days.

Expected behavior:

If the total number of resolved incidents was 100, and after 7 days it became 150, then:

increase(new_metric{serviceID="1", status="resolved"}[7d])

should return 50.

Why this is needed:

The existing metric pagerduty_summary_incident_count or pagerduty_summary_incident_statuschange_count increments in a way that doesn’t reflect actual counts of transitions to the resolved state within a time window, which makes it impossible to build correct weekly/monthly reports.

A dedicated metric that increments once per incident resolution event would solve this.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions