1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
use crate::core::attributes::Prefixed;
use crate::core::input::{Counter, InputScope, Marker};
use crate::core::proxy::Proxy;
metrics! {
pub DIPSTICK_METRICS = "dipstick" => {
"queue" => {
pub SEND_FAILED: Marker = "send_failed";
}
"prometheus" => {
pub PROMETHEUS_SEND_ERR: Marker = "send_failed";
pub PROMETHEUS_OVERFLOW: Marker = "buf_overflow";
pub PROMETHEUS_SENT_BYTES: Counter = "sent_bytes";
}
"graphite" => {
pub GRAPHITE_SEND_ERR: Marker = "send_failed";
pub GRAPHITE_OVERFLOW: Marker = "buf_overflow";
pub GRAPHITE_SENT_BYTES: Counter = "sent_bytes";
}
"statsd" => {
pub STATSD_SEND_ERR: Marker ="send_failed";
pub STATSD_SENT_BYTES: Counter = "sent_bytes";
}
}
}