zmetrics

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHistogram

func NewHistogram(opts HistogramOpts) prometheus.Histogram

func RegisterMetric

func RegisterMetric(c PrometheusCollector) error

func StartMetricsServer

func StartMetricsServer(port string, endpoint string) chan error

StartMetricsServer starts a prometheus server. Data Url is at localhost:<port>/metrics/<endpoint>

Types

type Counter

type Counter prometheus.Counter

func NewSimpleCounter

func NewSimpleCounter(opts CounterOpts) Counter

type CounterOpts

type CounterOpts prometheus.CounterOpts

type CounterVec

type CounterVec *prometheus.CounterVec

func NewVecCounter

func NewVecCounter(opts CounterOpts, labels []string) CounterVec

type Gauge

type Gauge prometheus.Gauge

func NewGauge

func NewGauge(opts GaugeOpts) Gauge

type GaugeOpts

type GaugeOpts prometheus.GaugeOpts

type Histogram

type Histogram prometheus.Histogram

type HistogramOpts

type HistogramOpts prometheus.HistogramOpts

type PrometheusCollector

type PrometheusCollector prometheus.Collector

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL