diff --git a/CHANGELOG-developer.next.asciidoc b/CHANGELOG-developer.next.asciidoc index 751afbb13b0..f6148f7526d 100644 --- a/CHANGELOG-developer.next.asciidoc +++ b/CHANGELOG-developer.next.asciidoc @@ -83,6 +83,7 @@ The list below covers the major changes between 7.0.0-rc2 and main only. - Fix the multiple host support for mongodb module {pull}34624[34624] - Skip HTTPJSON flakey test. {issue}34929[34929] {pull}35138[35138] - Fix ingest pipeline for panw module to parse url scheme correctly {pull}35757[35757] +- Renamed an httpjson input metric to follow naming conventions. `httpjson_interval_pages_total` was renamed to `httpjson_interval_pages` because the `_total` suffix is reserved for counters. {issue}35933[35933] {pull}36169[36169] ==== Added diff --git a/x-pack/filebeat/docs/inputs/input-httpjson.asciidoc b/x-pack/filebeat/docs/inputs/input-httpjson.asciidoc index 34bcc3b1a7e..00384f16319 100644 --- a/x-pack/filebeat/docs/inputs/input-httpjson.asciidoc +++ b/x-pack/filebeat/docs/inputs/input-httpjson.asciidoc @@ -1560,7 +1560,7 @@ observe the activity of the input. | `httpjson_interval_total` | Total number of intervals executed. | `httpjson_interval_errors_total` | Total number of interval errors. | `httpjson_interval_execution_time` | Histogram of the interval execution time. -| `httpjson_interval_pages_total` | Histogram of the total number of pages per interval. +| `httpjson_interval_pages` | Histogram of the total number of pages per interval. | `httpjson_interval_pages_execution_time` | Histogram of the interval pages execution time. |======= diff --git a/x-pack/filebeat/input/httpjson/metrics.go b/x-pack/filebeat/input/httpjson/metrics.go index d1c019789c3..4e0ba508c01 100644 --- a/x-pack/filebeat/input/httpjson/metrics.go +++ b/x-pack/filebeat/input/httpjson/metrics.go @@ -38,7 +38,7 @@ func newInputMetrics(reg *monitoring.Registry) *inputMetrics { GetOrRegister("histogram", metrics.NewHistogram(out.intervalExecutionTime)) _ = adapter.GetGoMetrics(reg, "httpjson_interval_pages_execution_time", adapter.Accept). GetOrRegister("histogram", metrics.NewHistogram(out.intervalPageExecutionTime)) - _ = adapter.GetGoMetrics(reg, "httpjson_interval_pages_total", adapter.Accept). + _ = adapter.GetGoMetrics(reg, "httpjson_interval_pages", adapter.Accept). GetOrRegister("histogram", metrics.NewHistogram(out.intervalPages)) return out