From 0051dd233ab7d78aded5427a8911f6a3f522cc0c Mon Sep 17 00:00:00 2001 From: Hossein Taleghani Date: Mon, 16 Jul 2018 12:36:09 +0430 Subject: [PATCH 01/17] Initial metrics metricset --- .../module/mongodb/metrics/_meta/data.json | 18 +++++ .../mongodb/metrics/_meta/docs.asciidoc | 1 + .../module/mongodb/metrics/_meta/fields.yml | 4 + metricbeat/module/mongodb/metrics/data.go | 27 +++++++ metricbeat/module/mongodb/metrics/metrics.go | 76 +++++++++++++++++++ 5 files changed, 126 insertions(+) create mode 100644 metricbeat/module/mongodb/metrics/_meta/data.json create mode 100644 metricbeat/module/mongodb/metrics/_meta/docs.asciidoc create mode 100644 metricbeat/module/mongodb/metrics/_meta/fields.yml create mode 100644 metricbeat/module/mongodb/metrics/data.go create mode 100644 metricbeat/module/mongodb/metrics/metrics.go diff --git a/metricbeat/module/mongodb/metrics/_meta/data.json b/metricbeat/module/mongodb/metrics/_meta/data.json new file mode 100644 index 00000000000..753efac49cc --- /dev/null +++ b/metricbeat/module/mongodb/metrics/_meta/data.json @@ -0,0 +1,18 @@ +{ + "@timestamp":"2016-05-23T08:05:34.853Z", + "beat":{ + "hostname":"beathost", + "name":"beathost" + }, + "metricset":{ + "host":"localhost", + "module":"mongodb", + "name":"metrics", + "rtt":44269 + }, + "mongodb":{ + "metrics":{ + } + }, + "type":"metricsets" +} diff --git a/metricbeat/module/mongodb/metrics/_meta/docs.asciidoc b/metricbeat/module/mongodb/metrics/_meta/docs.asciidoc new file mode 100644 index 00000000000..d99f260fff5 --- /dev/null +++ b/metricbeat/module/mongodb/metrics/_meta/docs.asciidoc @@ -0,0 +1 @@ +This is the `metrics` metricset of the MongoDB module. \ No newline at end of file diff --git a/metricbeat/module/mongodb/metrics/_meta/fields.yml b/metricbeat/module/mongodb/metrics/_meta/fields.yml new file mode 100644 index 00000000000..4c0d2a113b5 --- /dev/null +++ b/metricbeat/module/mongodb/metrics/_meta/fields.yml @@ -0,0 +1,4 @@ +- name: metrics + type: group + description: > + metrics \ No newline at end of file diff --git a/metricbeat/module/mongodb/metrics/data.go b/metricbeat/module/mongodb/metrics/data.go new file mode 100644 index 00000000000..3a0e5c77f40 --- /dev/null +++ b/metricbeat/module/mongodb/metrics/data.go @@ -0,0 +1,27 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package metrics + +import ( + s "github.com/elastic/beats/libbeat/common/schema" + c "github.com/elastic/beats/libbeat/common/schema/mapstriface" +) + +var schema = s.Schema{ + +} \ No newline at end of file diff --git a/metricbeat/module/mongodb/metrics/metrics.go b/metricbeat/module/mongodb/metrics/metrics.go new file mode 100644 index 00000000000..376c8a0e53d --- /dev/null +++ b/metricbeat/module/mongodb/metrics/metrics.go @@ -0,0 +1,76 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package metrics + +import ( + "github.com/elastic/beats/libbeat/common" + "github.com/elastic/beats/libbeat/logp" + "github.com/elastic/beats/metricbeat/mb" + "github.com/elastic/beats/metricbeat/module/mongodb" + + "gopkg.in/mgo.v2/bson" +) + +var debugf = logp.MakeDebug("mongodb.metrics") + +func init() { + mb.Registry.MustAddMetricSet("mongodb", "metrics", New, + mb.WithHostParser(mongodb.ParseURL), + mb.DefaultMetricSet(), + ) +} + +// MetricSet type defines all fields of the MetricSet +// As a minimum it must inherit the mb.BaseMetricSet fields, but can be extended with +// additional entries. These variables can be used to persist data or configuration between +// multiple fetch calls. +type MetricSet struct { + *mongodb.MetricSet +} + +// New creates a new instance of the MetricSet +// Part of new is also setting up the configuration by processing additional +// configuration entries if needed. +func New(base mb.BaseMetricSet) (mb.MetricSet, error) { + ms, err := mongodb.NewMetricSet(base) + if err != nil { + return nil, err + } + return &MetricSet{ms}, nil +} + +// Fetch methods implements the data gathering and data conversion to the right format +// It returns the event which is then forward to the output. In case of an error, a +// descriptive error must be returned. +func (m *MetricSet) Fetch() (common.MapStr, error) { + + // instantiate direct connections to each of the configured Mongo hosts + mongoSession, err := mongodb.NewDirectSession(m.DialInfo) + if err != nil { + return nil, err + } + defer mongoSession.Close() + + result := map[string]interface{}{} + if err := mongoSession.DB("admin").Run(bson.D{{Name: "serverStatus", Value: 1}}, &result); err != nil { + return nil, err + } + + data, _ := schema.Apply(result) + return data, nil +} From 3a5c616d982d528b5ef3fade6e0943a9032bfb79 Mon Sep 17 00:00:00 2001 From: Hossein Taleghani Date: Mon, 16 Jul 2018 17:35:52 +0430 Subject: [PATCH 02/17] Add schema and document --- .../module/mongodb/metrics/_meta/data.json | 236 +++++++++- .../module/mongodb/metrics/_meta/fields.yml | 413 +++++++++++++++++- metricbeat/module/mongodb/metrics/data.go | 194 ++++++-- 3 files changed, 814 insertions(+), 29 deletions(-) diff --git a/metricbeat/module/mongodb/metrics/_meta/data.json b/metricbeat/module/mongodb/metrics/_meta/data.json index 753efac49cc..949f90492c8 100644 --- a/metricbeat/module/mongodb/metrics/_meta/data.json +++ b/metricbeat/module/mongodb/metrics/_meta/data.json @@ -11,8 +11,242 @@ "rtt":44269 }, "mongodb":{ - "metrics":{ + "metrics": { + "get_last_error": { + "write_wait": { + "ms": 0, + "count": 0 + }, + "write_timeouts": 0 + }, + "cursor": { + "open": { + "no_timeout": 0, + "pinned": 0, + "total": 1 + }, + "timed_out": 137 + }, + "replication": { + "apply": { + "batches": { + "count": 66871, + "time": { + "ms": 9981 + } + }, + "ops": 28536, + "attempts_to_become_secondary": 1 + }, + "buffer": { + "count": 0, + "max_size": { + "bytes": 268435456 + }, + "size": {} + }, + "initial_sync": { + "failures": 0, + "completed": 0, + "failed_attempts": 0 + }, + "network": { + "bytes": 17002617, + "getmores": { + "count": 183078, + "time": { + "ms": 515206213 + } + }, + "ops": 78266, + "reders_created": 1 + }, + "preload": { + "docs": { + "count": 0, + "time": { + "ms": 0 + } + }, + "indexes": { + "count": 0, + "time": { + "ms": 0 + } + } + }, + "executor": { + "counters": { + "event_created": 2, + "event_wait": 2, + "cancels": 440622, + "waits": 0, + "scheduled": { + "dbwork": 1, + "exclusive": 0, + "work_at": 1032681, + "work": 0, + "failures": 0, + "netcmd": 515015 + } + }, + "queues": { + "in_progress": { + "network": 0, + "dbwork": 0, + "exclusive": 0 + }, + "sleepers": 4, + "ready": 0, + "free": 5 + }, + "unsignaled_events": 4, + "event_waiters": 0, + "shutting_down": false, + "network_interface": "\nNetworkInterfaceASIO Operations' Diagnostic:\nOperation: Count: \nConnecting 0 \nIn Progress 0 \nSucceeded 515014 \nCanceled 0 \nFailed 1 \nTimed Out 1 \n\n" + } + }, + "operation": { + "scan_and_order": 0, + "write_conflicts": 0 + }, + "ttl": { + "passes": { + "count": 8590 + }, + "deleted_documents": { + "count": 0 + } + }, + "commands": { + "db_stats": { + "total": 3440, + "failed": 0 + }, + "last_collections": { + "failed": 0, + "total": 146 + }, + "aggregate": { + "failed": 0, + "total": 0 + }, + "server_status": { + "total": 123122, + "failed": 0 + }, + "get_last_error": { + "failed": 0, + "total": 15 + }, + "list_indexes": { + "failed": 0, + "total": 216 + }, + "connection_pool_stats": { + "total": 9372, + "failed": 0 + }, + "update": { + "total": 0, + "failed": 0 + }, + "is_self": { + "total": 9372, + "failed": 0 + }, + "insert": { + "total": 0, + "failed": 0 + }, + "replset_get_rbid": { + "failed": 0, + "total": 0 + }, + "get_parameter": { + "failed": 0, + "total": 9372 + }, + "count": { + "failed": 0, + "total": 432 + }, + "replset_update_position": { + "failed": 0, + "total": 0 + }, + "host_info": { + "failed": 0, + "total": 9372 + }, + "replset_heartbeat": { + "total": 360615, + "failed": 0 + }, + "profile": { + "failed": 0, + "total": 0 + }, + "coll_stats": { + "failed": 0, + "total": 112526 + }, + "whatsmyuri": { + "total": 7, + "failed": 0 + }, + "replset_get_status": { + "failed": 0, + "total": 121833 + }, + "ping": { + "failed": 0, + "total": 160781 + }, + "build_info": { + "failed": 0, + "total": 112751 + }, + "find": { + "failed": 0, + "total": 9726 + }, + "get_cmd_line_opts": { + "failed": 0, + "total": 9372 + }, + "list_databased": { + "total": 2612, + "failed": 0 + }, + "get_log": { + "failed": 0, + "total": 9372 + }, + "get_more": { + "failed": 0, + "total": 28359 + }, + "distinct": { + "total": 0, + "failed": 0 + }, + "last_commands": { + "failed": 0, + "total": 0 + }, + "is_master": { + "total": 295988, + "failed": 0 + } + }, + "document": { + "deleted": 0, + "inserted": 0, + "returned": 1615596512, + "updated": 0 } + } }, "type":"metricsets" } diff --git a/metricbeat/module/mongodb/metrics/_meta/fields.yml b/metricbeat/module/mongodb/metrics/_meta/fields.yml index 4c0d2a113b5..3d2d0e132a6 100644 --- a/metricbeat/module/mongodb/metrics/_meta/fields.yml +++ b/metricbeat/module/mongodb/metrics/_meta/fields.yml @@ -1,4 +1,415 @@ - name: metrics type: group description: > - metrics \ No newline at end of file + Statistics that reflect the current use and state of a running `mongod` instance + for more information, take a look at https://docs.mongodb.com/manual/reference/command/serverStatus/#serverstatus.metrics + fields: + - name: commands + type: group + fields: + - name: is_self + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: aggregate + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: build_info + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: coll_stats + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: connection_pool_stats + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: count + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: db_stats + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: distinct + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: find + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: get_cmd_line_opts + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: get_last_error + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: get_log + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: get_more + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: get_parameter + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: host_info + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: insert + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: is_master + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: last_collections + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: last_commands + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: list_databased + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: list_indexes + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: ping + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: profile + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: replset_get_rbid + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: replset_get_status + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: replset_heartbeat + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: replset_update_position + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: server_status + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: update + type: group + fields: + - name: failed + type: long + - name: total + type: long + - name: whatsmyuri + type: group + fields: + - name: failed + type: long + - name: total + type: long + + - name: cursor + type: group + fields: + - name: timed_out + type: long + - name: open + type: group + fields: + - name: no_timeout + type: long + - name: pinned + type: long + - name: total + type: long + + - name: document + type: group + fields: + - name: deleted + type: long + - name: inserted + type: long + - name: returned + type: long + - name: updated + type: long + + - name: get_last_error + type: group + fields: + - name: write_wait.ms + type: long + - name: write_wait.count + type: long + - name: write_timeouts + type: long + + - name: operation + type: group + fields: + - name: scan_and_order + type: long + - name: write_conflicts + type: long + + - name: query_executor + type: group + fields: + - name: scanned_indexes + type: long + - name: scanned_documents + type: long + + - name: replication + type: group + fields: + - name: executor + type: group + fields: + - name: counters + type: group + fields: + - name: event_created + type: long + - name: event_wait + type: long + - name: cancels + type: long + - name: waits + type: long + - name: scheduled + type: group + fields: + - name: netcmd + type: long + - name: dbwork + type: long + - name: exclusive + type: long + - name: work_at + type: long + - name: work + type: long + - name: failures + type: long + - name: queues + type: group + fields: + - name: in_progress + type: group + fields: + - name: network + type: long + - name: dbwork + type: long + - name: exclusive + type: long + - name: sleepers + type: int + - name: ready + type: int + - name: free + type: int + - name: unsignaled_events + type: long + - name: event_waiters + type: long + - name: shutting_down + type: boolean + - name: network_interface + type: text + - name: apply + type: group + fields: + - name: attempts_to_become_secondary + type: long + - name: batches + type: groupt + fields: + - name: count + type: long + - name: time.ms + type: long + - name: ops + type: long + - name: buffer + type: group + fields: + - name: count + type: long + - name: max_size.bytes + type: long + - name: size.bytes + type: long + - name: initial_sync + type: group + fields: + - name: completed + type: long + - name: failed_attempts + type: long + - name: failures + type: long + - name: network + type: group + fields: + - name: bytes + type: long + - name: getmores + type: group + fields: + - name: count + type: long + - name: time.ms + type: long + - name: ops + type: long + - name: reders_created + type: long + - name: preload + type: group + fields: + - name: docs + type: group + fields: + - name: count + type: long + - name: time.ms + type: long + - name: indexes + type: group + fields: + - name: count + type: long + - name: time.ms + type: long + + - name: storage.free_list.search + type: group + fields: + - name: bucket_exhausted + type: long + - name: requests + type: long + - name: scanned + type: long + + - name: ttl + type: group + fields: + - name: deleted_documents + type: long + - name: passes + type: long + \ No newline at end of file diff --git a/metricbeat/module/mongodb/metrics/data.go b/metricbeat/module/mongodb/metrics/data.go index 3a0e5c77f40..b5f4d00932c 100644 --- a/metricbeat/module/mongodb/metrics/data.go +++ b/metricbeat/module/mongodb/metrics/data.go @@ -1,27 +1,167 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - -package metrics - -import ( - s "github.com/elastic/beats/libbeat/common/schema" - c "github.com/elastic/beats/libbeat/common/schema/mapstriface" -) - -var schema = s.Schema{ - -} \ No newline at end of file +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package metrics + +import ( + s "github.com/elastic/beats/libbeat/common/schema" + c "github.com/elastic/beats/libbeat/common/schema/mapstriface" +) + +var schema = s.Schema{ + "commands": c.Dict("metrics.commands", s.Schema{ + "is_self": c.Dict("_isSelf", commandSchema), + "aggregate": c.Dict("aggregate", commandSchema), + "build_info": c.Dict("buildInfo", commandSchema), + "coll_stats": c.Dict("collStats", commandSchema), + "connection_pool_stats": c.Dict("connPoolStats", commandSchema), + "count": c.Dict("count", commandSchema), + "db_stats": c.Dict("dbStats", commandSchema), + "distinct": c.Dict("distinct", commandSchema), + "find": c.Dict("find", commandSchema), + "get_cmd_line_opts": c.Dict("getCmdLineOpts", commandSchema), + "get_last_error": c.Dict("getLastError", commandSchema), + "get_log": c.Dict("getLog", commandSchema), + "get_more": c.Dict("getMore", commandSchema), + "get_parameter": c.Dict("getParameter", commandSchema), + "host_info": c.Dict("hostInfo", commandSchema), + "insert": c.Dict("insert", commandSchema), + "is_master": c.Dict("isMaster", commandSchema), + "last_collections": c.Dict("listCollections", commandSchema), + "last_commands": c.Dict("listCommands", commandSchema), + "list_databased": c.Dict("listDatabases", commandSchema), + "list_indexes": c.Dict("listIndexes", commandSchema), + "ping": c.Dict("ping", commandSchema), + "profile": c.Dict("profile", commandSchema), + "replset_get_rbid": c.Dict("replSetGetRBID", commandSchema), + "replset_get_status": c.Dict("replSetGetStatus", commandSchema), + "replset_heartbeat": c.Dict("replSetHeartbeat", commandSchema), + "replset_update_position": c.Dict("replSetUpdatePosition", commandSchema), + "server_status": c.Dict("serverStatus", commandSchema), + "update": c.Dict("update", commandSchema), + "whatsmyuri": c.Dict("whatsmyuri", commandSchema), + }), + "cursor": c.Dict("metrics.cursor", s.Schema{ + "timed_out": c.Int("timedOut"), + "open": c.Dict("open", s.Schema{ + "no_timeout": c.Int("noTimeout"), + "pinned": c.Int("pinned"), + "total": c.Int("total"), + }), + }), + "document": c.Dict("metrics.document", s.Schema{ + "deleted": c.Int("deleted"), + "inserted": c.Int("inserted"), + "returned": c.Int("returned"), + "updated": c.Int("updated"), + }), + "get_last_error": c.Dict("metrics.getLastError", s.Schema{ + "write_wait": c.Dict("wtime", s.Schema{ + "ms": c.Int("totalMillis"), + "count": c.Int("num"), + }), + "write_timeouts": c.Int("wtimeouts"), + }), + "operation": c.Dict("metrics.operation", s.Schema{ + "scan_and_order": c.Int("scanAndOrder"), + "write_conflicts": c.Int("writeConflicts"), + }), + "query_executor": c.Dict("metrics.queryExecutor", s.Schema{ + "scanned_indexes": s.Object{"count": c.Int("scanned")}, + "scanned_documents": s.Object{"count": c.Int("scannedObjects")}, + }), + "replication": c.Dict("metrics.repl", replicationSchema), + "storage": c.Dict("free_list", s.Schema{ + "search": c.Dict("search", s.Schema{ + "bucket_exhausted": c.Int("bucketExhausted"), + "requests": c.Int("requests"), + "scanned": c.Int("scanned"), + }), + }), + "ttl": c.Dict("metrics.ttl", s.Schema{ + "deleted_documents": s.Object{"count": c.Int("deletedDocuments")}, + "passes": s.Object{"count": c.Int("passes")}, + }), +} + +var commandSchema = s.Schema{ + "failed": c.Int("failed"), + "total": c.Int("total"), +} + +var replicationSchema = s.Schema{ + "executor": c.Dict("executor", s.Schema{ + "counters": c.Dict("counters", s.Schema{ + "event_created": c.Int("eventCreated"), + "event_wait": c.Int("eventWait"), + "cancels": c.Int("cancels"), + "waits": c.Int("waits"), + "scheduled": s.Object{ + "netcmd": c.Int("scheduledNetCmd"), + "dbwork": c.Int("scheduledDBWork"), + "exclusive": c.Int("scheduledXclWork"), + "work_at": c.Int("scheduledWorkAt"), + "work": c.Int("scheduledWork"), + "failures": c.Int("schedulingFailures"), + }, + }), + "queues": c.Dict("queues", s.Schema{ + "in_progress": s.Object{ + "network": c.Int("networkInProgress"), + "dbwork": c.Int("dbWorkInProgress"), + "exclusive": c.Int("exclusiveInProgress"), + }, + "sleepers": c.Int("sleepers"), + "ready": c.Int("ready"), + "free": c.Int("free"), + }), + "unsignaled_events": c.Int("unsignaledEvents"), + "event_waiters": c.Int("eventWaiters"), + "shutting_down": c.Bool("shuttingDown"), + "network_interface": c.Str("networkInterface"), + }), + "apply": c.Dict("apply", s.Schema{ + "attempts_to_become_secondary": c.Int("attemptsToBecomeSecondary"), + "batches": c.Dict("batches", countAndTimeSchema), + "ops": c.Int("ops"), + }), + "buffer": c.Dict("buffer", s.Schema{ + "count": c.Int("count"), + "max_size": s.Object{"bytes": c.Int("maxSizeBytes")}, + "size": s.Object{"bytes": c.Int("Bytes")}, + }), + "initial_sync": c.Dict("initialSync", s.Schema{ + "completed": c.Int("completed"), + "failed_attempts": c.Int("failedAttempts"), + "failures": c.Int("failures"), + }), + "network": c.Dict("network", s.Schema{ + "bytes": c.Int("bytes"), + "getmores": c.Dict("getmores", countAndTimeSchema), + "ops": c.Int("ops"), + "reders_created": c.Int("readersCreated"), + }), + "preload": c.Dict("preload", s.Schema{ + "docs": c.Dict("docs", countAndTimeSchema), + "indexes": c.Dict("indexes", countAndTimeSchema), + }), +} + +var countAndTimeSchema = s.Schema{ + "count": c.Int("num"), + "time": s.Object{"ms": c.Int("totalMillis")}, +} From fcc029e5820e4cad52f111d52f08517eb7667ef1 Mon Sep 17 00:00:00 2001 From: Hossein Taleghani Date: Mon, 16 Jul 2018 19:49:38 +0430 Subject: [PATCH 03/17] make update --- metricbeat/docs/fields.asciidoc | 886 ++++++++++++++++++ metricbeat/docs/modules/mongodb.asciidoc | 4 + .../docs/modules/mongodb/metrics.asciidoc | 23 + metricbeat/docs/modules_list.asciidoc | 3 +- metricbeat/include/list.go | 1 + metricbeat/module/mongodb/fields.go | 2 +- 6 files changed, 917 insertions(+), 2 deletions(-) create mode 100644 metricbeat/docs/modules/mongodb/metrics.asciidoc diff --git a/metricbeat/docs/fields.asciidoc b/metricbeat/docs/fields.asciidoc index 806fe76b584..932b2da841f 100644 --- a/metricbeat/docs/fields.asciidoc +++ b/metricbeat/docs/fields.asciidoc @@ -9422,6 +9422,892 @@ format: bytes -- +[float] +== metrics fields + +Statistics that reflect the current use and state of a running `mongod` instance for more information, take a look at https://docs.mongodb.com/manual/reference/command/serverStatus/#serverstatus.metrics + + + + + +*`mongodb.metrics.commands.is_self.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.is_self.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.aggregate.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.aggregate.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.build_info.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.build_info.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.coll_stats.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.coll_stats.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.connection_pool_stats.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.connection_pool_stats.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.count.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.count.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.db_stats.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.db_stats.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.distinct.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.distinct.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.find.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.find.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.get_cmd_line_opts.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.get_cmd_line_opts.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.get_last_error.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.get_last_error.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.get_log.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.get_log.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.get_more.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.get_more.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.get_parameter.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.get_parameter.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.host_info.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.host_info.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.insert.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.insert.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.is_master.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.is_master.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.last_collections.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.last_collections.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.last_commands.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.last_commands.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.list_databased.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.list_databased.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.list_indexes.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.list_indexes.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.ping.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.ping.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.profile.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.profile.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.replset_get_rbid.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.replset_get_rbid.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.replset_get_status.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.replset_get_status.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.replset_heartbeat.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.replset_heartbeat.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.replset_update_position.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.replset_update_position.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.server_status.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.server_status.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.update.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.update.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.commands.whatsmyuri.failed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.commands.whatsmyuri.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.cursor.timed_out`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.cursor.open.no_timeout`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.cursor.open.pinned`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.cursor.open.total`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.document.deleted`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.document.inserted`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.document.returned`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.document.updated`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.get_last_error.write_wait.ms`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.get_last_error.write_wait.count`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.get_last_error.write_timeouts`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.operation.scan_and_order`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.operation.write_conflicts`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.query_executor.scanned_indexes`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.query_executor.scanned_documents`*:: ++ +-- +type: long + +-- + + + + +*`mongodb.metrics.replication.executor.counters.event_created`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.replication.executor.counters.event_wait`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.replication.executor.counters.cancels`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.replication.executor.counters.waits`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.replication.executor.counters.scheduled.netcmd`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.replication.executor.counters.scheduled.dbwork`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.replication.executor.counters.scheduled.exclusive`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.replication.executor.counters.scheduled.work_at`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.replication.executor.counters.scheduled.work`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.replication.executor.counters.scheduled.failures`*:: ++ +-- +type: long + +-- + + + +*`mongodb.metrics.replication.executor.queues.in_progress.network`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.replication.executor.queues.in_progress.dbwork`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.replication.executor.queues.in_progress.exclusive`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.replication.executor.queues.sleepers`*:: ++ +-- +type: int + +-- + +*`mongodb.metrics.replication.executor.queues.ready`*:: ++ +-- +type: int + +-- + +*`mongodb.metrics.replication.executor.queues.free`*:: ++ +-- +type: int + +-- + +*`mongodb.metrics.replication.executor.unsignaled_events`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.replication.executor.event_waiters`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.replication.executor.shutting_down`*:: ++ +-- +type: boolean + +-- + +*`mongodb.metrics.replication.executor.network_interface`*:: ++ +-- +type: text + +-- + + +*`mongodb.metrics.replication.apply.attempts_to_become_secondary`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.replication.apply.batches`*:: ++ +-- +type: groupt + +-- + +*`mongodb.metrics.replication.apply.ops`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.replication.buffer.count`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.replication.buffer.max_size.bytes`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.replication.buffer.size.bytes`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.replication.initial_sync.completed`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.replication.initial_sync.failed_attempts`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.replication.initial_sync.failures`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.replication.network.bytes`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.replication.network.getmores.count`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.replication.network.getmores.time.ms`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.replication.network.ops`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.replication.network.reders_created`*:: ++ +-- +type: long + +-- + + + +*`mongodb.metrics.replication.preload.docs.count`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.replication.preload.docs.time.ms`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.replication.preload.indexes.count`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.replication.preload.indexes.time.ms`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.storage.free_list.search.bucket_exhausted`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.storage.free_list.search.requests`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.storage.free_list.search.scanned`*:: ++ +-- +type: long + +-- + + +*`mongodb.metrics.ttl.deleted_documents`*:: ++ +-- +type: long + +-- + +*`mongodb.metrics.ttl.passes`*:: ++ +-- +type: long + +-- + [float] == status fields diff --git a/metricbeat/docs/modules/mongodb.asciidoc b/metricbeat/docs/modules/mongodb.asciidoc index 0b9129ee2ee..cf1f329d71b 100644 --- a/metricbeat/docs/modules/mongodb.asciidoc +++ b/metricbeat/docs/modules/mongodb.asciidoc @@ -110,11 +110,15 @@ The following metricsets are available: * <> +* <> + * <> include::mongodb/collstats.asciidoc[] include::mongodb/dbstats.asciidoc[] +include::mongodb/metrics.asciidoc[] + include::mongodb/status.asciidoc[] diff --git a/metricbeat/docs/modules/mongodb/metrics.asciidoc b/metricbeat/docs/modules/mongodb/metrics.asciidoc new file mode 100644 index 00000000000..764dce91409 --- /dev/null +++ b/metricbeat/docs/modules/mongodb/metrics.asciidoc @@ -0,0 +1,23 @@ +//// +This file is generated! See scripts/docs_collector.py +//// + +[[metricbeat-metricset-mongodb-metrics]] +=== MongoDB metrics metricset + +experimental[] + +include::../../../module/mongodb/metrics/_meta/docs.asciidoc[] + + +==== Fields + +For a description of each field in the metricset, see the +<> section. + +Here is an example document generated by this metricset: + +[source,json] +---- +include::../../../module/mongodb/metrics/_meta/data.json[] +---- diff --git a/metricbeat/docs/modules_list.asciidoc b/metricbeat/docs/modules_list.asciidoc index 65d18c78eb5..e20cc528056 100644 --- a/metricbeat/docs/modules_list.asciidoc +++ b/metricbeat/docs/modules_list.asciidoc @@ -84,8 +84,9 @@ This file is generated! See scripts/docs_collector.py |<> beta[] |image:./images/icon-no.png[No prebuilt dashboards] | .1+| .1+| |<> beta[] |<> |image:./images/icon-yes.png[Prebuilt dashboards are available] | -.3+| .3+| |<> +.4+| .4+| |<> |<> +|<> experimental[] |<> |<> experimental[] |image:./images/icon-no.png[No prebuilt dashboards] | .1+| .1+| |<> experimental[] diff --git a/metricbeat/include/list.go b/metricbeat/include/list.go index 79e39cf883a..fef590bc419 100644 --- a/metricbeat/include/list.go +++ b/metricbeat/include/list.go @@ -109,6 +109,7 @@ import ( _ "github.com/elastic/beats/metricbeat/module/mongodb" _ "github.com/elastic/beats/metricbeat/module/mongodb/collstats" _ "github.com/elastic/beats/metricbeat/module/mongodb/dbstats" + _ "github.com/elastic/beats/metricbeat/module/mongodb/metrics" _ "github.com/elastic/beats/metricbeat/module/mongodb/status" _ "github.com/elastic/beats/metricbeat/module/munin" _ "github.com/elastic/beats/metricbeat/module/munin/node" diff --git a/metricbeat/module/mongodb/fields.go b/metricbeat/module/mongodb/fields.go index 1a8c14c4327..6b9ddacc616 100644 --- a/metricbeat/module/mongodb/fields.go +++ b/metricbeat/module/mongodb/fields.go @@ -31,5 +31,5 @@ func init() { // Asset returns asset data func Asset() string { - return "eJzUXEtvI7kRvs+vKMwlu4DHQR7IwYcAs7sJsMHOZpGZRQ5B0EOxqyWO2WQPyZ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YhAjuiWb9HX6TQ+KCfSdRIoNthV0soTb62Qt/zt384V64fva9k8mLdH/ub9IORuP3MXTklhiNcc9thb4VekpeQKtu4SQFt9vq7B+9GXYXLQawl1bncf5etmHaPs80LOp3tQyH/TTDsKjf0y76oGcmeZhEJ43X8Xu2Nbcp3TrvPSW94Nn+4lznV+E3WjXVJVfgLK+pJfI3ny8Oj6dtb9WZxW/SnA8D/rfe4v5gS/AgXk32V68uRKU+fEhaquVlILabwGftcLjzQG3MMLvZyLZNupFNuZ8zJCOd2xxzLaiDDfQnobW+4dzLnc7G61tdxNvdxxADcB3n6QI9Lk3vM7Fr57NdVnyu37z03rBVB+jvNnoZgoPtRSlp2Eeh0FmV8zJhFLRjlomJDZr929zmX67/HrxCPCvsFtLFcDZ9pD8J+MnKHh3cTTGZ24FzozcVnCI4Oh29DjbTWjq0A1+4F2xVaAdOBtD+LwAA///L7aON" } From 316c75d1565ddbed2e03d0ec9cb09e8f6fd3314f Mon Sep 17 00:00:00 2001 From: Hossein Taleghani Date: Mon, 16 Jul 2018 20:00:08 +0430 Subject: [PATCH 04/17] Add changelog entry --- CHANGELOG.asciidoc | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index ef447503f31..61bc56240bd 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -303,6 +303,7 @@ https://github.com/elastic/beats/compare/v6.2.3...master[Check the HEAD diff] - Added Traefik module with health metricset. {pull}7413[7413] - Add Elasticsearch ml_job metricsets. {pull}7196[7196] - Add support for bearer token files to HTTP helper. {pull}7527[7527] +- Add `metrics` metricset to MongoDB module {pull}7611[7611] *Packetbeat* From a21441e4f93b60fb461122400ba630bd7fec4e52 Mon Sep 17 00:00:00 2001 From: Hossein Taleghani Date: Wed, 18 Jul 2018 15:34:58 +0430 Subject: [PATCH 05/17] Add cfgwarn.Experimental --- metricbeat/module/mongodb/metrics/metrics.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/metricbeat/module/mongodb/metrics/metrics.go b/metricbeat/module/mongodb/metrics/metrics.go index 376c8a0e53d..dbf989949cf 100644 --- a/metricbeat/module/mongodb/metrics/metrics.go +++ b/metricbeat/module/mongodb/metrics/metrics.go @@ -19,6 +19,7 @@ package metrics import ( "github.com/elastic/beats/libbeat/common" + "github.com/elastic/beats/libbeat/common/cfgwarn" "github.com/elastic/beats/libbeat/logp" "github.com/elastic/beats/metricbeat/mb" "github.com/elastic/beats/metricbeat/module/mongodb" @@ -47,6 +48,7 @@ type MetricSet struct { // Part of new is also setting up the configuration by processing additional // configuration entries if needed. func New(base mb.BaseMetricSet) (mb.MetricSet, error) { + cfgwarn.Experimental("The mongodb metrics metricset is experimental.") ms, err := mongodb.NewMetricSet(base) if err != nil { return nil, err From 608eb0fbb3576736158f9fca0ee1d3dafccbc3ac Mon Sep 17 00:00:00 2001 From: Hossein Taleghani Date: Wed, 18 Jul 2018 19:15:25 +0430 Subject: [PATCH 06/17] Add field descriptions --- metricbeat/docs/fields.asciidoc | 208 ++++++++++++++++++ metricbeat/module/mongodb/fields.go | 2 +- .../module/mongodb/metrics/_meta/fields.yml | 132 ++++++++++- 3 files changed, 333 insertions(+), 9 deletions(-) diff --git a/metricbeat/docs/fields.asciidoc b/metricbeat/docs/fields.asciidoc index 085d8a5136b..84a5ab4e689 100644 --- a/metricbeat/docs/fields.asciidoc +++ b/metricbeat/docs/fields.asciidoc @@ -9536,6 +9536,13 @@ Statistics that reflect the current use and state of a running `mongod` instance +[float] +== commands fields + +Reports on the use of database commands. The fields in metrics.commands are the names of database commands and each value is a document that reports the total number of commands executed as well as the number of failed executions. +metrics.commands..failed shows the number of times failed on this mongod. metrics.commands..total shows the number of times executed on this mongod. + + *`mongodb.metrics.commands.is_self.failed`*:: @@ -9987,20 +9994,38 @@ type: long -- +[float] +== cursor fields + +Contains data regarding cursor state and use. + + *`mongodb.metrics.cursor.timed_out`*:: + -- type: long +The total number of cursors that have timed out since the server process started. + + -- +[float] +== open fields + +Contains data regarding open cursors. + + *`mongodb.metrics.cursor.open.no_timeout`*:: + -- type: long +The number of open cursors with the option DBQuery.Option.noTimeout set to prevent timeout. + + -- *`mongodb.metrics.cursor.open.pinned`*:: @@ -10008,6 +10033,9 @@ type: long -- type: long +The number of `pinned` open cursors. + + -- *`mongodb.metrics.cursor.open.total`*:: @@ -10015,14 +10043,26 @@ type: long -- type: long +The number of cursors that MongoDB is maintaining for clients. + + -- +[float] +== document fields + +Reflects document access and modification patterns. + + *`mongodb.metrics.document.deleted`*:: + -- type: long +The total number of documents deleted. + + -- *`mongodb.metrics.document.inserted`*:: @@ -10030,6 +10070,9 @@ type: long -- type: long +The total number of documents inserted. + + -- *`mongodb.metrics.document.returned`*:: @@ -10037,6 +10080,9 @@ type: long -- type: long +The total number of documents returned by queries. + + -- *`mongodb.metrics.document.updated`*:: @@ -10044,14 +10090,26 @@ type: long -- type: long +The total number of documents updated. + + -- +[float] +== get_last_error fields + +Returns the error status of the preceding write operation on the current connection. + + *`mongodb.metrics.get_last_error.write_wait.ms`*:: + -- type: long +The total amount of time in milliseconds that the mongod has spent performing getLastError operations with write concern (i.e. w) greater than 1. + + -- *`mongodb.metrics.get_last_error.write_wait.count`*:: @@ -10059,6 +10117,9 @@ type: long -- type: long +The total number of getLastError operations with a specified write concern (i.e. w) greater than 1. + + -- *`mongodb.metrics.get_last_error.write_timeouts`*:: @@ -10066,14 +10127,26 @@ type: long -- type: long +The number of times that write concern operations have timed out as a result of the wtimeout threshold to getLastError. + + -- +[float] +== operation fields + +Holds counters for several types of update and query operations that MongoDB handles using special operation types. + + *`mongodb.metrics.operation.scan_and_order`*:: + -- type: long +The total number of queries that return sorted numbers that cannot perform the sort operation using an index. + + -- *`mongodb.metrics.operation.write_conflicts`*:: @@ -10081,14 +10154,26 @@ type: long -- type: long +The total number of queries that encountered write conflicts. + + -- +[float] +== query_executor fields + +Reports data from the query execution system. + + *`mongodb.metrics.query_executor.scanned_indexes`*:: + -- type: long +The total number of index items scanned during queries and query-plan evaluation. + + -- *`mongodb.metrics.query_executor.scanned_documents`*:: @@ -10096,8 +10181,23 @@ type: long -- type: long +The total number of documents scanned during queries and query-plan evaluation. + + -- +[float] +== replication fields + +Reports metrics related to the replication process. metrics.replication appears on all mongod instances, even those that aren't members of replica sets. + + + +[float] +== executor fields + +Reports on various statistics for the replication executor. + @@ -10244,6 +10344,12 @@ type: text -- +[float] +== apply fields + +Reports on the application of operations from the replication oplog. + + *`mongodb.metrics.replication.apply.attempts_to_become_secondary`*:: + @@ -10257,6 +10363,9 @@ type: long -- type: groupt +Reports on the oplog application process on secondaries members of replica sets. + + -- *`mongodb.metrics.replication.apply.ops`*:: @@ -10264,14 +10373,26 @@ type: groupt -- type: long +The total number of oplog operations applied. + + -- +[float] +== buffer fields + +MongoDB buffers oplog operations from the replication sync source buffer before applying oplog entries in a batch. metrics.replication.buffer provides a way to track the oplog buffer. + + *`mongodb.metrics.replication.buffer.count`*:: + -- type: long +The current number of operations in the oplog buffer. + + -- *`mongodb.metrics.replication.buffer.max_size.bytes`*:: @@ -10279,6 +10400,9 @@ type: long -- type: long +The maximum size of the buffer. This value is a constant setting in the mongod, and is not configurable. + + -- *`mongodb.metrics.replication.buffer.size.bytes`*:: @@ -10286,8 +10410,17 @@ type: long -- type: long +The current size of the contents of the oplog buffer. + + -- +[float] +== initial_sync fields + +Report initial sync status + + *`mongodb.metrics.replication.initial_sync.completed`*:: + @@ -10310,20 +10443,38 @@ type: long -- +[float] +== network fields + +Reports network use by the replication process. + + *`mongodb.metrics.replication.network.bytes`*:: + -- type: long +The total amount of data read from the replication sync source. + + -- +[float] +== getmores fields + +Reports on the getmore operations, which are requests for additional results from the oplog cursor as part of the oplog replication process. + + *`mongodb.metrics.replication.network.getmores.count`*:: + -- type: long +The total number of getmore operations + + -- *`mongodb.metrics.replication.network.getmores.time.ms`*:: @@ -10331,6 +10482,9 @@ type: long -- type: long +The total amount of time required to collect data from getmore operations. + + -- *`mongodb.metrics.replication.network.ops`*:: @@ -10338,6 +10492,9 @@ type: long -- type: long +The total number of operations read from the replication source. + + -- *`mongodb.metrics.replication.network.reders_created`*:: @@ -10345,8 +10502,23 @@ type: long -- type: long +The total number of oplog query processes created. + + -- +[float] +== preload fields + +Reports on the `pre-fetch` stage, where MongoDB loads documents and indexes into RAM to improve replication throughput. + + + +[float] +== docs fields + +Reports on the documents loaded into memory during the pre-fetch stage. + *`mongodb.metrics.replication.preload.docs.count`*:: @@ -10354,6 +10526,9 @@ type: long -- type: long +The total number of documents loaded during the pre-fetch stage of replication. + + -- *`mongodb.metrics.replication.preload.docs.time.ms`*:: @@ -10363,12 +10538,21 @@ type: long -- +[float] +== indexes fields + +Reports on the index items loaded into memory during the pre-fetch stage of replication. + + *`mongodb.metrics.replication.preload.indexes.count`*:: + -- type: long +The total number of index entries loaded by members before updating documents as part of the pre-fetch stage of replication. + + -- *`mongodb.metrics.replication.preload.indexes.time.ms`*:: @@ -10376,6 +10560,9 @@ type: long -- type: long +The total amount of time, in milliseconds, spent loading index entries as part of the pre-fetch stage of replication. + + -- @@ -10384,6 +10571,9 @@ type: long -- type: long +The number of times that mongod has checked the free list without finding a suitably large record allocation. + + -- *`mongodb.metrics.storage.free_list.search.requests`*:: @@ -10391,6 +10581,9 @@ type: long -- type: long +The number of times mongod has searched for available record allocations. + + -- *`mongodb.metrics.storage.free_list.search.scanned`*:: @@ -10398,14 +10591,26 @@ type: long -- type: long +The number of available record allocations mongod has searched. + + -- +[float] +== ttl fields + +Reports on the operation of the resource use of the ttl index process. + + *`mongodb.metrics.ttl.deleted_documents`*:: + -- type: long +The total number of documents deleted from collections with a ttl index. + + -- *`mongodb.metrics.ttl.passes`*:: @@ -10413,6 +10618,9 @@ type: long -- type: long +The number of times the background process removes documents from collections with a ttl index. + + -- [float] diff --git a/metricbeat/module/mongodb/fields.go b/metricbeat/module/mongodb/fields.go index 6b9ddacc616..53da876b53d 100644 --- a/metricbeat/module/mongodb/fields.go +++ b/metricbeat/module/mongodb/fields.go @@ -31,5 +31,5 @@ func init() { // Asset returns asset data func Asset() string { - return "eJzkXVuP47hyfu9fQWwesgv0uJEL8tAPAWb3JMAJzpwssnuQhyDQ0FTJ4jRFakjK3T6/PuBNN1MSbcvuPo4fBpi2Vfy+YrGqWLzoE3qBwzOqBN+JfPuAkKaawTP64Yv5yx9+/uEBoRwUkbTWVPBn9K8PCCH0BbSkRCEiGAOiIUeFFBXyDyEFcg9SbR4QUqWQOiOCF3T3jArMFDwgJIEBVvCMdtj8BrSmfKee0f/8oBT74X8fECoosFw929Y+IY4r6KM0H32ojQApmtr/JQLUgvWoKgd647/ot9BvxXBSGmvVfhNra6a9fpteQVRwZGRSpY3aRkjMZ6iR8Blj7ONsFTEE+QKHVyHz0XczUM3nD1jjLVZgRXewou12lNZr/5dOTQkIzL9rtl1tKce2cVGgPKgC87zffQm4tNCYbTStYNOoKEAm+O40dL8bmegVUzNCkJGNCiERE+RFIcpRRYkUCojg+cCexqiIaLheFRNvqi1IozIDxkJEsAeu1YKazM+jSMbjC02MgL4wCTifUPksxQSalqpReNC+UbxpL0X7RxhjHbAGwj+33dBCS+iLPrxXSTXcUoe2wVOV6FBeX4sduBNM+nsDkoJae+wbxcmGc6M430TamA941hz1nYoCFHgD0mjIF5SzA10JOWVhFykHq5dgVKYJRBqpzCAVr4mKCtiuoyjDWCEcYGH1YjKlANZEmgXVUa5A6mtozkk2yuPwinJBmsrYeZrWPKzrKC1g8a2kDcCmzvGkE7tIUVay0dOJOvKIrqwj10qajiRUYn8VHeXA4BwdeURX1pFFl6gjIqoKG7xX0JJzl1ZNIccMzaWpqwV3JYUdoTp28N3k4+IpkheBain2NDd+kiOxB7mn8GrgYFRjqSlpGJZu6tci3KDfS6raHh6IpQpVQmlEBCcgOeTolerSPor2gjXGI1vprbCLZmF4v8vE9lum6F9hsz1oSDaZQsgK62c0fGhhyhWXTrmGHch5IYbvdWEmzkijzxaUwXXRUZ7D2w2aSJEcn9Y2VQZv2nipMyWI7TcgZz+ttJ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rZqDkzm4Xamz/+nNsDtv0YE9dTqP07fSDdsl6SLVsKjfVDMc9vMUw6J+S71ogx7Z5GES3TSuY/fsaK4o3RrvPSW62+fUfuNS4+e7ZF7Xp3LqTG0m/+bz2XftdGzbFpqj+E2Y827A/9o63O+UBHf81eB8tfJCVOrju2SrbiZqIdZF4KN62K08UBuzzG62su2QbmXbrklnIR0rjlkLaqeA/iy01jas3hCvj9ePOom36ccQA7CO8XSOHudm9pnY1fvZJiq+1G5e39x3wQX6xXovw2CnvGhOGPZeWGi0ylmZsArqNTvZGr3Ar7bQdIEu0yv4s8yWkE66s+Er/bOAny3s3sXdOSpzO3C9104nwCmCB3u6Lo/NjDYf2pFPNLxcFNqRkw60fwQAAP//NgZ7kA==" } diff --git a/metricbeat/module/mongodb/metrics/_meta/fields.yml b/metricbeat/module/mongodb/metrics/_meta/fields.yml index 3d2d0e132a6..a5201e21be2 100644 --- a/metricbeat/module/mongodb/metrics/_meta/fields.yml +++ b/metricbeat/module/mongodb/metrics/_meta/fields.yml @@ -6,7 +6,14 @@ fields: - name: commands type: group - fields: + description: > + Reports on the use of database commands. + The fields in metrics.commands are the names of database commands and each value is a document + that reports the total number of commands executed as well as the number of failed executions. + + metrics.commands..failed shows the number of times failed on this mongod. + metrics.commands..total shows the number of times executed on this mongod. + fields: - name: is_self type: group fields: @@ -220,62 +227,110 @@ - name: cursor type: group + description: > + Contains data regarding cursor state and use. fields: - name: timed_out type: long + description: > + The total number of cursors that have timed out since the server process started. - name: open type: group + description: > + Contains data regarding open cursors. fields: - name: no_timeout type: long + description: > + The number of open cursors with the option DBQuery.Option.noTimeout set to prevent timeout. - name: pinned type: long + description: > + The number of `pinned` open cursors. - name: total type: long + description: > + The number of cursors that MongoDB is maintaining for clients. - name: document type: group + description: > + Reflects document access and modification patterns. fields: - name: deleted type: long + description: > + The total number of documents deleted. - name: inserted type: long + description: > + The total number of documents inserted. - name: returned type: long + description: > + The total number of documents returned by queries. - name: updated type: long + description: > + The total number of documents updated. - name: get_last_error type: group + description: > + Returns the error status of the preceding write operation on the current connection. fields: - name: write_wait.ms type: long + description: > + The total amount of time in milliseconds that the mongod has spent performing getLastError operations + with write concern (i.e. w) greater than 1. - name: write_wait.count type: long + description: > + The total number of getLastError operations with a specified write concern (i.e. w) greater than 1. - name: write_timeouts type: long + description: > + The number of times that write concern operations have timed out as a result of the wtimeout threshold to getLastError. - name: operation type: group + description: > + Holds counters for several types of update and query operations that MongoDB handles using special operation types. fields: - name: scan_and_order type: long + description: > + The total number of queries that return sorted numbers that cannot perform the sort operation using an index. - name: write_conflicts type: long + description: > + The total number of queries that encountered write conflicts. - name: query_executor type: group + description: > + Reports data from the query execution system. fields: - name: scanned_indexes type: long + description: > + The total number of index items scanned during queries and query-plan evaluation. - name: scanned_documents type: long + description: > + The total number of documents scanned during queries and query-plan evaluation. - name: replication type: group + description: > + Reports metrics related to the replication process. + metrics.replication appears on all mongod instances, even those that aren't members of replica sets. fields: - name: executor type: group + description: > + Reports on various statistics for the replication executor. fields: - name: counters type: group @@ -301,7 +356,7 @@ type: long - name: work type: long - - name: failures + - name: failures type: long - name: queues type: group @@ -313,7 +368,7 @@ type: long - name: dbwork type: long - - name: exclusive + - name: exclusive type: long - name: sleepers type: int @@ -327,89 +382,150 @@ type: long - name: shutting_down type: boolean - - name: network_interface + - name: network_interface type: text - name: apply type: group + description: > + Reports on the application of operations from the replication oplog. fields: - name: attempts_to_become_secondary type: long - name: batches type: groupt + description: > + Reports on the oplog application process on secondaries members of replica sets. fields: - name: count type: long + description: > + The total number of batches applied across all databases. - name: time.ms type: long + description: > + The total amount of time in milliseconds the mongod has spent applying operations from the oplog. - name: ops type: long + description: > + The total number of oplog operations applied. - name: buffer type: group + description: > + MongoDB buffers oplog operations from the replication sync source buffer before applying oplog entries in a batch. + metrics.replication.buffer provides a way to track the oplog buffer. fields: - name: count type: long + description: > + The current number of operations in the oplog buffer. - name: max_size.bytes type: long + description: > + The maximum size of the buffer. This value is a constant setting in the mongod, and is not configurable. - name: size.bytes type: long + description: > + The current size of the contents of the oplog buffer. - name: initial_sync type: group + description: > + Report initial sync status fields: - name: completed type: long - name: failed_attempts type: long - - name: failures + - name: failures type: long - name: network type: group + description: > + Reports network use by the replication process. fields: - name: bytes type: long + description: > + The total amount of data read from the replication sync source. - name: getmores type: group + description: > + Reports on the getmore operations, which are requests for additional results from the oplog cursor + as part of the oplog replication process. fields: - name: count type: long + description: > + The total number of getmore operations - name: time.ms type: long + description: > + The total amount of time required to collect data from getmore operations. - name: ops type: long + description: > + The total number of operations read from the replication source. - name: reders_created type: long + description: > + The total number of oplog query processes created. - name: preload type: group + description: > + Reports on the `pre-fetch` stage, where MongoDB loads documents and indexes into RAM to improve replication throughput. fields: - name: docs type: group + description: > + Reports on the documents loaded into memory during the pre-fetch stage. fields: - name: count type: long + description: > + The total number of documents loaded during the pre-fetch stage of replication. - name: time.ms type: long + decsription: > + The total amount of time spent loading documents as part of the pre-fetch stage of replication. - name: indexes type: group + description: > + Reports on the index items loaded into memory during the pre-fetch stage of replication. fields: - name: count type: long + description: > + The total number of index entries loaded by members before updating documents as part of the pre-fetch stage of replication. - name: time.ms type: long - + description: > + The total amount of time, in milliseconds, spent loading index entries as part of the pre-fetch stage of replication. + - name: storage.free_list.search type: group fields: - name: bucket_exhausted type: long + description: > + The number of times that mongod has checked the free list without finding a suitably large record allocation. - name: requests type: long + description: > + The number of times mongod has searched for available record allocations. - name: scanned type: long - + description: > + The number of available record allocations mongod has searched. + - name: ttl type: group + description: > + Reports on the operation of the resource use of the ttl index process. fields: - name: deleted_documents type: long + description: > + The total number of documents deleted from collections with a ttl index. - name: passes type: long - \ No newline at end of file + description: > + The number of times the background process removes documents from collections with a ttl index. From 625ae1904c9d028670fc74c308953cc497fc124d Mon Sep 17 00:00:00 2001 From: Hossein Taleghani Date: Wed, 18 Jul 2018 19:20:29 +0430 Subject: [PATCH 07/17] metrics.repl is optional --- metricbeat/module/mongodb/metrics/data.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metricbeat/module/mongodb/metrics/data.go b/metricbeat/module/mongodb/metrics/data.go index b5f4d00932c..8b87c75ab5f 100644 --- a/metricbeat/module/mongodb/metrics/data.go +++ b/metricbeat/module/mongodb/metrics/data.go @@ -84,7 +84,7 @@ var schema = s.Schema{ "scanned_indexes": s.Object{"count": c.Int("scanned")}, "scanned_documents": s.Object{"count": c.Int("scannedObjects")}, }), - "replication": c.Dict("metrics.repl", replicationSchema), + "replication": c.Dict("metrics.repl", replicationSchema, c.DictOptional), "storage": c.Dict("free_list", s.Schema{ "search": c.Dict("search", s.Schema{ "bucket_exhausted": c.Int("bucketExhausted"), From 5ccfbe378250269d7b86edca868783a878c9b777 Mon Sep 17 00:00:00 2001 From: Hossein Taleghani Date: Wed, 18 Jul 2018 19:21:49 +0430 Subject: [PATCH 08/17] Check for schema errors --- metricbeat/module/mongodb/metrics/metrics.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/metricbeat/module/mongodb/metrics/metrics.go b/metricbeat/module/mongodb/metrics/metrics.go index dbf989949cf..ac6bb54bf6c 100644 --- a/metricbeat/module/mongodb/metrics/metrics.go +++ b/metricbeat/module/mongodb/metrics/metrics.go @@ -73,6 +73,9 @@ func (m *MetricSet) Fetch() (common.MapStr, error) { return nil, err } - data, _ := schema.Apply(result) + data, err := schema.Apply(result) + if err != nil { + return nil, err + } return data, nil } From 48165a040a9a030181af063f23d7df2440426dff Mon Sep 17 00:00:00 2001 From: Hossein Taleghani Date: Sat, 28 Jul 2018 01:48:27 +0430 Subject: [PATCH 09/17] Add integration test --- metricbeat/module/mongodb/_meta/config.yml | 2 + .../metrics/metrics_intergration_test.go | 67 +++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 metricbeat/module/mongodb/metrics/metrics_intergration_test.go diff --git a/metricbeat/module/mongodb/_meta/config.yml b/metricbeat/module/mongodb/_meta/config.yml index e92b3d5f513..5f9c0aac612 100644 --- a/metricbeat/module/mongodb/_meta/config.yml +++ b/metricbeat/module/mongodb/_meta/config.yml @@ -2,6 +2,8 @@ #metricsets: # - dbstats # - status + # - collstats + # - metrics period: 10s # The hosts must be passed as MongoDB URLs in the format: diff --git a/metricbeat/module/mongodb/metrics/metrics_intergration_test.go b/metricbeat/module/mongodb/metrics/metrics_intergration_test.go new file mode 100644 index 00000000000..5c837e6ffa6 --- /dev/null +++ b/metricbeat/module/mongodb/metrics/metrics_intergration_test.go @@ -0,0 +1,67 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// +build integration + +package metrics + +import ( + "testing" + + "github.com/stretchr/testify/assert" + + "github.com/elastic/beats/libbeat/tests/compose" + mbtest "github.com/elastic/beats/metricbeat/mb/testing" + "github.com/elastic/beats/metricbeat/module/mongodb" +) + +func TestFetch(t *testing.T) { + compose.EnsureUp(t, "mongodb") + + f := mbtest.NewEventsFetcher(t, getConfig()) + event, err := f.Fetch() + if !assert.NoError(t, err) { + t.FailNow() + } + + // Check a few event Fields + findCount, err := event.GetValue("commands.find.total") + assert.NoError(t, err) + assert.True(t, findCount.(int64) >= 0) + + deletedDocuments, err := event.GetValue("document.deleted") + assert.NoError(t, err) + assert.True(t, deletedDocuments.(int64) >= 0) +} + +func TestData(t *testing.T) { + compose.EnsureUp(t, "mongodb") + + f := mbtest.NewEventsFetcher(t, getConfig()) + err := mbtest.WriteEvents(f, t) + if err != nil { + t.Fatal("write", err) + } +} + +func getConfig() map[string]interface{} { + return map[string]interface{}{ + "module": "mongodb", + "metricsets": []string{"metrics"}, + "hosts": []string{mongodb.GetEnvHost() + ":" + mongodb.GetEnvPort()}, + } +} From 0a437561d08805433a1f7163ff1a301489ee7fcf Mon Sep 17 00:00:00 2001 From: Hossein Taleghani Date: Sat, 28 Jul 2018 02:23:49 +0430 Subject: [PATCH 10/17] update mongodb.yml.disabled --- metricbeat/modules.d/mongodb.yml.disabled | 2 ++ 1 file changed, 2 insertions(+) diff --git a/metricbeat/modules.d/mongodb.yml.disabled b/metricbeat/modules.d/mongodb.yml.disabled index 36b4669095c..2b75555984b 100644 --- a/metricbeat/modules.d/mongodb.yml.disabled +++ b/metricbeat/modules.d/mongodb.yml.disabled @@ -5,6 +5,8 @@ #metricsets: # - dbstats # - status + # - collstats + # - metrics period: 10s # The hosts must be passed as MongoDB URLs in the format: From 43f87c2e31110b21b82da839c6231c2465cc7403 Mon Sep 17 00:00:00 2001 From: Hossein Taleghani Date: Sun, 29 Jul 2018 11:07:10 +0430 Subject: [PATCH 11/17] Fix integration test --- metricbeat/module/mongodb/metrics/metrics_intergration_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metricbeat/module/mongodb/metrics/metrics_intergration_test.go b/metricbeat/module/mongodb/metrics/metrics_intergration_test.go index 5c837e6ffa6..e6769a28061 100644 --- a/metricbeat/module/mongodb/metrics/metrics_intergration_test.go +++ b/metricbeat/module/mongodb/metrics/metrics_intergration_test.go @@ -32,7 +32,7 @@ import ( func TestFetch(t *testing.T) { compose.EnsureUp(t, "mongodb") - f := mbtest.NewEventsFetcher(t, getConfig()) + f := mbtest.NewEventFetcher(t, getConfig()) event, err := f.Fetch() if !assert.NoError(t, err) { t.FailNow() From 6350a88e9f4faaa60f568a8d88468ae0edc83149 Mon Sep 17 00:00:00 2001 From: Hossein Taleghani Date: Sun, 29 Jul 2018 12:12:57 +0430 Subject: [PATCH 12/17] fix schema --- metricbeat/module/mongodb/metrics/data.go | 4 ++-- .../module/mongodb/metrics/metrics_intergration_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/metricbeat/module/mongodb/metrics/data.go b/metricbeat/module/mongodb/metrics/data.go index 8b87c75ab5f..8ec730daeb6 100644 --- a/metricbeat/module/mongodb/metrics/data.go +++ b/metricbeat/module/mongodb/metrics/data.go @@ -85,7 +85,7 @@ var schema = s.Schema{ "scanned_documents": s.Object{"count": c.Int("scannedObjects")}, }), "replication": c.Dict("metrics.repl", replicationSchema, c.DictOptional), - "storage": c.Dict("free_list", s.Schema{ + "storage": c.Dict("metrics.storage.freelist", s.Schema{ "search": c.Dict("search", s.Schema{ "bucket_exhausted": c.Int("bucketExhausted"), "requests": c.Int("requests"), @@ -142,7 +142,7 @@ var replicationSchema = s.Schema{ "buffer": c.Dict("buffer", s.Schema{ "count": c.Int("count"), "max_size": s.Object{"bytes": c.Int("maxSizeBytes")}, - "size": s.Object{"bytes": c.Int("Bytes")}, + "size": s.Object{"bytes": c.Int("sizeBytes")}, }), "initial_sync": c.Dict("initialSync", s.Schema{ "completed": c.Int("completed"), diff --git a/metricbeat/module/mongodb/metrics/metrics_intergration_test.go b/metricbeat/module/mongodb/metrics/metrics_intergration_test.go index e6769a28061..1347cd02874 100644 --- a/metricbeat/module/mongodb/metrics/metrics_intergration_test.go +++ b/metricbeat/module/mongodb/metrics/metrics_intergration_test.go @@ -51,8 +51,8 @@ func TestFetch(t *testing.T) { func TestData(t *testing.T) { compose.EnsureUp(t, "mongodb") - f := mbtest.NewEventsFetcher(t, getConfig()) - err := mbtest.WriteEvents(f, t) + f := mbtest.NewEventFetcher(t, getConfig()) + err := mbtest.WriteEvent(f, t) if err != nil { t.Fatal("write", err) } From a448d0bb48cb5c673f261f466cd614efffeb4a55 Mon Sep 17 00:00:00 2001 From: Hossein Taleghani Date: Mon, 30 Jul 2018 14:55:57 +0430 Subject: [PATCH 13/17] fix typo in fields.yml --- metricbeat/docs/fields.asciidoc | 23 ++++++++++++++++--- metricbeat/module/mongodb/fields.go | 2 +- .../module/mongodb/metrics/_meta/fields.yml | 2 +- 3 files changed, 22 insertions(+), 5 deletions(-) diff --git a/metricbeat/docs/fields.asciidoc b/metricbeat/docs/fields.asciidoc index 321c6c722b0..b3d0ddc6239 100644 --- a/metricbeat/docs/fields.asciidoc +++ b/metricbeat/docs/fields.asciidoc @@ -10893,12 +10893,29 @@ type: long -- -*`mongodb.metrics.replication.apply.batches`*:: +[float] +== batches fields + +Reports on the oplog application process on secondaries members of replica sets. + + + +*`mongodb.metrics.replication.apply.batches.count`*:: + -- -type: groupt +type: long -Reports on the oplog application process on secondaries members of replica sets. +The total number of batches applied across all databases. + + +-- + +*`mongodb.metrics.replication.apply.batches.time.ms`*:: ++ +-- +type: long + +The total amount of time in milliseconds the mongod has spent applying operations from the oplog. -- diff --git a/metricbeat/module/mongodb/fields.go b/metricbeat/module/mongodb/fields.go index 7712a67dcf9..82c450b9307 100644 --- a/metricbeat/module/mongodb/fields.go +++ b/metricbeat/module/mongodb/fields.go @@ -31,5 +31,5 @@ func init() { // Asset returns asset data func Asset() string { - return "eJzsfVuvI7lx8Pv8CmK/B3uBMxr4S5CHgbHAXmzEwY692V3DD0HQQ3WXJO5hk22SLY3y6wMWyW52i32R1NKcUY4eEu8cqVhVrCoWi3V5S57h+J6UUmxlsX5DiGGGw3vy1Qf7Lz9899UbQgrQuWKVYVK8J9+8IYSQD2AUyzXJJeeQGyjIRsmS+B8RDWoPSq/eEKJ3Upksl2LDtu/JhnINbwhRwIFqeE+21H4HjGFiq9+T//pKa/7Vf78hZMOAF/o9rvaWCFpCjKX9mGNlAShZV/5fEogish6r0iG98n+IV4hXsTRpQ41u/pJaa2S9eE3PICYFsTCZNpZtPUzsp8uR8OnjGOPZMKKL5DMcD1IVvb+NoGo/P1BD11QDgm7RSq7bkrTc+t+3bJqBgf2/S65drpmguLjckCKwgooi3r4ZeBlpKF8ZVsKq1kkEuRTb87D71cIkB8qshhALm2ykIlzmz5owQUqWK6khl6LoyFMfq1zWwiyKk6jLNSjLMosMokhgD8LoCTbZ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oV3dCyCpcspKKZb9unZ8Kyt4H/Gxn0doG3Cji+Q8czwkURskxxvgT5jyF8CGHCuVyY/4PWvaqAKpcNf5LfnjDxJxC7Jh+Rwc7dLc4EhD0+Tl7zpwPhZXmb5+Ne28I44B3cYe8MeyriZ+HBPMvwXdxvjz222VN7yoel3f/sPi+RIYzQfe2KqT6lOAkWFeZCit1DmJFY6o5XCf0CaMdrdaDIbX8SqJsGa5HuS8Wl/LB2R7mhCDdiQrQCQbPRCZqlZX48+YYZnTGRua1MtBxfAvPvmzPIkWAXdTZJ5hjoK8hhZ697NOrjizkeO+CJ5CEH04HB1o3Rr5goMMOH0MZtFrIAUgvrmFCyA7o/kuEwFZe+JW9uHUJrTTe1wiSVgtGtkJqNBLqBKn7M7mbv0MsNVPpqLevJBon1sx2xZCvfQVHzgVjXhfKOCNwiNPWX6HSLrkPt2djLaWoewieM3Z4qJmtNqh3VLjAbnW4+KDtoAJIQh5k0c7DvgO9HFrzonvqBmFPs06uC/PirlG+U72QrVVHafv4ebghIqLU6wXHvjHMBIlF/HEj3XTdwbCJEq6DKuNxm63qzAfVZ+OSce4sJVd6790+hEyY2fH4pKeegwoS1xjr5q02Qs9jtmw4o2SO3ybH5bFyhuakp58fmTtnjCfkzG3xJJUQftQEsXobCub4F7FkOTqM21LqtORWEbjaQmwsYFPskn41HEWsid4Nuor0/ydWJP3/GIOiNWKWgpFVWKbanBrI9g8Nn5BQiU7lhRNXxrRRvnaL5VEGX5zUI1iKvV4trmz/JPyNbrAMSsJiDateXexmIj7l6g4AHXMA3/xsAAP//HhADTg==" } diff --git a/metricbeat/module/mongodb/metrics/_meta/fields.yml b/metricbeat/module/mongodb/metrics/_meta/fields.yml index a5201e21be2..418a8e904ee 100644 --- a/metricbeat/module/mongodb/metrics/_meta/fields.yml +++ b/metricbeat/module/mongodb/metrics/_meta/fields.yml @@ -392,7 +392,7 @@ - name: attempts_to_become_secondary type: long - name: batches - type: groupt + type: group description: > Reports on the oplog application process on secondaries members of replica sets. fields: From a5696e21d5dd68f2aead3468215a73fd74a80474 Mon Sep 17 00:00:00 2001 From: Hossein Taleghani Date: Mon, 30 Jul 2018 16:34:40 +0430 Subject: [PATCH 14/17] fix type int->long --- metricbeat/docs/fields.asciidoc | 6 +++--- metricbeat/module/mongodb/fields.go | 2 +- metricbeat/module/mongodb/metrics/_meta/fields.yml | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/metricbeat/docs/fields.asciidoc b/metricbeat/docs/fields.asciidoc index b3d0ddc6239..2353ec741c2 100644 --- a/metricbeat/docs/fields.asciidoc +++ b/metricbeat/docs/fields.asciidoc @@ -10833,21 +10833,21 @@ type: long *`mongodb.metrics.replication.executor.queues.sleepers`*:: + -- -type: int +type: long -- *`mongodb.metrics.replication.executor.queues.ready`*:: + -- -type: int +type: long -- *`mongodb.metrics.replication.executor.queues.free`*:: + -- -type: int +type: long -- diff --git a/metricbeat/module/mongodb/fields.go b/metricbeat/module/mongodb/fields.go index 82c450b9307..d51ee0dc225 100644 --- a/metricbeat/module/mongodb/fields.go +++ b/metricbeat/module/mongodb/fields.go @@ -31,5 +31,5 @@ func init() { // Asset returns asset data func Asset() string { - return "eJzsfVuvI7lx8Pv8CmK/B3uBMxr4S5CHgbHAXmzEwY692V3DD0HQQ3WXJO5hk22SLY3y6wMWyW52i32R1NKcUY4eEu8cqVhVrCoWi3V5S57h+J6UUmxlsX5DiGGGw3vy1Qf7Lz9899UbQgrQuWKVYVK8J9+8IYSQD2AUyzXJJeeQGyjIRsmS+B8RDWoPSq/eEKJ3Upksl2LDtu/JhnINbwhRwIFqeE+21H4HjGFiq9+T//pKa/7Vf78hZMOAF/o9rvaWCFpCjKX9mGNlAShZV/5fEogish6r0iG98n+IV4hXsTRpQ41u/pJaa2S9eE3PICYFsTCZNpZtPUzsp8uR8OnjGOPZMKKL5DMcD1IVvb+NoGo/P1BD11QDgm7RSq7bkrTc+t+3bJqBgf2/S65drpmguLjckCKwgooi3r4ZeBlpKF8ZVs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p2gFTgYekgqUPytwhv6Id0e1uSGqU5OPGknCJ8ze6ZYEa6R8dlMV3RTZcdKyDRPMKtgggQN5C7PaWaOiG1pW4ZKFVDTzbfv0TFj2NvB/I4PeLvBWAcd36HhGuChClinOlyD/MYQPIUw4lwvzf9C6VxVQ5bLhT/LbEyb+BGLX5CMy2Lm7xZmAsMfHyWv+dCC8LG/zfNxrWxgHvIM77J1hT0X8LDyYZxm+i/vtscc2e2pP+bC0+5/d5yUyhBG6r10x1acUJ8GiwlxIsXsIMxJL3fEqoV8A7XitDhS57U8CddNgLdJ9qbiUH9buKDcU4UZMiFYgaDY6QbO0zI8n3zCjMyYyt5WJluNLYP59cwY5EuyizibJHAN9BTns7HWPRn18McdjBzyRPORgOjDYujH6FRMFZvgQ2rjNQhZAamEdE0p2QPdHMhym4tK35M2tQ2it6aZWmKRSMLoVUrORQDdQxY/Z3ewdermBSl+tZT3ZILF+tiOWbOU7KGo+EOu6UN4RgVuEpv4SnW7Rdag9G3s5Tc1D+ISx21PFZK1JtaPaBWaj080HZQcNQBLiMJNmDvYd8P3IghfdUz8Qc4p9elWQH3+V8o3ynWylKkrbz9/DDQEJtVYnOO6dcS5AJOqPA+m+6waOTYRoFVQZl9tsXW82oD4Ln5xzbzGhynv3/il0wsSGzy8l5RxUmLDWWCd/tQlyFrt90wEle+Q2OTafjSs0NzXl/NjcKXs8IX9mgy+phOijNoDFy1A417eAPcvBadSGWrc1p4LQzQZycwGDYp/ks/EoYk3kbtBNtPcnuTrx588YBL0RqxSUtMoqxfbUQLZncPiMnEJkKjeMqDq+leKtUzSfKujyvAbBWuT1anFt8yf5Z2SLdUACFnNQ7fpyLwPxMVdvEPCAC/jmfwMAAP//dioEfQ==" } diff --git a/metricbeat/module/mongodb/metrics/_meta/fields.yml b/metricbeat/module/mongodb/metrics/_meta/fields.yml index 418a8e904ee..952357b33c6 100644 --- a/metricbeat/module/mongodb/metrics/_meta/fields.yml +++ b/metricbeat/module/mongodb/metrics/_meta/fields.yml @@ -371,11 +371,11 @@ - name: exclusive type: long - name: sleepers - type: int + type: long - name: ready - type: int + type: long - name: free - type: int + type: long - name: unsignaled_events type: long - name: event_waiters From 180f2b20bfea0ad626c9abe519a7360a81064287 Mon Sep 17 00:00:00 2001 From: Hossein Taleghani Date: Mon, 30 Jul 2018 18:24:31 +0430 Subject: [PATCH 15/17] update changelog entry --- CHANGELOG.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index bcbd69052be..f6d15f232d8 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -59,7 +59,7 @@ https://github.com/elastic/beats/compare/v6.4.0...master[Check the HEAD diff] *Metricbeat* - Add metrics about cache size to memcached module {pull}7740[7740] -- Add `locks`, `global_locks`, `oplatencies` and `process` fields to `status` metricset of MongoDB module. {pull}7613[7613] +- Add `metircs` metricset to MongoDB module. {pull}7611[7611] *Packetbeat* From febef30a2186d768faa83bcb099c82a0dca9a35c Mon Sep 17 00:00:00 2001 From: Hossein Taleghani Date: Mon, 30 Jul 2018 18:25:02 +0430 Subject: [PATCH 16/17] add metricsets to the config reference --- metricbeat/module/mongodb/_meta/config.reference.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metricbeat/module/mongodb/_meta/config.reference.yml b/metricbeat/module/mongodb/_meta/config.reference.yml index d99d2938b94..2aa1e6322e3 100644 --- a/metricbeat/module/mongodb/_meta/config.reference.yml +++ b/metricbeat/module/mongodb/_meta/config.reference.yml @@ -1,5 +1,5 @@ - module: mongodb - metricsets: ["dbstats", "status"] + metricsets: ["dbstats", "status", "collstats", "metrics"] period: 10s enabled: true From 48a5097f616b7473d488bfff4630b3f915b63a1f Mon Sep 17 00:00:00 2001 From: Hossein Taleghani Date: Mon, 30 Jul 2018 18:41:08 +0430 Subject: [PATCH 17/17] make update --- metricbeat/docs/modules/mongodb.asciidoc | 2 +- metricbeat/metricbeat.reference.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/metricbeat/docs/modules/mongodb.asciidoc b/metricbeat/docs/modules/mongodb.asciidoc index cf1f329d71b..7ed549a7f38 100644 --- a/metricbeat/docs/modules/mongodb.asciidoc +++ b/metricbeat/docs/modules/mongodb.asciidoc @@ -66,7 +66,7 @@ in <>. Here is an example configuration: ---- metricbeat.modules: - module: mongodb - metricsets: ["dbstats", "status"] + metricsets: ["dbstats", "status", "collstats", "metrics"] period: 10s enabled: true diff --git a/metricbeat/metricbeat.reference.yml b/metricbeat/metricbeat.reference.yml index c2661613cc8..825c00e916e 100644 --- a/metricbeat/metricbeat.reference.yml +++ b/metricbeat/metricbeat.reference.yml @@ -444,7 +444,7 @@ metricbeat.modules: #------------------------------- MongoDB Module ------------------------------ - module: mongodb - metricsets: ["dbstats", "status"] + metricsets: ["dbstats", "status", "collstats", "metrics"] period: 10s enabled: true