MongoDB 状态指标集编辑

这是 MongoDB 模块的 status 指标集。

它需要以下权限,这些权限包含在 clusterMonitor 角色

这是一个默认的指标集。如果主机模块未配置,则默认情况下启用此指标集。

字段

有关指标集中每个字段的描述,请参阅 导出字段 部分。

以下是由此指标集生成的示例文档

{
    "@timestamp": "2017-10-12T08:05:34.853Z",
    "event": {
        "dataset": "mongodb.status",
        "duration": 115000,
        "module": "mongodb"
    },
    "metricset": {
        "name": "status",
        "period": 10000
    },
    "mongodb": {
        "status": {
            "asserts": {
                "msg": 0,
                "regular": 0,
                "rollovers": 0,
                "user": 5,
                "warning": 0
            },
            "connections": {
                "available": 815,
                "current": 4,
                "total_created": 783
            },
            "extra_info": {
                "heap_usage": {},
                "page_faults": 14
            },
            "global_lock": {
                "active_clients": {
                    "readers": 0,
                    "total": 18,
                    "writers": 0
                },
                "current_queue": {
                    "readers": 0,
                    "total": 0,
                    "writers": 0
                },
                "total_time": {
                    "us": 793189000
                }
            },
            "local_time": "2022-05-07T12:34:04.274Z",
            "locks": {
                "collection": {
                    "acquire": {
                        "count": {
                            "W": 1,
                            "r": 2741
                        }
                    },
                    "deadlock": {},
                    "wait": {}
                },
                "database": {
                    "acquire": {
                        "count": {
                            "R": 2,
                            "W": 16,
                            "r": 3707,
                            "w": 1
                        }
                    },
                    "deadlock": {},
                    "wait": {}
                },
                "global": {
                    "acquire": {
                        "count": {
                            "W": 2,
                            "r": 7453,
                            "w": 17
                        }
                    },
                    "deadlock": {},
                    "wait": {}
                },
                "meta_data": {
                    "acquire": {
                        "count": {
                            "w": 1
                        }
                    },
                    "deadlock": {},
                    "wait": {}
                },
                "oplog": {
                    "acquire": {
                        "count": {
                            "r": 966,
                            "w": 1
                        }
                    },
                    "deadlock": {},
                    "wait": {}
                }
            },
            "memory": {
                "bits": 64,
                "mapped": {
                    "mb": 0
                },
                "mapped_with_journal": {
                    "mb": 0
                },
                "resident": {
                    "mb": 66
                },
                "virtual": {
                    "mb": 1183
                }
            },
            "network": {
                "in": {
                    "bytes": 7845
                },
                "out": {
                    "bytes": 204883
                },
                "requests": 93
            },
            "ops": {
                "counters": {
                    "command": 48,
                    "delete": 0,
                    "getmore": 0,
                    "insert": 0,
                    "query": 1,
                    "update": 0
                },
                "latencies": {
                    "commands": {
                        "count": 48,
                        "latency": 43041525
                    },
                    "reads": {
                        "count": 0,
                        "latency": 0
                    },
                    "writes": {
                        "count": 0,
                        "latency": 0
                    }
                },
                "replicated": {
                    "command": 0,
                    "delete": 0,
                    "getmore": 0,
                    "insert": 0,
                    "query": 0,
                    "update": 0
                }
            },
            "storage_engine": {
                "name": "wiredTiger"
            },
            "uptime": {
                "ms": 793190
            },
            "wired_tiger": {
                "cache": {
                    "dirty": {
                        "bytes": 0
                    },
                    "maximum": {
                        "bytes": 16113467392
                    },
                    "pages": {
                        "evicted": 0,
                        "read": 26,
                        "write": 22
                    },
                    "used": {
                        "bytes": 99789
                    }
                },
                "concurrent_transactions": {
                    "read": {
                        "available": 128,
                        "out": 0,
                        "total_tickets": 128
                    },
                    "write": {
                        "available": 128,
                        "out": 0,
                        "total_tickets": 128
                    }
                },
                "log": {
                    "flushes": 7918,
                    "max_file_size": {
                        "bytes": 104857600
                    },
                    "scans": 3,
                    "size": {
                        "bytes": 33554432
                    },
                    "syncs": 7,
                    "write": {
                        "bytes": 5120
                    },
                    "writes": 13
                }
            }
        }
    },
    "process": {
        "name": "mongod"
    },
    "service": {
        "address": "172.28.0.2:27017",
        "type": "mongodb",
        "version": "3.4.24"
    }
}