WIP transition metrics
This commit is contained in:
@@ -8,7 +8,9 @@ edition = "2021"
|
||||
path = "src/stats.rs"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
rand_xoshiro = "0.6.0"
|
||||
stats_types = { path = "../stats_types" }
|
||||
stats_proc = { path = "../stats_proc" }
|
||||
log = { path = "../log" }
|
||||
mettrics = { version = "0.0.5", path = "../../mettrics" }
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
mod Metrics {
|
||||
type StructName = CaConnMetrics;
|
||||
enum counters {
|
||||
ioid_read_begin,
|
||||
ioid_read_done,
|
||||
ioid_read_timeout,
|
||||
ioid_read_error_exists,
|
||||
ioid_read_error_not_found,
|
||||
recv_read_notify_state_passive_found_ioid,
|
||||
proto_out_push,
|
||||
logic_error,
|
||||
poll_fn_begin,
|
||||
poll_loop_begin,
|
||||
poll_no_progress_no_pending,
|
||||
poll_pending,
|
||||
poll_reloop,
|
||||
poll_wake_break,
|
||||
insert_item_queue_full,
|
||||
insert_item_queue_pressure,
|
||||
out_queue_full,
|
||||
loop2_count,
|
||||
loop3_count,
|
||||
tcp_connected,
|
||||
ca_proto_no_version_as_first,
|
||||
ca_proto_version_later,
|
||||
ca_msg_recv,
|
||||
event_add_res_recv,
|
||||
time_check_channels_state_init,
|
||||
channel_not_alive_no_activity,
|
||||
ping_no_proto,
|
||||
ping_start,
|
||||
pong_timeout,
|
||||
caget_timeout,
|
||||
caget_issued,
|
||||
monitor_stale_read_timeout,
|
||||
monitor_stale_read_begin,
|
||||
unknown_ioid,
|
||||
recv_read_notify_state_read_pending,
|
||||
recv_read_notify_state_read_pending_bad_ioid,
|
||||
recv_read_notify_while_polling_idle,
|
||||
no_cid_for_subid,
|
||||
recv_read_notify_but_no_longer_ready,
|
||||
recv_read_notify_but_not_init_yet,
|
||||
recv_event_add_while_wait_on_read_notify,
|
||||
transition_to_polling,
|
||||
transition_to_polling_bad_state,
|
||||
transition_to_polling_already_in,
|
||||
unknown_subid,
|
||||
get_series_id_ok,
|
||||
channel_add_exists,
|
||||
}
|
||||
}
|
||||
|
||||
mod Metrics {
|
||||
type StructName = CaConnSetMetrics;
|
||||
mod Compose {
|
||||
type Input = CaConnMetrics;
|
||||
type Name = ca_conn;
|
||||
}
|
||||
}
|
||||
|
||||
mod Metrics {
|
||||
type StructName = DaemonMetrics;
|
||||
mod Compose {
|
||||
type Input = CaConnSetMetrics;
|
||||
type Name = ca_conn_set;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
use mettrics::types::CounterU32;
|
||||
|
||||
mettrics::macros::make_metrics!("mettdecl.rs");
|
||||
+2
-1
@@ -1,3 +1,5 @@
|
||||
pub mod mett;
|
||||
|
||||
pub use rand_xoshiro;
|
||||
|
||||
use std::sync::atomic::AtomicU64;
|
||||
@@ -410,7 +412,6 @@ stats_proc::stats_struct!((
|
||||
ca_proto_version_later,
|
||||
no_cid_for_subid,
|
||||
),
|
||||
values(inter_ivl_ema, read_ioids_len, proto_out_len,),
|
||||
histolog2s(
|
||||
poll_all_dt,
|
||||
poll_op3_dt,
|
||||
|
||||
Reference in New Issue
Block a user