6 releases

0.1.5 Jan 9, 2024
0.1.4 Dec 15, 2023
0.1.3 Aug 3, 2023
0.1.2 Dec 26, 2022
0.1.0 Jun 22, 2022

#456 in HTTP server

36 downloads per month

MIT license

7KB
115 lines

Pepe-actix

Actix tools for PepeTeam template application.

Services

Metrics

Metrics service expose via /metrics endpoint. (see also Middleware.Metrics)

Example

let srv = match HttpServer::new(move || {
    App::new()
        .wrap(pepe_actix::middleware::Metrics) // adding middleware
        .service(pepe_actix::services::metrics::handler) // adding `/metrics` endpoint
})

Middleware

Metrics

This middleware collects http requests Prometheus-metrics, that should be exposed via /metrics endpoint or using appropriate metrics service. (see for example Services.Metrics)

Name: http_requests_total.

Labels: host, method, ip, path.

Dependencies

~17–28MB
~472K SLoC