exporter

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PROJECT  string = "acs_kvstore"
	SHARDING string = "cluster"
	STANDARD string = "standard"
	SPLITRW  string = "SplitRW"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisExporter

type RedisExporter struct {
	DataPoints []struct {
		InstanceId string  `json:"instanceId"`
		Average    float64 `json:"Average"`
		NodeId     string  `json:"nodeId,omitempty"`
	}
	// contains filtered or unexported fields
}

func (*RedisExporter) Collect

func (r *RedisExporter) Collect(ch chan<- prometheus.Metric)

func (*RedisExporter) Describe

func (r *RedisExporter) Describe(ch chan<- *prometheus.Desc)

func (*RedisExporter) GetInstance

func (r *RedisExporter) GetInstance()

func (*RedisExporter) GetInstanceNameTypeById

func (r *RedisExporter) GetInstanceNameTypeById(instanceId string) (string, string)

func (*RedisExporter) GetMetric

func (r *RedisExporter) GetMetric(metricName string)

func (*RedisExporter) GetMetricMeta

func (r *RedisExporter) GetMetricMeta()

func (*RedisExporter) InitGauge

func (r *RedisExporter) InitGauge()

func (*RedisExporter) NewClient

func (r *RedisExporter) NewClient()

type RedisInstance

type RedisInstance struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL