Macro mackerel_plugin::graph
source · macro_rules! graph {
(name: $name:expr, label: $label:expr, unit: $unit:expr, metrics: [$($metrics:tt)+]) => { ... };
($($token:tt)*) => { ... };
}
Expand description
Construct a Graph.
let graph = graph! {
name: "linux.swap",
label: "Linux Swap Usage",
unit: "integer",
metrics: [
{ name: "pswpin", label: "Swap In", diff: true },
{ name: "pswpout", label: "Swap Out", diff: true },
]
};