Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mtanda committed May 14, 2024
1 parent 5a359c8 commit 051bd31
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions collector/slave_hosts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 051bd31

Please sign in to comment.