Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeMetricName ¶
Types ¶
type PrometheusCollector ¶
type PrometheusCollector struct { sync.Mutex Record chan WorkerStats // contains filtered or unexported fields }
func InitTelemetryServer ¶
func NewPrometheusCollector ¶
func NewPrometheusCollector(config *pkgconfig.Config) *PrometheusCollector
func (*PrometheusCollector) Collect ¶
func (t *PrometheusCollector) Collect(ch chan<- prometheus.Metric)
func (*PrometheusCollector) Describe ¶
func (t *PrometheusCollector) Describe(ch chan<- *prometheus.Desc)
func (*PrometheusCollector) GetWorkerStats ¶ added in v1.2.0
func (t *PrometheusCollector) GetWorkerStats(workerName string) (WorkerStats, bool)
func (*PrometheusCollector) Stop ¶
func (t *PrometheusCollector) Stop()
func (*PrometheusCollector) UpdateStats ¶
func (t *PrometheusCollector) UpdateStats()
Click to show internal directories.
Click to hide internal directories.