metricbeat test modules
Jump to navigation
Jump to search
metricbeat test modules | grep "\.\.\." system... cpu...OK load...OK memory...OK network...OK process...OK process_summary...OK socket_summary...OK system... filesystem...OK fsstat...OK system... uptime...OK
Full output[edit]
metricbeat test modules
system...
cpu...OK
result:
{
"@timestamp": "2022-05-28T17:59:22.932Z",
"event": {
"dataset": "system.cpu",
"duration": 209705,
"module": "system"
},
"host": {
"cpu": {
"usage": 0.0229
}
},
"metricset": {
"name": "cpu",
"period": 10000
},
"service": {
"type": "system"
},
"system": {
"cpu": {
"cores": 1,
"idle": {
"norm": {
"pct": 0.9752
},
"pct": 0.9752
},
"iowait": {
"norm": {
"pct": 0.0019
},
"pct": 0.0019
},
"irq": {
"norm": {
"pct": 0
},
"pct": 0
},
"nice": {
"norm": {
"pct": 0.0009
},
"pct": 0.0009
},
"softirq": {
"norm": {
"pct": 0.0004
},
"pct": 0.0004
},
"steal": {
"norm": {
"pct": 0
},
"pct": 0
},
"system": {
"norm": {
"pct": 0.01
},
"pct": 0.01
},
"total": {
"norm": {
"pct": 0.0229
},
"pct": 0.0229
},
"user": {
"norm": {
"pct": 0.0117
},
"pct": 0.0117
}
}
}
}
load...OK
result:
{
"@timestamp": "2022-05-28T17:59:22.941Z",
"event": {
"dataset": "system.load",
"duration": 555531,
"module": "system"
},
"metricset": {
"name": "load",
"period": 10000
},
"service": {
"type": "system"
},
"system": {
"load": {
"1": 0.08,
"15": 0.06,
"5": 0.12,
"cores": 1,
"norm": {
"1": 0.08,
"15": 0.06,
"5": 0.12
}
}
}
}
memory...OK
result:
{
"@timestamp": "2022-05-28T17:59:22.943Z",
"event": {
"dataset": "system.memory",
"duration": 2331956,
"module": "system"
},
"metricset": {
"name": "memory",
"period": 10000
},
"service": {
"type": "system"
},
"system": {
"memory": {
"actual": {
"free": 668774400,
"used": {
"bytes": 339877888,
"pct": 0.337
}
},
"cached": 650182656,
"free": 50618368,
"swap": {
"free": 0,
"total": 0,
"used": {
"bytes": 0
}
},
"total": 1008652288,
"used": {
"bytes": 958033920,
"pct": 0.9498
}
}
}
}
network...OK
result:
{
"@timestamp": "2022-05-28T17:59:22.949Z",
"event": {
"dataset": "system.network",
"duration": 558240,
"module": "system"
},
"metricset": {
"name": "network",
"period": 10000
},
"service": {
"type": "system"
},
"system": {
"network": {
"in": {
"bytes": 15119,
"dropped": 0,
"errors": 0,
"packets": 170
},
"name": "lo",
"out": {
"bytes": 15119,
"dropped": 0,
"errors": 0,
"packets": 170
}
}
}
}
process...OK
result:
{
"@timestamp": "2022-05-28T17:59:22.951Z",
"event": {
"dataset": "system.process",
"duration": 66363915,
"module": "system"
},
"metricset": {
"name": "process",
"period": 10000
},
"process": {
"args": [
"/sbin/init"
],
"command_line": "/sbin/init",
"cpu": {
"start_time": "2022-05-28T17:32:52.000Z"
},
"executable": "/usr/lib/systemd/systemd",
"memory": {
"pct": 0.0113
},
"name": "systemd",
"parent": {
"pid": 0
},
"pgid": 1,
"pid": 1,
"state": "sleeping",
"working_directory": "/"
},
"service": {
"type": "system"
},
"system": {
"process": {
"cgroup": {
"cgroups_version": 2,
"cpu": {
"id": "init.scope",
"path": "/init.scope",
"pressure": {
"full": {
"10": {
"pct": 0
},
"300": {
"pct": 0
},
"60": {
"pct": 0
},
"total": 749380
},
"some": {
"10": {
"pct": 0
},
"300": {
"pct": 0
},
"60": {
"pct": 0
},
"total": 967542
}
},
"stats": {
"periods": 0,
"system": {
"ns": 468300
},
"throttled": {
"periods": 0,
"us": 0
},
"usage": {
"ns": 960413
},
"user": {
"ns": 492112
}
}
},
"id": "init.scope",
"io": {
"id": "init.scope",
"path": "/init.scope",
"pressure": {
"full": {
"10": {
"pct": 0
},
"300": {
"pct": 0
},
"60": {
"pct": 0
},
"total": 68876
},
"some": {
"10": {
"pct": 0
},
"300": {
"pct": 0
},
"60": {
"pct": 0
},
"total": 155151
}
},
"stats": {
"sda": {
"discarded": {
"bytes": 0,
"ios": 0
},
"read": {
"bytes": 1990656,
"ios": 89
},
"write": {
"bytes": 0,
"ios": 0
}
}
}
},
"memory": {
"id": "init.scope",
"mem": {
"events": {
"high": 0,
"low": 0,
"max": 0,
"oom": 0,
"oom_kill": 0
},
"low": {
"bytes": 0
},
"usage": {
"bytes": 8744960
}
},
"memsw": {
"events": {
"fail": 0,
"high": 0,
"max": 0
},
"low": {
"bytes": 0
},
"usage": {
"bytes": 0
}
},
"path": "/init.scope",
"stats": {
"active_anon": {
"bytes": 32768
},
"active_file": {
"bytes": 1744896
},
"anon": {
"bytes": 4628480
},
"anon_thp": {
"bytes": 0
},
"file": {
"bytes": 2252800
},
"file_dirty": {
"bytes": 0
},
"file_mapped": {
"bytes": 12288
},
"file_thp": {
"bytes": 0
},
"file_writeback": {
"bytes": 0
},
"htp_collapse_alloc": 0,
"inactive_anon": {
"bytes": 4640768
},
"inactive_file": {
"bytes": 462848
},
"kernel_stack": {
"bytes": 360448
},
"major_page_faults": 55,
"page_activate": 208,
"page_deactivate": 103,
"page_faults": 31514,
"page_lazy_free": 0,
"page_lazy_freed": 0,
"page_refill": 106,
"page_scan": 13,
"page_steal": 13,
"page_tables": {
"bytes": 16384
},
"per_cpu": {
"bytes": 432
},
"shmem": {
"bytes": 45056
},
"shmem_thp": {
"bytes": 0
},
"slab": {
"bytes": 1435680
},
"slab_reclaimable": {
"bytes": 1047904
},
"slab_unreclaimable": {
"bytes": 387776
},
"sock": {
"bytes": 0
},
"swap_cached": {
"bytes": 0
},
"thp_fault_alloc": 0,
"unevictable": {
"bytes": 0
},
"workingset_activate_anon": 0,
"workingset_activate_file": 456,
"workingset_node_reclaim": 0,
"workingset_refault_anon": 0,
"workingset_refault_file": 456,
"workingset_restore_anon": 0,
"workingset_restore_file": 0
}
},
"path": "/init.scope"
},
"cmdline": "/sbin/init",
"cpu": {
"start_time": "2022-05-28T17:32:52.000Z",
"total": {}
},
"fd": {
"limit": {
"hard": 1048576,
"soft": 1048576
},
"open": 83
},
"memory": {
"rss": {
"bytes": 11395072,
"pct": 0.0113
},
"share": 7630848,
"size": 171732992
},
"state": "sleeping"
}
},
"user": {
"name": "root"
}
}
process_summary...OK
result:
{
"@timestamp": "2022-05-28T17:59:23.026Z",
"event": {
"dataset": "system.process.summary",
"duration": 2745074,
"module": "system"
},
"metricset": {
"name": "process_summary",
"period": 10000
},
"service": {
"type": "system"
},
"system": {
"process": {
"summary": {
"idle": 39,
"running": 1,
"sleeping": 100,
"total": 140
}
}
}
}
socket_summary...OK
result:
{
"@timestamp": "2022-05-28T17:59:23.047Z",
"event": {
"dataset": "system.socket.summary",
"duration": 5263568,
"module": "system"
},
"metricset": {
"name": "socket_summary",
"period": 10000
},
"service": {
"type": "system"
},
"system": {
"socket": {
"summary": {
"all": {
"count": 12,
"listening": 5
},
"tcp": {
"all": {
"close_wait": 0,
"closing": 0,
"count": 6,
"established": 1,
"fin_wait1": 0,
"fin_wait2": 0,
"last_ack": 0,
"listening": 5,
"orphan": 0,
"syn_recv": 0,
"syn_sent": 0,
"time_wait": 0
},
"memory": 12288
},
"udp": {
"all": {
"count": 6
},
"memory": 4096
}
}
}
}
}
system...
filesystem...OK
result:
{
"@timestamp": "2022-05-28T17:59:23.054Z",
"event": {
"dataset": "system.filesystem",
"duration": 159289,
"module": "system"
},
"metricset": {
"name": "filesystem",
"period": 60000
},
"service": {
"type": "system"
},
"system": {
"filesystem": {
"available": 0,
"device_name": "nsfs",
"files": 0,
"free": 0,
"free_files": 0,
"mount_point": "/run/snapd/ns/lxd.mnt",
"total": 0,
"type": "nsfs",
"used": {
"bytes": 0,
"pct": 0
}
}
}
}
fsstat...OK
result:
{
"@timestamp": "2022-05-28T17:59:23.054Z",
"event": {
"dataset": "system.fsstat",
"duration": 97081,
"module": "system"
},
"metricset": {
"name": "fsstat",
"period": 60000
},
"service": {
"type": "system"
},
"system": {
"fsstat": {
"count": 8,
"total_files": 661372,
"total_size": {
"free": 3243778048,
"total": 5307797504,
"used": 2064019456
}
}
}
}
system...
uptime...OK
result:
{
"@timestamp": "2022-05-28T17:59:23.055Z",
"event": {
"dataset": "system.uptime",
"duration": 3708,
"module": "system"
},
"metricset": {
"name": "uptime",
"period": 900000
},
"service": {
"type": "system"
},
"system": {
"uptime": {
"duration": {
"ms": 1591000
}
}
}
}
Related[edit]
metricbeat test config
See also[edit]
Advertising: