prometheus

package
v0.0.0-...-29c3169 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package prometheus is Twirp server hook that collects Prometheus metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustRegister

func MustRegister(registerer prometheus.Registerer)

MustRegister registers the metrics with the registerer. The default registry is used if registerer is nil.

func NewServerHooks

func NewServerHooks(registerer prometheus.Registerer) *twirp.ServerHooks

NewServerHooks initializes twirp server hooks that record prometheus metrics of twirp operations.

The default registry is used if registerer is nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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