Documentation ¶
Overview ¶
nolint
Index ¶
- Constants
- func GetFasthttpHandler() fasthttp.RequestHandler
- func GetFasthttpRoutingHandler() routing.Handler
- func MillisecondsFromStart(start time.Time) float64
- func NewCounter(namespace, subsystem, service, counterName, subject string, labels ...string) *counter
- func NewDBGauge(namespace, subsystem, service, host, dbName string) *dbGauge
- func NewDbMetrics(namespace, subsystem, service, host, dbName string) *dbMetrics
- func NewGauge(namespace, subsystem, service, gaugeName, subject string, labels ...string) *gauge
- func NewHttpClientMetrics(namespace, subsystem, service, remoteService string, ...) *httpClientMetric
- func NewHttpServerMetrics(namespace, subsystem, service string, isNeedToRemoveQueryInPath bool) *httpServerMetric
- func NewMqMetrics(appName, host, subject string) *mqMetrics
- func NewRedisMetrics(namespace, subsystem, service, host string) *redisMetrics
- func NewSqlMetrics(namespace, subsystem, service, host, dbName string) *sqlMetrics
- func NewWorkerMetrics(appName, workerName string) *workerMetrics
- func SecondsFromStart(start time.Time) float64
- type DbMetrics
- type Gauge
- type HttpClientMetric
- type HttpServerMetric
- type RedisMetrics
- type SqlMetrics
Constants ¶
View Source
const (
AuthClientKey = "http.client"
)
Variables ¶
This section is empty.
Functions ¶
func GetFasthttpHandler ¶
func GetFasthttpHandler() fasthttp.RequestHandler
Handler with metrics for "github.com/fasthttp/router"
func GetFasthttpRoutingHandler ¶
Handler with metrics for "github.com/qiangxue/fasthttp-routing"
func MillisecondsFromStart ¶
func NewCounter ¶
func NewCounter(namespace, subsystem, service, counterName, subject string, labels ...string) *counter
NewCounter creates a new named counter for the app labels represent the actions which will be counted
func NewDBGauge ¶
func NewDBGauge(namespace, subsystem, service, host, dbName string) *dbGauge
func NewDbMetrics ¶
func NewDbMetrics(namespace, subsystem, service, host, dbName string) *dbMetrics
func NewHttpClientMetrics ¶
func NewHttpServerMetrics ¶
func NewMqMetrics ¶
func NewMqMetrics(appName, host, subject string) *mqMetrics
func NewRedisMetrics ¶
func NewRedisMetrics(namespace, subsystem, service, host string) *redisMetrics
func NewSqlMetrics ¶
func NewSqlMetrics(namespace, subsystem, service, host, dbName string) *sqlMetrics
func NewWorkerMetrics ¶
func NewWorkerMetrics(appName, workerName string) *workerMetrics
NewWorkerMetrics creates a new workerMetrics with the given app and worker name The only label is 'status' i.e. called/failed
func SecondsFromStart ¶
Types ¶
type HttpClientMetric ¶
type HttpServerMetric ¶
type RedisMetrics ¶
Click to show internal directories.
Click to hide internal directories.