metrics

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var (
	EventsCounter *prometheus.CounterVec

	ConditionRunTimeSummary     *prometheus.SummaryVec
	ActionRuntimeSummary        *prometheus.SummaryVec
	ActionHandlerRunTimeSummary *prometheus.SummaryVec

	DownloadBytes          *prometheus.CounterVec
	DownloadRunTimeSummary *prometheus.SummaryVec
	UploadBytes            *prometheus.CounterVec
	UploadRunTimeSummary   *prometheus.SummaryVec

	StoreQueryErrorCount *prometheus.CounterVec

	NATSErrors *prometheus.CounterVec
)

Functions

func ListenAndServe

func ListenAndServe()

ListenAndServeMetrics exposes prometheus metrics as /metrics

func NATSError added in v0.1.0

func NATSError(op string)

func RegisterSpanEvent added in v0.0.6

func RegisterSpanEvent(span trace.Span, condition *rctypes.Condition, workerID, 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