| Crates.io | pepe-actix |
| lib.rs | pepe-actix |
| version | 0.1.5 |
| created_at | 2022-06-22 13:39:53.901339+00 |
| updated_at | 2024-01-09 08:25:12.442151+00 |
| description | Actix tools for PepeTeam template application |
| homepage | https://pepe.team |
| repository | https://github.com/crypto-pepe/pepe-rs |
| max_upload_size | |
| id | 610863 |
| size | 6,374 |
Actix tools for PepeTeam template application.
Metrics service expose via /metrics endpoint. (see also Middleware.Metrics)
let srv = match HttpServer::new(move || {
App::new()
.wrap(pepe_actix::middleware::Metrics) // adding middleware
.service(pepe_actix::services::metrics::handler) // adding `/metrics` endpoint
})
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.