Skip to content

Instantly share code, notes, and snippets.

@andrewkroh
Created September 12, 2016 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewkroh/ed7e51602aab4ac4c20b40e142cf969e to your computer and use it in GitHub Desktop.
Save andrewkroh/ed7e51602aab4ac4c20b40e142cf969e to your computer and use it in GitHub Desktop.
Sample System Process MetricSet with cgroup statistics
{
"@timestamp": "2016-09-12T14:12:53.148Z",
"beat": {
"hostname": "37111ca49b16",
"name": "37111ca49b16"
},
"metricset": {
"module": "system",
"name": "process",
"rtt": 85282
},
"system": {
"process": {
"cgroup": {
"blkio": {
"id": "0fd6ed1f5596fc6e2c13e2cbad3b5610886ec991b8dfa31ae18ce4ea31b27b72",
"path": "/docker/0fd6ed1f5596fc6e2c13e2cbad3b5610886ec991b8dfa31ae18ce4ea31b27b72",
"total": {
"bytes": 68366336,
"ios": 11498
}
},
"cpu": {
"cfs": {
"period": {
"us": 100000
},
"quota": {
"us": 0
},
"shares": 1024
},
"id": "0fd6ed1f5596fc6e2c13e2cbad3b5610886ec991b8dfa31ae18ce4ea31b27b72",
"path": "/docker/0fd6ed1f5596fc6e2c13e2cbad3b5610886ec991b8dfa31ae18ce4ea31b27b72",
"rt": {
"period": {
"us": 1000000
},
"runtime": {
"us": 0
}
},
"stats": {
"periods": 0,
"throttled": {
"ns": 0,
"periods": 0
}
}
},
"cpuacct": {
"id": "0fd6ed1f5596fc6e2c13e2cbad3b5610886ec991b8dfa31ae18ce4ea31b27b72",
"path": "/docker/0fd6ed1f5596fc6e2c13e2cbad3b5610886ec991b8dfa31ae18ce4ea31b27b72",
"percpu": {
"1": 14775371778
},
"stats": {
"system": {
"ns": 530000000
},
"user": {
"ns": 14100000000
}
},
"total": {
"ns": 14775371778
}
},
"id": "0fd6ed1f5596fc6e2c13e2cbad3b5610886ec991b8dfa31ae18ce4ea31b27b72",
"memory": {
"id": "0fd6ed1f5596fc6e2c13e2cbad3b5610886ec991b8dfa31ae18ce4ea31b27b72",
"kmem": {
"failures": 0,
"limit": {
"bytes": 9223372036854772000
},
"usage": {
"bytes": 713678848,
"max": {
"bytes": 728428544
}
}
},
"kmem_tcp": {
"failures": 0,
"limit": {
"bytes": 9223372036854772000
},
"usage": {
"bytes": 713678848,
"max": {
"bytes": 728428544
}
}
},
"mem": {
"failures": 0,
"limit": {
"bytes": 9223372036854772000
},
"usage": {
"bytes": 713678848,
"max": {
"bytes": 728428544
}
}
},
"memsw": {
"failures": 0,
"limit": {
"bytes": 9223372036854772000
},
"usage": {
"bytes": 713678848,
"max": {
"bytes": 728428544
}
}
},
"path": "/docker/0fd6ed1f5596fc6e2c13e2cbad3b5610886ec991b8dfa31ae18ce4ea31b27b72",
"stats": {
"active_anon": {
"bytes": 346275840
},
"active_file": {
"bytes": 9932800
},
"cache": {
"bytes": 18751488
},
"hierarchical_memory_limit": {
"bytes": 9223372036854772000
},
"hierarchical_memsw_limit": {
"bytes": 9223372036854772000
},
"inactive_anon": {
"bytes": 348590080
},
"inactive_file": {
"bytes": 8814592
},
"major_page_faults": 3580,
"mapped_file": {
"bytes": 4902912
},
"page_faults": 65512,
"pages_in": 70023,
"pages_out": 42457,
"rss": {
"bytes": 694865920
},
"rss_huge": {
"bytes": 476053504
},
"swap": {
"bytes": 51314688
},
"unevictable": {
"bytes": 0
}
}
},
"path": "/docker/0fd6ed1f5596fc6e2c13e2cbad3b5610886ec991b8dfa31ae18ce4ea31b27b72"
},
"cmdline": "/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Xms256m -Xmx2g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -server -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -Dio.netty.noUnsafe=true -XX:+HeapDumpOnOutOfMemoryError -Xms512m -Xmx512m -Des.path.home=/usr/share/elasticsearch -cp /usr/share/elasticsearch/lib/elasticsearch-5.0.0-alpha5.jar:/usr/share/elasticsearch/lib/* org.elasticsearch.bootstrap.Elasticsearch -Enetwork.host=0.0.0.0 -Ediscovery.zen.minimum_master_nodes=1 -Ebootstrap.ignore_system_bootstrap_checks=true",
"cpu": {
"start_time": "2016-09-12T14:12:21.000Z",
"total": {
"pct": 0.1435
}
},
"fd": {
"limit": {
"hard": 1048576,
"soft": 1048576
},
"open": 134
},
"memory": {
"rss": {
"bytes": 697278464,
"pct": 0.6677
},
"share": 17002496,
"size": 2717966336
},
"name": "java",
"pgid": 6069,
"pid": 6069,
"ppid": 6060,
"state": "sleeping",
"username": "105"
}
},
"type": "metricsets"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment