diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index eb991240f37..046ab87e6a5 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -229,8 +229,9 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Fix `docker.cpu.system.pct` calculation by using the reported number online cpus instead of the number of metrics per cpu. {pull}13691[13691] - Fix rds metricset dashboard. {pull}13721[13721] - Ignore prometheus untyped metrics with NaN value. {issue}13750[13750] {pull}13790[13790] -- Change kubernetes.event.message to text {pull}13964[13964] -- Fix performance counter values for windows/perfmon metricset.{issue}14036[14036] {pull}14039[14039] +- Change kubernetes.event.message to text. {pull}13964[13964] +- Fix performance counter values for windows/perfmon metricset. {issue}14036[14036] {pull}14039[14039] +- Add FailOnRequired when applying schema and fix metric names in mongodb metrics metricset. {pull}14143[14143] *Packetbeat* diff --git a/metricbeat/docs/fields.asciidoc b/metricbeat/docs/fields.asciidoc index 2a34a723c21..ba3bc732339 100644 --- a/metricbeat/docs/fields.asciidoc +++ b/metricbeat/docs/fields.asciidoc @@ -20014,7 +20014,7 @@ Reports data from the query execution system. -*`mongodb.metrics.query_executor.scanned_indexes`*:: +*`mongodb.metrics.query_executor.scanned_indexes.count`*:: + -- The total number of index items scanned during queries and query-plan evaluation. @@ -20024,7 +20024,7 @@ type: long -- -*`mongodb.metrics.query_executor.scanned_documents`*:: +*`mongodb.metrics.query_executor.scanned_documents.count`*:: + -- The total number of documents scanned during queries and query-plan evaluation. @@ -20468,7 +20468,7 @@ Reports on the operation of the resource use of the ttl index process. -*`mongodb.metrics.ttl.deleted_documents`*:: +*`mongodb.metrics.ttl.deleted_documents.count`*:: + -- The total number of documents deleted from collections with a ttl index. @@ -20478,7 +20478,7 @@ type: long -- -*`mongodb.metrics.ttl.passes`*:: +*`mongodb.metrics.ttl.passes.count`*:: + -- The number of times the background process removes documents from collections with a ttl index. diff --git a/metricbeat/module/mongodb/fields.go b/metricbeat/module/mongodb/fields.go index 9394cc66c58..d58cbd01254 100644 --- a/metricbeat/module/mongodb/fields.go +++ b/metricbeat/module/mongodb/fields.go @@ -32,5 +32,5 @@ func init() { // AssetMongodb returns asset data. // This is the base64 encoded gzipped contents of ../metricbeat/module/mongodb. func AssetMongodb() string { - return "eJzsXV+T4zZyf99PgXIebFfNausuqTxsXVxln+9yTnnPjr1X95BKcSCyJcIDAjwAlFb36VP4R4IUQFISpZlVRg/JeUdq/LrRaDQa3Y236AkO71HF2ZYX6zcIKaIovEdffND/8v13X7xBqACZC1Irwtl79M0bhBD6AEqQXKKcUwq5ggJtBK+Q+xGSIHYg5OoNQrLkQmU5ZxuyfY82mEp4g5AACljCe7TF+jugFGFb+R79zxdS0i/+9w1CGwK0kO/NaG8RwxWEKPVHHWpNQPCmdv8SAWrAOlSVBb1yfwhHCEfRPEmFlWz/EhtrZLxwTCcgwhnSNIlUWmwDJPrTl4j/DDGGOFtB9EE+wWHPRTH42whU/fkeK7zGEgzpDlZ03I6l5cb/YyemGQj0/11y7GpNGDaD8w0qvCgwK8Lpm4FLcYXpSpEKVo2MAqScbU9D91HTRHtM9ApBmjbacIEoz58kIgxVJBdcQs5Z0dOnIaqcN0wtiok11RqEFpkGYyAi2AFTckJM+utRJMP1hRIrICQmABcJkY+yOINNw6oWuJe+Frweb470jzDGJmAJhH9tp6GFNmMuQnh7QRTcUoZmwFOFaFFeX4oduBNU+h8NCAJy6bWvBScaxrTg3BDz1rzHs+Sq70TkocAnyBsFxYRwtqAqLlIadpFwsHzySqWHQHkjpF6kfD9TUB7bdQSlOZYIe1hYPmlPyYPVO82E6AiTINQ1JGcpa+Ex2KOC502l9Xye1Bys6wjNY3GjzFuATV3gpBG7SFCGspbTiTJyiK4sIzvKPBkJqPjuKjIqgMI5MnKIriwjg26mjHJeVVjjvYKUrLk0YvI+ph9unrhacFcS2BGqYwPfHT4uPiI5EqgWfEcKbScZ4jsQOwJ7DQejGgtF8oZiYY9+LcIV+lgS2c5wjyyRqOJSoZy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CK77Ob2Tv0cgOXvlrLerJBY5ewkr6Vvc43UNR8INZ1or6Pv9F6Rmjqh4P3gvE41O6NvZym5iJ8wthtqWKy1qTaUO0Cs9Hu5oOygwYgSXFYSPOiYsWA70cueNA99AMxp9inVwX98Ucp3yjf6VaqorT9/C2cEJBRa3WC4955zgWIxPXjSLrvugfHJkK0CqqMy3W2rFcrUM8iJ+fcWyRUee/eX4VOmNjw+bWknIMKL6w11skfbYKexW7fdEDJbrlNjs2zSYXmpqac75szZU8m5M9s8CaVEL3XBrB4GQrn+hawZTm4FbWi1m3NqSB0tYLcnCCg2Cd5NhlFooncDbqK5v4gVyf+/BmDoFcSlYKSVlml2JYayLYMds8oKQRTuceIqv1bKd66heZTBV2e1yBZC14vLr7a/E7+jGKxDkhAMQdq15d7GcDHXL1BwgMu4Jv/CwAA//+2umBX" } diff --git a/metricbeat/module/mongodb/metrics/_meta/fields.yml b/metricbeat/module/mongodb/metrics/_meta/fields.yml index a3b89c0c1ec..a7a16fdde4e 100644 --- a/metricbeat/module/mongodb/metrics/_meta/fields.yml +++ b/metricbeat/module/mongodb/metrics/_meta/fields.yml @@ -313,11 +313,11 @@ description: > Reports data from the query execution system. fields: - - name: scanned_indexes + - name: scanned_indexes.count type: long description: > The total number of index items scanned during queries and query-plan evaluation. - - name: scanned_documents + - name: scanned_documents.count type: long description: > The total number of documents scanned during queries and query-plan evaluation. @@ -522,11 +522,11 @@ description: > Reports on the operation of the resource use of the ttl index process. fields: - - name: deleted_documents + - name: deleted_documents.count type: long description: > The total number of documents deleted from collections with a ttl index. - - name: passes + - name: passes.count type: long description: > The number of times the background process removes documents from collections with a ttl index. diff --git a/metricbeat/module/mongodb/metrics/data.go b/metricbeat/module/mongodb/metrics/data.go index 8ec730daeb6..920cf6f0777 100644 --- a/metricbeat/module/mongodb/metrics/data.go +++ b/metricbeat/module/mongodb/metrics/data.go @@ -22,7 +22,7 @@ import ( c "github.com/elastic/beats/libbeat/common/schema/mapstriface" ) -var schema = s.Schema{ +var schemaMetrics = s.Schema{ "commands": c.Dict("metrics.commands", s.Schema{ "is_self": c.Dict("_isSelf", commandSchema), "aggregate": c.Dict("aggregate", commandSchema), diff --git a/metricbeat/module/mongodb/metrics/metrics.go b/metricbeat/module/mongodb/metrics/metrics.go index 4b678696fd8..5681b160a2b 100644 --- a/metricbeat/module/mongodb/metrics/metrics.go +++ b/metricbeat/module/mongodb/metrics/metrics.go @@ -19,11 +19,11 @@ package metrics import ( "github.com/pkg/errors" + "gopkg.in/mgo.v2/bson" + "github.com/elastic/beats/libbeat/common/schema" "github.com/elastic/beats/metricbeat/mb" "github.com/elastic/beats/metricbeat/module/mongodb" - - "gopkg.in/mgo.v2/bson" ) func init() { @@ -68,7 +68,7 @@ func (m *MetricSet) Fetch(reporter mb.ReporterV2) error { return errors.Wrap(err, "failed to retrieve serverStatus") } - data, err := schema.Apply(result) + data, err := schemaMetrics.Apply(result, schema.FailOnRequired) if err != nil { return errors.Wrap(err, "failed to apply schema") }