metrics

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Copyright 2022. Motty Cohen

Utility functions for metrics monitoring (using Prometheus)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBytesCounterForTopic

func AddBytesCounterForTopic(topic string)

func AddConnectedClientsGauge

func AddConnectedClientsGauge()

func AddGauge

func AddGauge(name, key string)

func AddMessageCounterForOpCode

func AddMessageCounterForOpCode(opCode int)

func MetricsScrapingHandler

func MetricsScrapingHandler() http.Handler

func UpdateBytesCounterForTopic

func UpdateBytesCounterForTopic(topic string, bytesCount int)

func UpdateConnectedClientsGauge

func UpdateConnectedClientsGauge(isConnected bool)

func UpdateGauge

func UpdateGauge(key string, val float64)

func UpdateMessageCounterForOpCode

func UpdateMessageCounterForOpCode(opCode, bytesCount int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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