metrics

package
v0.0.0-...-ef9048a Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ServersOnline - The total number of known matrix servers that are online and federateable
	ServersOnline = metrics.NewCounter("mrs_servers_online")
	// ServersIndexable - The total number of online matrix server that serve public rooms directory over federation
	ServersIndexable = metrics.NewCounter("mrs_servers_indexable")

	// RoomsParsed - The total number of rooms parsed from the indexable servers
	RoomsParsed = metrics.NewCounter("mrs_rooms_parsed")
	// RoomsIndexed - The total number of rooms indexed from the indexable servers
	RoomsIndexed = metrics.NewCounter("mrs_rooms_indexed")
)

Functions

func IncSearchQueries

func IncSearchQueries(api, server string)

IncSearchQueries increments search queries counter with labels

Types

type Handler

type Handler struct{}

Handler for metrics

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, _ *http.Request)

Jump to

Keyboard shortcuts

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