Documentation ¶
Index ¶
- func NewHistogram(opts HistogramOpts) prometheus.Histogram
- func RegisterMetric(c PrometheusCollector) error
- func StartMetricsServer(port string, endpoint string) chan error
- type Counter
- type CounterOpts
- type CounterVec
- type Gauge
- type GaugeOpts
- type Histogram
- type HistogramOpts
- type PrometheusCollector
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 ¶
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 GaugeOpts ¶
type GaugeOpts prometheus.GaugeOpts
type Histogram ¶
type Histogram prometheus.Histogram
type HistogramOpts ¶
type HistogramOpts prometheus.HistogramOpts
type PrometheusCollector ¶
type PrometheusCollector prometheus.Collector
Click to show internal directories.
Click to hide internal directories.