Documentation ¶
Overview ¶
Package prometheus provides Prometheus metrics for asyncmachine. The metrics are collected from the machine's transitions and states.
Exported metrics: - states amount - relations amount - rel referenced states
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct { // number of registered states StatesAmount prometheus.Gauge // number of relations for all registered states RelAmount prometheus.Gauge // number of state referenced by relations for all registered states RefStatesAmount prometheus.Gauge // current number of queued transitions (per transition) QueueSize prometheus.Gauge // transition duration in machine's clock (ticks per tx) TxTick prometheus.Gauge // number of active states (per transition) StatesActiveAmount prometheus.Gauge // number of inactive states (per transition) StatesInactiveAmount prometheus.Gauge // number of states added (per transition) StatesAdded prometheus.Gauge // number of states removed (per transition) StatesRemoved prometheus.Gauge // number of states touched (per transition) StatesTouched prometheus.Gauge // number of errors ExceptionsCount prometheus.Gauge // steps per transition StepsAmount prometheus.Gauge // amount of executed handlers per tx HandlersAmount prometheus.Gauge // transition time TxTime prometheus.Gauge // contains filtered or unexported fields }
Metrics is a set of Prometheus metrics for a machine.
func TransitionsToPrometheus ¶
TransitionsToPrometheus bind transitions to Prometheus metrics. TODO debounce TODO bind via the tracer API (so it can be disabled/enabled)
Click to show internal directories.
Click to hide internal directories.