Documentation ¶
Index ¶
Constants ¶
View Source
const (
MetricsNamespace = "etcd_kubernetes"
)
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Etcd ¶
type Etcd struct {
// contains filtered or unexported fields
}
func NewEtcd ¶
func NewEtcd(config EtcdConfig) (*Etcd, error)
NewEtcd exposes metrics about the number of k8s resources stored in etcd.
type EtcdConfig ¶
type EtcdConfig struct { Logger micrologger.Logger EtcdClientConfig *clientv3.Config EtcdPrefix string }
type EventsCollector ¶ added in v0.4.0
type EventsCollector struct {
// contains filtered or unexported fields
}
func NewEventsCollector ¶ added in v0.4.0
func NewEventsCollector(config EventsCollectorConfig) (*EventsCollector, error)
func (*EventsCollector) Collect ¶ added in v0.4.0
func (d *EventsCollector) Collect(ch chan<- prometheus.Metric) error
func (*EventsCollector) Describe ¶ added in v0.4.0
func (d *EventsCollector) Describe(ch chan<- *prometheus.Desc) error
type EventsCollectorConfig ¶ added in v0.4.0
type EventsCollectorConfig struct { Logger micrologger.Logger EtcdClientConfig *clientv3.Config EventsPrefix string }
Click to show internal directories.
Click to hide internal directories.