Compare commits
2 commits
2c55f5eb54
...
7ab7caa50e
Author | SHA1 | Date | |
---|---|---|---|
7ab7caa50e | |||
0f12bbf71e |
1 changed files with 5 additions and 1 deletions
|
@ -33,7 +33,7 @@ struct OtsdbData {
|
||||||
metric: String,
|
metric: String,
|
||||||
value: OtsdbValue,
|
value: OtsdbValue,
|
||||||
timestamp: i64,
|
timestamp: i64,
|
||||||
tags: HashMap<String, String>,
|
tags: HashMap<String, OtsdbValue>,
|
||||||
}
|
}
|
||||||
|
|
||||||
const CONFIG_FILE: &str = "config.yaml";
|
const CONFIG_FILE: &str = "config.yaml";
|
||||||
|
@ -70,6 +70,10 @@ async fn put_post(
|
||||||
let post_url = format!("{}put", shared.cfg.config.opentsdb.url);
|
let post_url = format!("{}put", shared.cfg.config.opentsdb.url);
|
||||||
let otsdb_body = serde_json::to_string(&body).unwrap();
|
let otsdb_body = serde_json::to_string(&body).unwrap();
|
||||||
|
|
||||||
|
info!(
|
||||||
|
"{} sent metric {}={:?}",
|
||||||
|
client.name, body.metric, body.value
|
||||||
|
);
|
||||||
debug!("POST {} with body: {}", post_url, otsdb_body);
|
debug!("POST {} with body: {}", post_url, otsdb_body);
|
||||||
|
|
||||||
let response = shared
|
let response = shared
|
||||||
|
|
Loading…
Reference in a new issue