Documentation ¶
Overview ¶
Package metrics exports some utility functions for handling prometheus metrics from ConditionOrc
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConditionQueued *prometheus.CounterVec ConditionCompleted *prometheus.CounterVec PublishErrors *prometheus.CounterVec )
Functions ¶
func APICallEpilog ¶
APICallEpilog observes the results and latency of an API call
func DependencyError ¶
func DependencyError(name, operation string)
DependencyError provides a convenience method to hide some prometheus implementation details.
func ListenAndServe ¶ added in v0.0.2
func ListenAndServe()
ListenAndServeMetrics exposes prometheus metrics as /metrics on port 9090
func RegisterSpanEvent ¶ added in v0.0.3
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.
Click to show internal directories.
Click to hide internal directories.