]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-mixing: fix ceph_hosts variable 48851/head
authorTatjana Dehler <tdehler@suse.com>
Fri, 11 Nov 2022 15:30:55 +0000 (16:30 +0100)
committerTatjana Dehler <tdehler@suse.com>
Fri, 11 Nov 2022 15:35:05 +0000 (16:35 +0100)
commit08352b65408f82aa1b66758e050be7fab26cbdaa
tree5c6ada7acf3e279644e428830bf175fd48492869
parentd5045f7142cb6edf496502ba85b25da78e249bf9
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>
monitoring/ceph-mixin/dashboards/host.libsonnet
monitoring/ceph-mixin/dashboards_out/host-details.json