sui_proxy::handlers

Function publish_metrics

Source
pub async fn publish_metrics(
    __arg0: Extension<Labels>,
    __arg1: Extension<ReqwestClient>,
    __arg2: ConnectInfo<SocketAddr>,
    __arg3: Extension<AllowedPeer>,
    __arg4: Extension<HistogramRelay>,
    __arg5: LenDelimProtobuf,
) -> (StatusCode, &'static str)
Expand description

Publish handler which receives metrics from nodes. Nodes will call us at this endpoint and we relay them to the upstream tsdb

Clients will receive a response after successfully relaying the metrics upstream