Documentation ¶
Index ¶
- func NewMetricCollector(masterClient *client.Client, etcdServer *etcdserver.EtcdServer) prometheus.Collector
- func Profiler(key string, startTime time.Time)
- func Register(masterClient *client.Client, etcdServer *etcdserver.EtcdServer, ...)
- func SliceMetric() map[string]*Digest
- type Digest
- type MonitorService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMetricCollector ¶
func NewMetricCollector(masterClient *client.Client, etcdServer *etcdserver.EtcdServer) prometheus.Collector
func Register ¶
func Register(masterClient *client.Client, etcdServer *etcdserver.EtcdServer, monitorPort uint16)
func SliceMetric ¶
Types ¶
type MonitorService ¶
type MonitorService struct {
// contains filtered or unexported fields
}
func (*MonitorService) Collect ¶
func (ms *MonitorService) Collect(ch chan<- prometheus.Metric)
Collect returns the current state of all metrics of the collector.
func (*MonitorService) Describe ¶
func (collector *MonitorService) Describe(ch chan<- *prometheus.Desc)
Describe returns all descriptions of the collector.
Click to show internal directories.
Click to hide internal directories.