From 303638df15227564bd9325bf11588adf736301e6 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 16 Feb 2022 17:25:58 +0100 Subject: [PATCH] [elasticsearch module] serialize shards properties (#30408) (#30430) (cherry picked from commit 2571b5201aa85db0a916d9b075e7e69fb697055b) Co-authored-by: Kevin Lacabane --- metricbeat/docs/fields.asciidoc | 7 +++++++ metricbeat/module/elasticsearch/fields.go | 2 +- metricbeat/module/elasticsearch/index/_meta/data.json | 5 +++-- metricbeat/module/elasticsearch/index/_meta/fields.yml | 2 ++ metricbeat/module/elasticsearch/index/data.go | 2 +- 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/metricbeat/docs/fields.asciidoc b/metricbeat/docs/fields.asciidoc index 340b8f3bf6a..4d18726007e 100644 --- a/metricbeat/docs/fields.asciidoc +++ b/metricbeat/docs/fields.asciidoc @@ -29876,6 +29876,13 @@ type: long -- +*`elasticsearch.index.shards.primaries`*:: ++ +-- +type: long + +-- + *`elasticsearch.index.uuid`*:: + -- diff --git a/metricbeat/module/elasticsearch/fields.go b/metricbeat/module/elasticsearch/fields.go index 4fca67986de..309415e6c5d 100644 --- a/metricbeat/module/elasticsearch/fields.go +++ b/metricbeat/module/elasticsearch/fields.go @@ -32,5 +32,5 @@ func init() { // AssetElasticsearch returns asset data. // This is the base64 encoded zlib format compressed contents of module/elasticsearch. func AssetElasticsearch() string { - return "eJzsXV+P3Dhyf/enIPx0B6wF3KsfcgEud4kD7GKR9eUlCHQcqbqbtiTKFNU7k08fiJTUpMS/EtXT9o2fdmdGv/pV8V+xWCx+QF/h5SOCCnecFB1gVlzeIcQJr+Ajev9X9efv3yFUQlcw0nJCm4/oX94hhJD2N6imZV/BO4QYVIA7+IjO+B1CHXBOmnP3Ef3P+66r3v+E3l84b9//7/C7C2U8L2hzIueP6ISrbvj+RKAqu49CxAfU4Bo+ItKU8JwzKOgV2Iv4FUL8pR2kMNq340/UT9XPuwtmZZd1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3Jm4bMqqLdy6yglaV3B2ldPMmWNdR7GvXJ90RDRRL8w+mo7GTnNL1Cvdt3D2G2nPvfok1v/OSog7L6nJdmM4BA/xvpALUvXQcaoeYYOPdLdDHYFfqYYws3wuDSQTOUUSaL0+UdQm7+7eTf4pMy8AkUxSXcyleXD0GWsRsE2DPBkg31xVtf0hPqCguc3w9Z39av6qoyrjg6pSfKorX5pgp2ngkWLjaHhcFz/oOnyHbW0fRbEs/Ux9bTcapy771lOPMmOIZyBgtMme9SC7qIfRVgVDhtoMyb4ERWvoHQ6A+aJHwrdyKOEqEIsHadwLh9RPJ47sRbTijVe5rV18qoo5akdqRuqZjegwdsr1QtzPD+D1Y8DI5rGj7bB3edoS1Q8LZ/DKsQ3lLabprg4fd9pCPdyXw/hl8gYJ7BmqAH3sGe6rTD6WoqcrHD6rqsZkTj6WrcBR/TFXfLYGml29bEE+45Yv3J6PTXP9hAvyHWOkwaTqE0fgL8dKliqRGnbYku3bAeE5ZuXpufet1kE8CEq0hb0sQoYxwc8G2eHm/muDm8SeqDxkl7ahmlKG/UYbgGddtNSjU8w81bttl4p/mbZEml904tIqf/94NqUVupYBd9VBRtG5PlxQAY+fZ1ccOq8/HL6RDpBOZpgG1+mS6byrja5eeBBN3mcCUF/w+i9RazCFENoOKFlg8IixS8pu0ddwuY20vke4ruszvuJuEQolOjNZhxJIW3wuihT5xdMGyA8EzLjjqcA1IJOchfsGN0XjiofGC1i3m5IlUhL+gtmct7WxHAHISyhdXzdAut9jQij6TKTuO9fuT64//PwAA//+L5Sb/" } diff --git a/metricbeat/module/elasticsearch/index/_meta/data.json b/metricbeat/module/elasticsearch/index/_meta/data.json index 0b81a8e5405..a2dcb7792cf 100644 --- a/metricbeat/module/elasticsearch/index/_meta/data.json +++ b/metricbeat/module/elasticsearch/index/_meta/data.json @@ -31,7 +31,8 @@ } }, "shards": { - "total": 1 + "total": 1, + "primaries": 1 }, "status": "green", "total": { @@ -89,4 +90,4 @@ "address": "172.19.0.2:9200", "type": "elasticsearch" } -} \ No newline at end of file +} diff --git a/metricbeat/module/elasticsearch/index/_meta/fields.yml b/metricbeat/module/elasticsearch/index/_meta/fields.yml index 4ead82bc43e..07886fa81ad 100644 --- a/metricbeat/module/elasticsearch/index/_meta/fields.yml +++ b/metricbeat/module/elasticsearch/index/_meta/fields.yml @@ -13,6 +13,8 @@ fields: - name: total type: long + - name: primaries + type: long - name: uuid type: keyword - name: status diff --git a/metricbeat/module/elasticsearch/index/data.go b/metricbeat/module/elasticsearch/index/data.go index 041b04c6aea..d586832783f 100644 --- a/metricbeat/module/elasticsearch/index/data.go +++ b/metricbeat/module/elasticsearch/index/data.go @@ -113,7 +113,7 @@ type total struct { type shardStats struct { Total int `json:"total"` - Primaries int `json:"-"` + Primaries int `json:"primaries"` Replicas int `json:"-"` ActiveTotal int `json:"-"`