(&self, request: HttpRequest)
| 35 | } |
| 36 | |
| 37 | async fn router(&self, request: HttpRequest) -> HttpResponse { |
| 38 | match parse_path(&request.url) { |
| 39 | Some(path) => match path.trim_end_matches('/') { |
| 40 | "/metrics" => self.metrics(request).await, |
| 41 | "/metrics/sd" => self.metrics_service_discovery(request).await, |
| 42 | _ => not_found(), |
| 43 | }, |
| 44 | None => not_found(), |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | /// Returns all deployed station hosts for Prometheus service discovery. |
| 49 | /// |
no test coverage detected