]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-mixing: fix ceph_hosts variable 48934/head
authorTatjana Dehler <tdehler@suse.com>
Fri, 11 Nov 2022 15:30:55 +0000 (16:30 +0100)
committerTatjana Dehler <tdehler@suse.com>
Thu, 17 Nov 2022 14:15:33 +0000 (15:15 +0100)
commita09d11deb98076f7891f8469e98941c9eceea356
treeb71940c93629c097a2b7d78008195b51553d107d
parent56136fb4bb722fed6ca628199b6f6ce85970d3bf
ceph-mixing: fix ceph_hosts variable

Do only use `instance` to query for hostnames in single-cluster-mode.
Consider the cluster matcher only in multi-cluster-mode. In this case
the query will look like:
`"label_values({cluster=~\"$cluster\"}, instance)"`.

Fixes: https://tracker.ceph.com/issues/57987
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
(cherry picked from commit 08352b65408f82aa1b66758e050be7fab26cbdaa)
monitoring/ceph-mixin/dashboards/host.libsonnet
monitoring/ceph-mixin/dashboards_out/host-details.json