[−][src]Trait mackerel_plugin::Plugin
A trait which represents a Plugin.
You can create a plugin by implementing fetch_metrics
and graph_definition
.
A trait which represents a Plugin.
You can create a plugin by implementing fetch_metrics
and graph_definition
.
fn fetch_metrics(&self) -> Result<HashMap<String, f64>, String>
fn graph_definition(&self) -> Vec<Graph>