Monitoring and metrics
Network-level and upstream-level metrics are available via Prometheus (opens in a new tab) and Grafana (opens in a new tab).
Refer to erpc/docker-compose.yml (opens in a new tab) and erpc/monitoring (opens in a new tab) for ready-made templates to bring up montoring.
Available metrics
To get full list of available metrics check the source code of erpc/health/metrics.go (opens in a new tab).
Here is a list of some of the most important metrics:
Metric | Description |
---|---|
erpc_upstream_request_total | Total number of actual requests to upstreams. |
erpc_upstream_request_duration_seconds | Duration of requests to upstreams. |
erpc_upstream_request_errors_total | Total number of errors for requests to upstreams. |
erpc_upstream_request_self_rate_limited_total | Total number of self-imposed rate limited requests before sending to upstreams. |
erpc_upstream_request_remote_rate_limited_total | Total number of remote rate limited requests by upstreams. |
erpc_network_request_received_total | Total number of requests received by the network. |
erpc_network_multiplexed_request_total | Total number of multiplexed requests (exactly similar requests made at the same time) received by the network. |
erpc_network_failed_request_total | Total number of failed requests received by the network. |
erpc_network_request_self_rate_limited_total | Total number of self-imposed rate limited requests before sending to upstreams. |
erpc_network_successful_request_total | Total number of successful requests received by the network. |
erpc_network_cache_hits_total | Total number of cache hits for requests received by the network. |
erpc_network_cache_misses_total | Total number of cache misses for requests received by the network. |
erpc_network_request_duration_seconds | Duration of requests received by the network. |