Documentation ¶
Index ¶
- type MetricsInfo
- func (m *MetricsInfo) RecordCeps(ns string)
- func (m *MetricsInfo) RecordCheck(epname, ns, instance, probe string)
- func (m *MetricsInfo) RecordCheckDuration(epname, ns, instance, probe string, seconds float64)
- func (m *MetricsInfo) RecordFailedCheck(epname, ns, instance, probe string)
- func (m *MetricsInfo) RecordSuccessfulCheck(epname, ns, instance, probe string)
- func (m *MetricsInfo) RegisterAllMetrics()
- type Point
- type ProbeType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricsInfo ¶
type MetricsInfo struct {
// contains filtered or unexported fields
}
MetricsInfo Metrics contains Prometheus metrics
func NewMetricsInfo ¶
func NewMetricsInfo() *MetricsInfo
func (*MetricsInfo) RecordCeps ¶
func (m *MetricsInfo) RecordCeps(ns string)
RecordCheck updates the total number of checked.
func (*MetricsInfo) RecordCheck ¶
func (m *MetricsInfo) RecordCheck(epname, ns, instance, probe string)
RecordCheck updates the total number of checked.
func (*MetricsInfo) RecordCheckDuration ¶
func (m *MetricsInfo) RecordCheckDuration(epname, ns, instance, probe string, seconds float64)
RecordCheckDuration records the number of seconds taken by a checked.
func (*MetricsInfo) RecordFailedCheck ¶
func (m *MetricsInfo) RecordFailedCheck(epname, ns, instance, probe string)
RecordFailedCheck updates the total number of successful checked.
func (*MetricsInfo) RecordSuccessfulCheck ¶
func (m *MetricsInfo) RecordSuccessfulCheck(epname, ns, instance, probe string)
RecordSuccessfulCheck updates the total number of successful checked.
func (*MetricsInfo) RegisterAllMetrics ¶
func (m *MetricsInfo) RegisterAllMetrics()
Click to show internal directories.
Click to hide internal directories.