zalando / zalando/postgres-operator

Add prometheus metrics for postgres operator himself

Open
#2,170 0 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement idea
Dominant language
Go
Stars
5.2k
Forks
1.1k
Avg merge
2d 16h
Merged PRs (30d)
3

Description

  • **Which image of the operator are you using? postgres-operator:v1.8.2
  • **Where do you run it - cloud or metal? Kubernetes Bare Metal K8s
  • Are you running Postgres Operator in production? yes
  • Type of issue? feature request

Add prometheus metrics for postgres operator himself

As a Cluster Operator we want to monitoring the operator and no only the databases.

For his we need metrics we can monitoring in grafana/prometheus

There is already a PR https://github.com/zalando/postgres-operator/pull/1529

Background: We want Alerts for Sync Failed and also monitoring how many pg istances the postgres operator is managing

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing PR at https://github.com/zalando/postgres-operator/pull/1529 and the operator's current metrics behavior. Done means exposing metrics for sync failures and the number of PostgreSQL instances managed by the operator so they can be monitored in Prometheus and Grafana.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes, postgresql, prometheus
Domain
databases, observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.