metrics

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	// contains filtered or unexported fields
}

Metrics represents application metrics. It is responsible to manages the application metrics and registers them in prometheus.

func NewMetrics

func NewMetrics() *Metrics

func (*Metrics) OpenConnections

func (m *Metrics) OpenConnections(in float64)

func (*Metrics) OpenConnectionsDec

func (m *Metrics) OpenConnectionsDec()

OpenConnectionsDec decreases the total number of open connections.

func (*Metrics) OpenConnectionsInc

func (m *Metrics) OpenConnectionsInc()

OpenConnectionsInc increases the total number of open connections.

func (*Metrics) PrivateConnections

func (m *Metrics) PrivateConnections(in float64)

func (*Metrics) PrivateConnectionsDec

func (m *Metrics) PrivateConnectionsDec()

PrivateConnectionsDec decreases the total number of private connections.

func (*Metrics) PrivateConnectionsInc

func (m *Metrics) PrivateConnectionsInc()

PrivateConnectionsInc increases the total number of private connections.

func (*Metrics) SubscribedChannels

func (m *Metrics) SubscribedChannels(in float64)

Jump to

Keyboard shortcuts

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