rocket_prometheus
rocket_prometheus copied to clipboard
/metrics endpoint is resolving but no metrics are displayed
I'm using version = "0.10.0-rc.3" and my rocket webserver will resolve /metrics but there is no data returned, even though I have sent several GET AND POST requests to my server.
rocket::build() .attach(AdHoc::config::<Config>()) .manage(pool) .manage(replier) .manage(prometheus.clone()) .manage(amqp_pool) .attach(rocket_governor::LimitHeaderGen::default()) .register("/", catchers!(rocket_governor_catcher)) // catches limit errors and produces a 429 error code .mount("/ref", routes![refs::get,refs::patch, refs::delete, refs::post, refs::get_all]) .mount("/device", routes![device::get,device::patch, device::delete, device::post, device::get_all]) .mount("/library", routes![library::get,library::patch, library::delete, library::post, library::get_all, library::link_ref_item_to_library, library::get_ref_item_in_library]) .mount("/session", routes![session::get,session::patch, session::delete, session::post, session::get_all]) .mount("/project", routes![project::get,project::patch, project::delete, project::post, project::get_all,project::link_library_to_project, project::get_library_in_project,project::match_detections]) .mount("/metrics", prometheus) .launch().await?;