update state to system name. This will break grafana boards and thus needs an adjustment

This commit is contained in:
Marcel Märtens 2021-03-08 09:55:35 +01:00
parent ea94ca6656
commit 989d130692

View File

@ -93,16 +93,16 @@ impl EcsSystemMetrics {
]; ];
let system_length_hist = HistogramVec::new( let system_length_hist = HistogramVec::new(
HistogramOpts::new( HistogramOpts::new(
"state_tick_time_hist", "system_length_hist",
"shows the number of clients joined to the server", "shows the detailed time in ns inside each ECS system as histogram",
) )
.buckets(bucket), .buckets(bucket),
&["system"], &["system"],
)?; )?;
let system_length_count = IntCounterVec::new( let system_length_count = IntCounterVec::new(
Opts::new( Opts::new(
"state_tick_time_count", "system_length_count",
"shows the detailed time inside the `state_tick` for each system", "shows the detailed time in ns inside each ECS system",
), ),
&["system"], &["system"],
)?; )?;