mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-06 18:21:45 +00:00
Use global prometheus gather at rest api
This commit is contained in:
@@ -7,9 +7,7 @@ pub fn get_prometheus(_req: Request<Body>) -> ApiResult {
|
||||
let mut buffer = vec![];
|
||||
let encoder = TextEncoder::new();
|
||||
|
||||
encoder
|
||||
.encode(&beacon_chain::gather_metrics(), &mut buffer)
|
||||
.unwrap();
|
||||
encoder.encode(&prometheus::gather(), &mut buffer).unwrap();
|
||||
|
||||
String::from_utf8(buffer)
|
||||
.map(|string| success_response(Body::from(string)))
|
||||
|
||||
Reference in New Issue
Block a user