Skip to content

Comments

SQL-exporter: collect cratedb_expected_data_nodes metric#765

Closed
goat-ssh wants to merge 1 commit intomasterfrom
s/expected_data_nodes
Closed

SQL-exporter: collect cratedb_expected_data_nodes metric#765
goat-ssh wants to merge 1 commit intomasterfrom
s/expected_data_nodes

Conversation

@goat-ssh
Copy link
Contributor

@goat-ssh goat-ssh commented Aug 8, 2025

Summary of changes

Checklist

  • Link to issue this PR refers to: https://github.com/crate/cloud/issues/2154
  • Relevant changes are reflected in CHANGES.rst
  • Added or changed code is covered by tests
  • Documentation has been updated if necessary
  • Changed code does not contain any breaking changes (or this is a major version change)

@goat-ssh goat-ssh requested a review from WalBeh August 8, 2025 05:43
@goat-ssh goat-ssh force-pushed the s/expected_data_nodes branch from 16e4e5d to a228629 Compare August 8, 2025 07:56
query: select settings['gateway']['expected_data_nodes'] as cratedb_expected_data_nodes from sys.cluster;
type: gauge
values: [cratedb_expected_data_nodes]
min_interval: 60m
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@WalBeh do you think this interval is good? I'm thinking about alert like:

  - alert: CrateDBExpectedNodesStatefulSetMismatch
    # This alert fires when the number of Kubernetes StatefulSet replicas is less than the expected CrateDB nodes
    expr: |
      max by (environment, provider, region, namespace) (cratedb_expected_data_nodes) 
      > 
      max by (environment, provider, region, exported_namespace) (kube_statefulset_replicas{statefulset=~"crate-data-hot-.*"})
    for: 5m

@goat-ssh goat-ssh force-pushed the s/expected_data_nodes branch from a228629 to c07d3eb Compare August 8, 2025 09:11
@goat-ssh goat-ssh closed this Aug 11, 2025
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.

1 participant