Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check primary is assigned #1037

Merged
merged 2 commits into from
Nov 11, 2024
Merged

check primary is assigned #1037

merged 2 commits into from
Nov 11, 2024

Conversation

ChuckHend
Copy link
Member

No description provided.

Copy link
Collaborator

@nhudson nhudson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You will also need to update the is_standby metric as well

sum by (instance_id, pod, label_cnpg_io_instance_role) (
  label_replace(
    cnpg_pg_replication_in_recovery{} 
    * on(namespace) group_left(label_tembo_io_instance_id) kube_namespace_labels{label_tembo_io_instance_id!=""}
    * on(pod) group_left(label_cnpg_io_instance_role) kube_pod_labels{label_cnpg_io_instance_role="replica"},
    "instance_id", "$1", "label_tembo_io_instance_id", "(.*)"
  )
)

@ChuckHend ChuckHend merged commit 42204b3 into main Nov 11, 2024
9 checks passed
@ChuckHend ChuckHend deleted the metrics branch November 11, 2024 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants