diff --git a/collector/slave_hosts.go b/collector/slave_hosts.go index 27af73d1..f8df806f 100644 --- a/collector/slave_hosts.go +++ b/collector/slave_hosts.go @@ -27,16 +27,16 @@ import ( const ( // slavehosts is the Metric subsystem we use. slavehosts = "slave_hosts" +) + +// Metric descriptors. +var ( // heartbeatQuery is the query used to fetch the stored and current // timestamps. %s will be replaced by the database and table name. // The second column allows gets the server timestamp at the exact same // time the query is run. slaveHostsQueries = [2]string{"SHOW SLAVE HOSTS", "SHOW REPLICAS"} -) - -// Metric descriptors. -var ( - SlaveHostsInfo = prometheus.NewDesc( + SlaveHostsInfo = prometheus.NewDesc( prometheus.BuildFQName(namespace, heartbeat, "mysql_slave_hosts_info"), "Information about running slaves", []string{"server_id", "slave_host", "port", "master_id", "slave_uuid"}, nil,