Documentation ¶
Index ¶
- Constants
- type RedisExporter
- func (r *RedisExporter) Collect(ch chan<- prometheus.Metric)
- func (r *RedisExporter) Describe(ch chan<- *prometheus.Desc)
- func (r *RedisExporter) GetInstance()
- func (r *RedisExporter) GetInstanceNameTypeById(instanceId string) (string, string)
- func (r *RedisExporter) GetMetric(metricName string)
- func (r *RedisExporter) GetMetricMeta()
- func (r *RedisExporter) InitGauge()
- func (r *RedisExporter) NewClient()
- type RedisInstance
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
}
Click to show internal directories.
Click to hide internal directories.