metrics

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WebsocketAvailable    = 1
	WebsocketDisconnected = 0
)

Variables

View Source
var (
	WebsocketMetric = promauto.NewGauge(prometheus.GaugeOpts{
		Name: "rpc_websocket_status",
	})
)

Functions

This section is empty.

Types

type Profiler

type Profiler struct {
	Enabled bool   `fig:"enabled"`
	Addr    string `fig:"addr"`
}

func (*Profiler) RunProfiling

func (p *Profiler) RunProfiling()

type Profilerer

type Profilerer interface {
	Profiler() Profiler
}

func New

func New(getter kv.Getter) Profilerer

Jump to

Keyboard shortcuts

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