[][src]Trait mackerel_plugin::Plugin

pub trait Plugin {
    fn fetch_metrics(&self) -> Result<HashMap<String, f64>, String>;
fn graph_definition(&self) -> Vec<Graph>; fn metric_key_prefix(&self) -> String { ... }
fn run(&self) -> Result<(), String> { ... } }

A trait which represents a Plugin.

You can create a plugin by implementing fetch_metrics and graph_definition.

Required methods

Loading content...

Provided methods

fn metric_key_prefix(&self) -> String

fn run(&self) -> Result<(), String>

Loading content...

Implementors

Loading content...