Publish metrics also for metricbeat

This commit is contained in:
Dominik Werder
2023-11-28 15:55:43 +01:00
parent 3ae555565a
commit 71fa333f75
6 changed files with 82 additions and 33 deletions
+6
View File
@@ -1,3 +1,5 @@
pub use serde_json;
use std::sync::atomic::AtomicU64;
use std::sync::atomic::Ordering::AcqRel;
use std::sync::atomic::Ordering::Acquire;
@@ -192,6 +194,10 @@ impl HistoLog2 {
ret.push_str("\n");
ret
}
pub fn to_json(&self, _name: &str) -> serde_json::Value {
serde_json::Value::Null
}
}
#[test]