Skip to content

feat(metrics): expose maintenance window details #1558

@kradebahs

Description

@kradebahs

Describe the feature request

Hi

Would it be possible to extend gatus_results_endpoint_success to include a label indicating whether a maintenance window is active (true/false)? For example: gatus_results_endpoint_success{group="my-group", instance="gatus:8080", job="gatus", key="my-group_web, name="web", type="HTTP", maintenance="true"}

Alternatively, would it be possible to introduce a new metric, for example gatus_results_endpoint_maintenance, that reports 1 or 0 depending on whether maintenance is currently enabled?

Why do you personally want this feature to be implemented?

We use Gatus grafana dashboard to display the current service availability. Instead of reporting that a service is DOWN, we would prefer to report MAINTENANCE when the Gatus endpoint is down but a maintenance window is enabled for that specific time.

With this metric enabled, we would also be able to generate reports covering more than 30 days (depending on how long the metrics are retained)

How long have you been using this project?

3 weeks

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/metricsRelated to metricsfeatureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions