Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterExporter ¶
type ClusterExporter struct { sync.Mutex RedisEndpoint string ClusterNodes []*ClusterNode }
func NewClusterExporter ¶
func NewClusterExporter(addr string) (*ClusterExporter, error)
func (*ClusterExporter) DiscoveryCluster ¶
func (ce *ClusterExporter) DiscoveryCluster() error
DiscoveryCluster discovery all nodes on the cluster.
type ClusterNode ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter implements the prometheus.Exporter interface, and exports Redis metrics.
func NewRedisExporter ¶
NewRedisExporter returns a new exporter of Redis metrics.
Click to show internal directories.
Click to hide internal directories.