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

squid: monitoring/ceph-mixin: Cleanup of variables, queries and tests (to fix showMultiCluster=True) #57461

Merged
merged 1 commit into from
May 15, 2024

Conversation

frittentheke
Copy link
Contributor

backport tracker: https://tracker.ceph.com/issues/65838


backport of #55495
parent tracker: https://tracker.ceph.com/issues/64321

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh

Rendering the dashboards with showMultiCluster=True allows for
them to work with multiple clusters storing their metrics in a single
Prometheus instance. This works via the cluster label and that functionality
already existed. This just fixes some inconsistencies in applying the label
filters.

Additionally this contains updates to the tests to have them succeed with
with both configurations and avoid the introduction of regressions in
regards to multiCluster in the future.

There also are some consistency cleanups here and there:
 * `datasource` was not used consistently
 * `cluster` label_values are determined from `ceph_health_status`
 * `job` template and filters on this label were removed to align multi cluster
    support solely via the `cluster` label
 * `ceph_hosts` filter now uses label_values from any ceph_metadata metrici
    to now show all instance values, but those of hosts with some Ceph
    component / daemon.
 *  Enable showMultiCluster=True since `cluster` label is now always present,
    via ceph#54964

Improves: https://tracker.ceph.com/issues/64321
Signed-off-by: Christian Rohmann <christian.rohmann@inovex.de>
(cherry picked from commit 090b8e1)
@frittentheke frittentheke requested a review from a team as a code owner May 14, 2024 07:38
@frittentheke frittentheke requested review from cloudbehl and avanthakkar and removed request for a team May 14, 2024 07:38
@frittentheke
Copy link
Contributor Author

@aaSharma14

this is the backport PR as instructed in #55495 (comment)

@aaSharma14 aaSharma14 merged commit 06fe1f9 into ceph:squid May 15, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
2 participants