monarch_hyperactor/
metrics.rs1use hyperactor_telemetry::declare_static_counter;
14use hyperactor_telemetry::declare_static_histogram;
15
16declare_static_histogram!(ENDPOINT_MESSAGE_SIZE_HISTOGRAM, "endpoint_message_size");
19declare_static_histogram!(
21 ENDPOINT_ACTOR_LATENCY_US_HISTOGRAM,
22 "endpoint_actor_latency_us_histogram"
23);
24declare_static_counter!(ENDPOINT_ACTOR_COUNT, "endpoint_actor_count");
26declare_static_counter!(ENDPOINT_ACTOR_ERROR, "endpoint_actor_error");
28declare_static_counter!(ENDPOINT_ACTOR_PANIC, "endpoint_actor_panic");
30declare_static_histogram!(
32 ENDPOINT_CALL_LATENCY_US_HISTOGRAM,
33 "endpoint_call_latency_us_histogram"
34);
35declare_static_histogram!(
37 ENDPOINT_CALL_ONE_LATENCY_US_HISTOGRAM,
38 "endpoint_call_one_latency_us_histogram"
39);
40declare_static_histogram!(
42 ENDPOINT_CHOOSE_LATENCY_US_HISTOGRAM,
43 "endpoint_choose_latency_us_histogram"
44);
45declare_static_counter!(ENDPOINT_CALL_ERROR, "endpoint_call_error");
47declare_static_counter!(ENDPOINT_CALL_ONE_ERROR, "endpoint_call_one_error");
49declare_static_counter!(ENDPOINT_CHOOSE_ERROR, "endpoint_choose_error");
51declare_static_counter!(ENDPOINT_CALL_THROUGHPUT, "endpoint_call_throughput");
53declare_static_counter!(ENDPOINT_CALL_ONE_THROUGHPUT, "endpoint_call_one_throughput");
55declare_static_counter!(ENDPOINT_CHOOSE_THROUGHPUT, "endpoint_choose_throughput");
57declare_static_histogram!(
59 ENDPOINT_STREAM_LATENCY_US_HISTOGRAM,
60 "endpoint_stream_latency_us_histogram"
61);
62declare_static_counter!(ENDPOINT_STREAM_ERROR, "endpoint_stream_error");
64declare_static_counter!(ENDPOINT_STREAM_THROUGHPUT, "endpoint_stream_throughput");
66declare_static_counter!(
68 ENDPOINT_BROADCAST_THROUGHPUT,
69 "endpoint_broadcast_throughput"
70);
71declare_static_counter!(ENDPOINT_BROADCAST_ERROR, "endpoint_broadcast_error");