From a853d1bca3280b7a21eccaf71bef4f4074561eda Mon Sep 17 00:00:00 2001 From: Tudor Golubenco Date: Mon, 29 May 2017 10:33:01 +0200 Subject: [PATCH] Fix type for HAProxy health.last field Fixes #4407. Also adds docs for two fields where docs were missing. --- CHANGELOG.asciidoc | 1 + metricbeat/docs/fields.asciidoc | 4 +++- metricbeat/module/haproxy/stat/_meta/fields.yml | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index 1f7566bd936..4156b0b1e81 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -47,6 +47,7 @@ https://github.com/elastic/beats/compare/v6.0.0-alpha1...master[Check the HEAD d - Add filtering to system filesystem metricset to remove relative mountpoints like those from Linux network namespaces. {pull}4370[4370] - Remove unnecessary print statement in schema apis {pull}4355[4355] +- Fix type of field `haproxy.stat.check.health.last`. {issue}4407[4407] *Packetbeat* - Enable memcache filtering only if a port is specified in the config file. {issue}4335[4335] diff --git a/metricbeat/docs/fields.asciidoc b/metricbeat/docs/fields.asciidoc index f9856397403..e04e82ccf07 100644 --- a/metricbeat/docs/fields.asciidoc +++ b/metricbeat/docs/fields.asciidoc @@ -5188,8 +5188,9 @@ Time in ms that it took to finish the last health check. [float] === haproxy.stat.check.health.last -type: long +type: keyword +The result of the last health check. [float] @@ -5197,6 +5198,7 @@ type: long type: long +Number of failed checks. [float] diff --git a/metricbeat/module/haproxy/stat/_meta/fields.yml b/metricbeat/module/haproxy/stat/_meta/fields.yml index 98b90c3ad03..2788f72cfe0 100644 --- a/metricbeat/module/haproxy/stat/_meta/fields.yml +++ b/metricbeat/module/haproxy/stat/_meta/fields.yml @@ -298,12 +298,14 @@ Time in ms that it took to finish the last health check. - name: health.last - type: long + type: keyword description: > + The result of the last health check. - name: health.fail type: long description: > + Number of failed checks. - name: agent.last type: integer