metrics

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MetricNamePrefix of all metric names
	MetricNamePrefix = "bahn_bot_"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusRegistry

type PrometheusRegistry struct {
	TelegramInUpdatesTotal   prometheus.Counter
	TelegramInMessagesTotal  prometheus.Counter
	TelegramInCommandsTotal  prometheus.Counter
	TelegramInQueriesTotal   prometheus.Counter
	TelegramOutMessagesTotal prometheus.Counter
	TelegramRequestDuration  prometheus.Summary
}

PrometheusRegistry to collect all metrics

func NewPrometheusMetric

func NewPrometheusMetric() *PrometheusRegistry

NewPrometheusMetric configuration

Jump to

Keyboard shortcuts

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