]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commit
dashUpdater: remove $domain from dashboards, if domain is not configured
authorPaul Cuzner <pcuzner@redhat.com>
Fri, 7 Jul 2017 04:01:50 +0000 (16:01 +1200)
committerPaul Cuzner <pcuzner@redhat.com>
Tue, 11 Jul 2017 23:18:26 +0000 (11:18 +1200)
commit47fc3e6f4a402ad2141461a8640a47bba684f25e
treea02c06cad488bf0f0a602607385cc43b32ac446d
parentca50d9b0c8e32a7f6c3a21a37406acb4b09c182e
dashUpdater: remove $domain from dashboards, if domain is not configured

For environments that don't use dns, collectd will not provide a FQDN
on the metric name. In these circumstances, the dashboards are empty.

This fix looks for the domain setting, and if it's not supplied the
$domain reference in all queries is removed before the dashboard is loaded
into grafana.
dashUpdater.py