NodeMetrics

class NodeMetrics(node: ServiceNode, meters: MeterRegistry, sampler: NodeSampler)

The gauges of a node that are read, not heard, set in meters from each of the node's samples (sampler):

A gauge a sample no longer takes (a partition handed off to another node, the parked count of a node that no longer reports it) is removed from meters, so it does not report its last value forever.

The sampler's owner starts and closes it; these gauges follow each of its samples.

Constructors

Link copied to clipboard
constructor(node: ServiceNode, meters: MeterRegistry, sampler: NodeSampler)

Types

Link copied to clipboard

Functions

Link copied to clipboard

Whether this node reports the service's parked entries: it runs partition 0 of the service's first log group, by context name, so one node of the service does at a time; every node of a service without a log group does.

Link copied to clipboard
suspend fun sample()

Takes one sample of the node (NodeSampler.sample), which sets every gauge.