Skip to content

Monitoring cluster via external tools #959

@jnehlmeier

Description

@jnehlmeier

Are there any plans to add monitoring capabilities to pg_auto_failover? While the monitor knows the cluster state, it still feels like black box and you will not be notified via mail/messages/whatever if a failover occurs.

I know that a lot of commands have an option to output json and I am relatively sure it exists to build monitoring tools around it. But given that pg_autoctl already manages multiple processes, wouldn't it be great to also provide a simple HTTP endpoint that publishes the state the monitor sees? Or some script hook that will be called once the state changes so that a script can publish the new state somewhere else?

Otherwise there is only a polling solution possible that requires access to pg_autoctl executable (or direct access to the monitor database).

I would really like to have the cluster state visible in a dashboard (e.g. Grafana) and add alerting features on top of it. What is the best practice you have in mind?

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