Documentation ¶
Index ¶
Constants ¶
View Source
const (
SocketName = "metrics.sock"
)
Variables ¶
This section is empty.
Functions ¶
func NewMetricsCollector ¶ added in v1.6.0
func NewMetricsCollector(socketBasePath, emptyDirBasePath, namespace, podName, podUID, volumeName string, labels map[string]string, clientset clientset.Interface) prometheus.Collector
NewMetricsCollector returns a new Collector exposing metrics read from the give path.
func ProcessMetricsData ¶ added in v1.6.0
ProcessMetricsData processes metrics that follow Prometheus text format: https://prometheus.io/docs/instrumenting/exposition_formats/, returning its MetricFamily.
Types ¶
type FakeMetricsManager ¶ added in v1.6.0
type FakeMetricsManager struct{}
func (*FakeMetricsManager) InitializeHTTPHandler ¶ added in v1.6.0
func (*FakeMetricsManager) InitializeHTTPHandler()
func (*FakeMetricsManager) RegisterMetricsCollector ¶ added in v1.6.0
func (*FakeMetricsManager) RegisterMetricsCollector(_, _, _, _ string)
func (*FakeMetricsManager) UnregisterMetricsCollector ¶ added in v1.6.0
func (*FakeMetricsManager) UnregisterMetricsCollector(_ string)
Click to show internal directories.
Click to hide internal directories.