metrics

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: AGPL-3.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HttpDuration = prometheus.NewHistogramVec(prometheus.HistogramOpts{
	Name:    "http_request_duration_seconds",
	Help:    "Duration of HTTP requests.",
	Buckets: []float64{0.2, 0.5, 1, 2, 5},
}, []string{"operation"})
View Source
var HttpRequests = prometheus.NewCounterVec(
	prometheus.CounterOpts{
		Name: "http_requests_total",
		Help: "Number of HTTP requests.",
	},
	[]string{"code", "operation"},
)
View Source
var TotalComments = prometheus.NewCounter(
	prometheus.CounterOpts{
		Name: "fider_comments_total",
		Help: "Number of Fider comments.",
	},
)
View Source
var TotalPosts = prometheus.NewCounter(
	prometheus.CounterOpts{
		Name: "fider_posts_total",
		Help: "Number of Fider posts.",
	},
)
View Source
var TotalTenants = prometheus.NewCounter(
	prometheus.CounterOpts{
		Name: "fider_tenants_total",
		Help: "Number of Fider tenants.",
	},
)
View Source
var TotalVotes = prometheus.NewCounter(
	prometheus.CounterOpts{
		Name: "fider_votes_total",
		Help: "Number of Fider votes.",
	},
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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