Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FuncCollect ¶
type FuncCollectMetrics ¶
type FuncCollectMetrics func() Collect
type FuncGetMetric ¶
type FuncGetMetric func() Metric
type FuncGetMetricName ¶
type Metric ¶
type Metric interface { prmtps.Metric Collect SetGaugeValue(labelValues []string, value float64) error Inc(labelValues []string) error Add(labelValues []string, value float64) error Observe(labelValues []string, value float64) error Register(vec prmsdk.Collector) error UnRegister() bool SetDesc(desc string) AddLabel(label ...string) AddBuckets(bucket ...float64) AddObjective(key, value float64) SetCollect(fct FuncCollect) GetCollect() FuncCollect }
func NewMetrics ¶
func NewMetrics(name string, metricType prmtps.MetricType) Metric
Click to show internal directories.
Click to hide internal directories.