Module snarkos_metrics::prometheus[][src]

Structs

CONNECTED_PEERS

Counts the number of peers currently connected to the node server.

NODE_REQUESTS

Counts the number of requests sent to the node server.

REGISTRY

The Prometheus registry that metrics are registered in with.

RPC_REQUESTS

Counts the number of requests sent to the RPC server.

Functions

initialize

Initialize the metrics by registering them with the Registry. Use of expect is acceptable as if metrics collection fails, we should not start the node.

metrics_handler