Documentation ¶
Index ¶
- func CreateCounter(name string, namespace string, subsystem string, help string, ...) (counter prometheus.Counter, err error)
- func CreateCounterVector(name string, namespace string, subsystem string, help string, ...) (counterVec *prometheus.CounterVec, err error)
- func CreateGauge(name string, namespace string, subsystem string, help string, ...) (gauge prometheus.Gauge, err error)
- func CreateGaugeVector(name string, namespace string, subsystem string, help string, ...) (gaugeVec *prometheus.GaugeVec, err error)
- func CreateHistogram(name string, namespace string, subsystem string, help string, ...) (histogram prometheus.Histogram, err error)
- func CreateHistogramVector(name string, namespace string, subsystem string, help string, ...) (histogramVec *prometheus.HistogramVec, err error)
- func InitCounterVector(counterVec *prometheus.CounterVec, labels []string)
- func StartPrometheusMetricsServer(name string, logger *logger.Logger, port int) error
- type PrometheusId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCounter ¶
func CreateCounterVector ¶
func CreateCounterVector(name string, namespace string, subsystem string, help string, labels map[string]string, labelNames []string) (counterVec *prometheus.CounterVec, err error)
func CreateGauge ¶
func CreateGaugeVector ¶
func CreateHistogram ¶
func CreateHistogramVector ¶
func InitCounterVector ¶
func InitCounterVector(counterVec *prometheus.CounterVec, labels []string)
initialize a counter vector with given labels, setting values to 0
Types ¶
Click to show internal directories.
Click to hide internal directories.