checkermonitoring

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 5 Imported by: 0

README

Checkermonitoring

Checkermonitoring is common code to send metrics via Graphite. For standalone agent on-prem this options are not used.

Documentation

Index

Constants

View Source
const PREFIX = "bolt.boltobserver"

PREFIX is the prefix for all metrics

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckerMonitoring

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

CheckerMonitoring struct

func NewCheckerMonitoring

func NewCheckerMonitoring(name, env, graphiteHost, graphitePort string) *CheckerMonitoring

NewCheckerMonitoring constructs a new CheckerMonitoring instance

func NewNopCheckerMonitoring

func NewNopCheckerMonitoring(name string) *CheckerMonitoring

NewNopCheckerMonitoring constructs a new CheckerMonitoring that does nothing

func (*CheckerMonitoring) MetricsReport

func (c *CheckerMonitoring) MetricsReport(name, val string, tags map[string]string)

MetricsReport - is used to report a metric

func (*CheckerMonitoring) MetricsTimer

func (c *CheckerMonitoring) MetricsTimer(name string, tags map[string]string) func()

MetricsTimer - is used to time function executions

Jump to

Keyboard shortcuts

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