Documentation ¶
Index ¶
- Constants
- func Add(index string, value float64, labels ...string)
- func AddGauge(index string, value float64, labels ...string)
- func AddWithLabels(index string, value float64, labels *prometheus.Labels)
- func GetCounterValue(index string, labels ...string) float64
- func Inc(index string, labels ...string)
- func IncWithLabels(index string, labels *prometheus.Labels)
- func InitMetric(namespace string)
- func Observe(index string, value float64, labels ...string)
- func ObserveWithLabels(index string, value float64, labels *prometheus.Labels)
- func Register(subsystem string, configs []MetricConfig) error
- func SetGauge(index string, value float64, labels ...string)
- func SetGaugeWithLabels(index string, value float64, labels *prometheus.Labels)
- func SubGauge(index string, value float64, labels ...string)
- type MetricConfig
Constants ¶
View Source
const ( MetricTypeCounter metricType = "counter" MetricTypeGauge metricType = "gauge" MetricTypeHistogram metricType = "histogram" )
Variables ¶
This section is empty.
Functions ¶
func AddWithLabels ¶
func AddWithLabels(index string, value float64, labels *prometheus.Labels)
func GetCounterValue ¶
func IncWithLabels ¶
func IncWithLabels(index string, labels *prometheus.Labels)
func InitMetric ¶
func InitMetric(namespace string)
func ObserveWithLabels ¶
func ObserveWithLabels(index string, value float64, labels *prometheus.Labels)
func Register ¶
func Register(subsystem string, configs []MetricConfig) error
func SetGaugeWithLabels ¶
func SetGaugeWithLabels(index string, value float64, labels *prometheus.Labels)
Types ¶
Click to show internal directories.
Click to hide internal directories.