metrics

package
v0.33.18 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: AGPL-3.0, AGPL-3.0-only Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RequestCount = prometheus.NewCounter(prometheus.CounterOpts{
	Subsystem: "chii",
	Name:      "request_count_total",
	Help:      "",
})
View Source
var RequestHistogram = prometheus.NewHistogram(prometheus.HistogramOpts{
	Subsystem: "chii",
	Name:      "response_time_seconds",
	Help:      "web response time",
	Buckets: []float64{
		0.001,
		0.005,
		0.010,
		0.020,
		0.050,
		0.100,
		0.200,
		0.300,
		0.500,
		1.000,
	},
})
View Source
var SQLHistogram = prometheus.NewHistogram(prometheus.HistogramOpts{
	Subsystem: "chii",
	Name:      "sql_time_seconds",
	Help:      "sql execution time",
	Buckets: []float64{
		0.001,
		0.002,
		0.003,
		0.004,
		0.005,
		0.010,
		0.020,
		0.030,
		0.040,
		0.050,
		0.100,
		0.200,
		0.300,
		0.500,
		1.000,
	},
})

Functions

func RedisHook added in v0.23.7

func RedisHook(instance string) redis.Hook

Types

This section is empty.

Jump to

Keyboard shortcuts

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