metrics

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Endpoint = "0.0.0.0:9090"
)

Variables

View Source
var (
	EventsCounter *prometheus.CounterVec

	ConditionRunTimeSummary *prometheus.SummaryVec
	StoreQueryErrorCount    *prometheus.CounterVec

	NATSErrors *prometheus.CounterVec
)

Functions

func ListenAndServe

func ListenAndServe()

ListenAndServe exposes prometheus metrics as /metrics

func NATSError

func NATSError(op string)

func RegisterSpanEvent

func RegisterSpanEvent(span trace.Span, condition *rctypes.Condition, controllerID, serverID, event string)

RegisterSpanEvent adds a span event along with the given attributes.

event here is arbitrary and can be in the form of strings like - publishCondition, updateCondition etc

Types

This section is empty.

Jump to

Keyboard shortcuts

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