Documentation ¶
Overview ¶
Package metrics exports some utility functions for handling prometheus metrics from ConditionOrc
Index ¶
- Variables
- func APICallEpilog(start time.Time, endpoint string, responseCode int)
- func DependencyError(name, operation string)
- func ListenAndServe()
- func RegisterSpanEvent(span trace.Span, serverID, conditionID, conditionKind, event string)
- func RegisterSpanEventKVParseError(span trace.Span, key, serverID, conditionID, conditionKind, err string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConditionQueued *prometheus.CounterVec ConditionCompleted *prometheus.CounterVec PublishErrors *prometheus.CounterVec ConditionReconcileStale *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
func RegisterSpanEventKVParseError ¶ added in v1.0.7
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.