Expand description
An HTTP endpoint for metrics collection.
ModulesΒ§
- catalog
- Descriptions of the metrics
zebraditself records. - node_
context π - The nodeβs position on the chain, which telemetry backends attach to the signals they send.
- process_
memory π - Records this processβs memory use, so operators can see a node approaching its memory limit before the kernel stops it.
- sentry_
policy π - Shapes every metric for Sentry, which stores each value it receives.
StructsΒ§
- Config
- Metrics configuration section.
- Metrics
Endpoint - Abscissa component which runs a metrics endpoint.
ConstantsΒ§
- BLOCK_
LATENCY_ πBUCKETS - Bucket upper bounds for block verification, block template, and announcement latency.
- DOWNLOAD_
BUCKETS π - Bucket upper bounds for downloads from peers.
- HISTOGRAM_
BUCKETS - The histograms that Prometheus exports as histograms with these bucket upper bounds, in seconds. Every other histogram is exported as a summary with quantiles.
- PROCESS_
METRICS_ πINTERVAL - How often the process metrics are sampled.
- SUB_
MILLISECOND_ πBUCKETS - Bucket upper bounds for work that usually takes well under a millisecond.
- _DERIVE_
Component_ πA_ FOR_ Metrics Endpoint
FunctionsΒ§
- describe_
all - Describes every metric Zebra records to the current recorder.
- describe_
and_ πrecord_ build_ info - Describes every metric, registers the failure counters at zero, and records the build info once, through the recorder that was just installed, whichever backends it sends to.
- describe_
process_ πmetrics - Describes the process metrics recorded by
spawn_process_metrics. - install π
- Installs
recorderas the global metrics recorder, then describes every metric and records the build info through it. - install_
with_ πprometheus - Installs the Prometheus recorder from
builder, withotherbeside it if it is provided, as the global recorder, then describes every metric and records the build info through it. - prometheus_
builder π - Returns the Prometheus exporterβs configuration, before its endpoint is added.
- record_
process_ memory - Records this processβs memory use every
SAMPLE_INTERVAL, until the task is aborted. - record_
process_ πmetrics - Records one sample of the process metrics.
- spawn_
process_ πmetrics - Records the process metrics through the global recorder, which must already be installed.
- with_
prometheus π - Returns the recorder that receives every metric:
prometheus, andotherbeside it if it is provided.