pepe-actix

Crates.iopepe-actix
lib.rspepe-actix
version0.1.5
sourcesrc
created_at2022-06-22 13:39:53.901339
updated_at2024-01-09 08:25:12.442151
descriptionActix tools for PepeTeam template application
homepagehttps://pepe.team
repositoryhttps://github.com/crypto-pepe/pepe-rs
max_upload_size
id610863
size6,374
saehrimnir (stupid-boar)

documentation

README

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.

Commit count: 0

cargo fmt