Monitoring: metric history, one edition of metrics, and x:Metric over the stored samples (MON-4 to MON-7, MON-9, MON-17, MON-39)
Every node writes a sample per metric on metricsCollectionInterval: counters as the increase since its last sample, gauges always, histograms as totals when changed. Samples are x:Metric in the registry's encoding under the telemetry key class, ids time-ordered. x:Metric/get and /query read them with metric and timestamp filters and full paging, hide what's past holdMetricsFor, and the data purge deletes it. The is_enterprise split is gone, so every gauge and histogram is collected and exported, and queue.count is set from the queue itself. The shared metrics suite runs.
This commit is contained in:
@@ -158,7 +158,7 @@ impl BootManager {
|
||||
|
||||
|
||||
#[cfg(not(feature = "enterprise"))]
|
||||
telemetry.enable(false);
|
||||
telemetry.enable();
|
||||
|
||||
if bootstrap.registry.is_bootstrap_mode() {
|
||||
trc::event!(
|
||||
@@ -241,7 +241,7 @@ impl BootManager {
|
||||
}
|
||||
StoreOp::Export(path) => {
|
||||
// Enable telemetry
|
||||
telemetry.enable(false);
|
||||
telemetry.enable();
|
||||
|
||||
// Parse settings and backup
|
||||
Box::pin(Core::parse(&mut bootstrap, storage))
|
||||
@@ -252,7 +252,7 @@ impl BootManager {
|
||||
}
|
||||
StoreOp::Import(path) => {
|
||||
// Enable telemetry
|
||||
telemetry.enable(false);
|
||||
telemetry.enable();
|
||||
|
||||
// Parse settings and restore
|
||||
Box::pin(Core::parse(&mut bootstrap, storage))
|
||||
|
||||
Reference in New Issue
Block a user