Skip to content

Commit

Permalink
Fix indentation in fields definition of generic modules (elastic#15742)…
Browse files Browse the repository at this point in the history
… (elastic#15759)

Remove spurious strings in fields definitions of generic modules
caused by how these yaml files are indented and concatenated.

(cherry picked from commit f14b9a8)
  • Loading branch information
jsoriano authored Jan 23, 2020
1 parent d270b7d commit 144c5b0
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 28 deletions.
6 changes: 4 additions & 2 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -25466,6 +25466,7 @@ Stats scraped from a Prometheus endpoint.
*`prometheus.labels.*`*::
+
--
Expand All @@ -25479,7 +25480,7 @@ type: object
*`prometheus.metrics.*`*::
+
--
Prometheus metric - release: ga
Prometheus metric
type: object
Expand Down Expand Up @@ -27756,6 +27757,7 @@ Statsd module
*`statsd.*.count`*::
+
--
Expand All @@ -27769,7 +27771,7 @@ type: object
*`statsd.*.*`*::
+
--
Statsd metrics - release: beta
Statsd metrics
type: object
Expand Down
27 changes: 15 additions & 12 deletions metricbeat/module/prometheus/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@
release: ga
settings: ["ssl", "http"]
fields:
# Order is important here, labels will match first, the rest are double
- name: prometheus.labels.*
type: object
object_type: keyword
description: >
Prometheus metric labels
- name: prometheus.metrics.*
type: object
object_type: double
object_type_mapping_type: "*"
description: >
Prometheus metric
- name: prometheus
type: group
fields:
# Order is important here, labels will match first, the rest are double
- name: labels.*
type: object
object_type: keyword
description: >
Prometheus metric labels
- name: metrics.*
type: object
object_type: double
object_type_mapping_type: "*"
description: >
Prometheus metric
2 changes: 1 addition & 1 deletion metricbeat/module/prometheus/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 15 additions & 12 deletions x-pack/metricbeat/module/statsd/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@
Statsd module
release: beta
fields:
- name: statsd.*.count
type: object
object_type: long
object_type_mapping_type: "long"
description: >
Statsd counters
- name: statsd.*.*
type: object
object_type: float
object_type_mapping_type: "*"
description: >
Statsd metrics
- name: statsd
type: group
fields:
- name: '*.count'
type: object
object_type: long
object_type_mapping_type: "long"
description: >
Statsd counters
- name: '*.*'
type: object
object_type: float
object_type_mapping_type: "*"
description: >
Statsd metrics
2 changes: 1 addition & 1 deletion x-pack/metricbeat/module/statsd/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 144c5b0

Please sign in to comment.