Compare commits

..

2 commits

Author SHA1 Message Date
7ab7caa50e log: show requests
All checks were successful
ci / docker-build (push) Successful in 5m13s
Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
2024-05-25 01:10:15 +02:00
0f12bbf71e opentsdb: support integer tag values
Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
2024-05-25 01:10:01 +02:00

View file

@ -33,7 +33,7 @@ struct OtsdbData {
metric: String,
value: OtsdbValue,
timestamp: i64,
tags: HashMap<String, String>,
tags: HashMap<String, OtsdbValue>,
}
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 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);
let response = shared