Struct bosun_emitter::BosunConfig
[−]
[src]
pub struct BosunConfig { pub Host: String, pub Hostname: String, pub Tags: Tags, }
Represents connection parameters to reach Bosun as well as default tags to append to each metric datum.
Fields
Host: String
Bosun server host name
Hostname: String
Local host name
Tags: Tags
Tags to always append to each metric
Methods
impl BosunConfig
[src]
fn default() -> BosunConfig
Creates a default configuration for localhost
, port 8070
.
fn load_from_scollector_config(file_path: &Path) -> Result<BosunConfig, Box<Error>>
Loads a configuration from an SCollector configuration file.