From a9a5675adc82c9e03809dfa2689e5bc78a023544 Mon Sep 17 00:00:00 2001 From: Vijay Samuel Date: Wed, 15 Jul 2020 23:44:52 -0700 Subject: [PATCH] Move file metrics to dataset endpoint --- CHANGELOG.next.asciidoc | 1 + filebeat/input/log/harvester.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 434d5c39ec1..2d469eb50b4 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -61,6 +61,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Adds Gsuite Admin support. {pull}19769[19769] - Adds Gsuite Drive support. {pull}19704[19704] - Adds Gsuite Groups support. {pull}19725[19725] +- Move file metrics to dataset endpoint {pull}19977[19977] *Heartbeat* diff --git a/filebeat/input/log/harvester.go b/filebeat/input/log/harvester.go index 95043e94237..7dcc1f64199 100644 --- a/filebeat/input/log/harvester.go +++ b/filebeat/input/log/harvester.go @@ -58,7 +58,7 @@ import ( var ( harvesterMetrics = monitoring.Default.NewRegistry("filebeat.harvester") - filesMetrics = harvesterMetrics.NewRegistry("files") + filesMetrics = monitoring.GetNamespace("dataset").GetRegistry() harvesterStarted = monitoring.NewInt(harvesterMetrics, "started") harvesterClosed = monitoring.NewInt(harvesterMetrics, "closed")