Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCronJobMetricSet ¶
func NewCronJobMetricSet(base mb.BaseMetricSet) (mb.MetricSet, error)
NewCronJobMetricSet returns a prometheus based metricset for CronJobs
Types ¶
type CronJobMetricSet ¶
type CronJobMetricSet struct { mb.BaseMetricSet // contains filtered or unexported fields }
CronJobMetricSet uses a prometheus based MetricSet that looks for mb.ModuleDataKey prefixed fields and puts then at the module level
Copying the code from other kube state metrics, this should be improved to avoid all these ugly tricks
func (*CronJobMetricSet) Fetch ¶
func (m *CronJobMetricSet) Fetch(reporter mb.ReporterV2) error
Fetch prometheus metrics and treats those prefixed by mb.ModuleDataKey as module rooted fields at the event that gets reported
Copied from other kube state metrics.
Click to show internal directories.
Click to hide internal directories.