mirror of
https://github.com/katanemo/plano.git
synced 2026-05-11 08:42:48 +02:00
Break apart metrics into their own module (#335)
Signed-off-by: José Ulises Niño Rivera <junr03@users.noreply.github.com>
This commit is contained in:
parent
d002b2042a
commit
cd1b561192
9 changed files with 59 additions and 61 deletions
14
crates/prompt_gateway/src/metrics.rs
Normal file
14
crates/prompt_gateway/src/metrics.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
use common::stats::Gauge;
|
||||
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
pub struct Metrics {
|
||||
pub active_http_calls: Gauge,
|
||||
}
|
||||
|
||||
impl Metrics {
|
||||
pub fn new() -> Metrics {
|
||||
Metrics {
|
||||
active_http_calls: Gauge::new(String::from("active_http_calls")),
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue