From 526af950667b990e371cf8dac5594826a76fda28 Mon Sep 17 00:00:00 2001 From: Andrew Kroh Date: Thu, 26 Oct 2023 13:32:06 -0400 Subject: [PATCH] Remove module and metricset keys For the `/inputs/` API, `input` is they key used to identify the type of "input" running. The `module` and `metricset` keys become redundant with the addition of `input`. I don't know of anything that relies on those fields. --- metricbeat/mb/builders.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/metricbeat/mb/builders.go b/metricbeat/mb/builders.go index a0ae9a668908..c9b1ace587d9 100644 --- a/metricbeat/mb/builders.go +++ b/metricbeat/mb/builders.go @@ -182,8 +182,6 @@ func newBaseMetricSets(r *Register, m Module) ([]BaseMetricSet, error) { } msID := id.String() metrics := monitoring.NewRegistry() - monitoring.NewString(metrics, "module").Set(m.Name()) - monitoring.NewString(metrics, "metricset").Set(name) monitoring.NewString(metrics, "input").Set(m.Name() + "/" + name) if host != "" { monitoring.NewString(metrics, "host").Set(host)