Skip to content

Instantly share code, notes, and snippets.

@javierma14
Created March 22, 2019 17:28
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 javierma14/90bcb19f09e7b98ea6e231abb8e60457 to your computer and use it in GitHub Desktop.
Save javierma14/90bcb19f09e7b98ea6e231abb8e60457 to your computer and use it in GitHub Desktop.
APM Query
{
"took" : 2,
"timed_out" : false,
"_shards" : {
"total" : 4,
"successful" : 4,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : 268,
"max_score" : 1.0,
"hits" : [
{
"_index" : "apm-6.6.0-metric-2019.03.19",
"_type" : "doc",
"_id" : "12q_lmkBxvp-WgO0-Ipm",
"_score" : 1.0,
"_source" : {
"@timestamp" : "2019-03-19T16:19:06.022Z",
"processor" : {
"name" : "metric",
"event" : "metric"
},
"beat" : {
"name" : "instance-0000000000",
"hostname" : "577e69e5be53",
"version" : "6.6.0"
},
"host" : {
"name" : "instance-0000000000"
},
"jvm" : {
"gc" : {
"alloc" : 2.93918824E8
},
"memory" : {
"heap" : {
"used" : 1.37555208E8,
"max" : 4.294967296E9,
"committed" : 3.22961408E8
},
"non_heap" : {
"max" : -1,
"used" : 8.1176544E7,
"committed" : 8.4574208E7
}
}
},
"system" : {
"cpu" : {
"total" : {
"norm" : {
"pct" : 0.43037974683544306
}
}
},
"memory" : {
"actual" : {
"free" : 3.1657984E7
},
"total" : 1.7179869184E10
},
"process" : {
"cpu" : {
"total" : {
"norm" : {
"pct" : 0.2933862919484347
}
}
},
"memory" : {
"size" : 1.1760975872E10
}
}
},
"context" : {
"process" : {
"pid" : 46716,
"ppid" : 35212,
"title" : "/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/bin/java"
},
"service" : {
"language" : {
"name" : "Java",
"version" : "10.0.2"
},
"runtime" : {
"name" : "Java",
"version" : "10.0.2"
},
"name" : "PlugableMain",
"agent" : {
"name" : "java",
"version" : "1.4.0"
},
"version" : "1.0",
"environment" : "test"
},
"system" : {
"ip" : "74.127.125.103",
"hostname" : "crusticus.local",
"architecture" : "x86_64",
"platform" : "Mac OS X"
}
}
}
},
{
"_index" : "apm-6.6.0-metric-2019.03.19",
"_type" : "doc",
"_id" : "2Gq_lmkBxvp-WgO0-Ipm",
"_score" : 1.0,
"_source" : {
"@timestamp" : "2019-03-19T16:19:06.022Z",
"jvm" : {
"gc" : {
"time" : 112,
"count" : 8
}
},
"context" : {
"system" : {
"ip" : "74.127.125.103",
"hostname" : "crusticus.local",
"architecture" : "x86_64",
"platform" : "Mac OS X"
},
"process" : {
"title" : "/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/bin/java",
"pid" : 46716,
"ppid" : 35212
},
"service" : {
"environment" : "test",
"language" : {
"name" : "Java",
"version" : "10.0.2"
},
"runtime" : {
"version" : "10.0.2",
"name" : "Java"
},
"name" : "PlugableMain",
"agent" : {
"name" : "java",
"version" : "1.4.0"
},
"version" : "1.0"
},
"tags" : {
"name" : "G1 Young Generation"
}
},
"processor" : {
"name" : "metric",
"event" : "metric"
},
"beat" : {
"name" : "instance-0000000000",
"hostname" : "577e69e5be53",
"version" : "6.6.0"
},
"host" : {
"name" : "instance-0000000000"
}
}
},
{
"_index" : "apm-6.6.0-metric-2019.03.19",
"_type" : "doc",
"_id" : "2Wq_lmkBxvp-WgO0-Ipm",
"_score" : 1.0,
"_source" : {
"@timestamp" : "2019-03-19T16:19:06.022Z",
"processor" : {
"event" : "metric",
"name" : "metric"
},
"beat" : {
"version" : "6.6.0",
"name" : "instance-0000000000",
"hostname" : "577e69e5be53"
},
"host" : {
"name" : "instance-0000000000"
},
"jvm" : {
"gc" : {
"time" : 0,
"count" : 0
}
},
"context" : {
"system" : {
"platform" : "Mac OS X",
"ip" : "74.127.125.103",
"hostname" : "crusticus.local",
"architecture" : "x86_64"
},
"process" : {
"title" : "/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/bin/java",
"pid" : 46716,
"ppid" : 35212
},
"service" : {
"name" : "PlugableMain",
"agent" : {
"name" : "java",
"version" : "1.4.0"
},
"version" : "1.0",
"environment" : "test",
"language" : {
"name" : "Java",
"version" : "10.0.2"
},
"runtime" : {
"version" : "10.0.2",
"name" : "Java"
}
},
"tags" : {
"name" : "G1 Old Generation"
}
}
}
},
{
"_index" : "apm-6.6.0-metric-2019.03.19",
"_type" : "doc",
"_id" : "tGrBlmkBxvp-WgO0V5hu",
"_score" : 1.0,
"_source" : {
"@timestamp" : "2019-03-19T16:20:36.024Z",
"beat" : {
"name" : "instance-0000000000",
"hostname" : "577e69e5be53",
"version" : "6.6.0"
},
"system" : {
"memory" : {
"total" : 1.7179869184E10,
"actual" : {
"free" : 1.9095552E7
}
},
"cpu" : {
"total" : {
"norm" : {
"pct" : 0.515625
}
}
},
"process" : {
"memory" : {
"size" : 1.2044804096E10
},
"cpu" : {
"total" : {
"norm" : {
"pct" : 0.2394727339444861
}
}
}
}
},
"jvm" : {
"memory" : {
"non_heap" : {
"used" : 8.3080376E7,
"committed" : 8.6540288E7,
"max" : -1
},
"heap" : {
"max" : 4.294967296E9,
"committed" : 3.22961408E8,
"used" : 1.37029176E8
}
},
"gc" : {
"alloc" : 4.28952616E8
}
},
"context" : {
"system" : {
"hostname" : "crusticus.local",
"architecture" : "x86_64",
"platform" : "Mac OS X",
"ip" : "74.127.125.103"
},
"process" : {
"pid" : 46716,
"ppid" : 35212,
"title" : "/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/bin/java"
},
"service" : {
"agent" : {
"name" : "java",
"version" : "1.4.0"
},
"version" : "1.0",
"environment" : "test",
"language" : {
"name" : "Java",
"version" : "10.0.2"
},
"runtime" : {
"name" : "Java",
"version" : "10.0.2"
},
"name" : "PlugableMain"
}
},
"processor" : {
"name" : "metric",
"event" : "metric"
},
"host" : {
"name" : "instance-0000000000"
}
}
},
{
"_index" : "apm-6.6.0-metric-2019.03.19",
"_type" : "doc",
"_id" : "tWrBlmkBxvp-WgO0V5hu",
"_score" : 1.0,
"_source" : {
"@timestamp" : "2019-03-19T16:20:36.024Z",
"context" : {
"tags" : {
"name" : "G1 Young Generation"
},
"system" : {
"platform" : "Mac OS X",
"ip" : "74.127.125.103",
"hostname" : "crusticus.local",
"architecture" : "x86_64"
},
"process" : {
"ppid" : 35212,
"title" : "/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/bin/java",
"pid" : 46716
},
"service" : {
"name" : "PlugableMain",
"agent" : {
"name" : "java",
"version" : "1.4.0"
},
"version" : "1.0",
"environment" : "test",
"language" : {
"name" : "Java",
"version" : "10.0.2"
},
"runtime" : {
"name" : "Java",
"version" : "10.0.2"
}
}
},
"processor" : {
"event" : "metric",
"name" : "metric"
},
"host" : {
"name" : "instance-0000000000"
},
"beat" : {
"name" : "instance-0000000000",
"hostname" : "577e69e5be53",
"version" : "6.6.0"
},
"jvm" : {
"gc" : {
"time" : 128,
"count" : 9
}
}
}
},
{
"_index" : "apm-6.6.0-metric-2019.03.19",
"_type" : "doc",
"_id" : "tmrBlmkBxvp-WgO0V5hu",
"_score" : 1.0,
"_source" : {
"@timestamp" : "2019-03-19T16:20:36.024Z",
"jvm" : {
"gc" : {
"count" : 0,
"time" : 0
}
},
"context" : {
"tags" : {
"name" : "G1 Old Generation"
},
"system" : {
"hostname" : "crusticus.local",
"architecture" : "x86_64",
"platform" : "Mac OS X",
"ip" : "74.127.125.103"
},
"process" : {
"title" : "/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/bin/java",
"pid" : 46716,
"ppid" : 35212
},
"service" : {
"name" : "PlugableMain",
"agent" : {
"version" : "1.4.0",
"name" : "java"
},
"version" : "1.0",
"environment" : "test",
"language" : {
"name" : "Java",
"version" : "10.0.2"
},
"runtime" : {
"name" : "Java",
"version" : "10.0.2"
}
}
},
"processor" : {
"name" : "metric",
"event" : "metric"
},
"host" : {
"name" : "instance-0000000000"
},
"beat" : {
"hostname" : "577e69e5be53",
"version" : "6.6.0",
"name" : "instance-0000000000"
}
}
},
{
"_index" : "apm-6.6.0-metric-2019.03.19",
"_type" : "doc",
"_id" : "B2rAlmkBxvp-WgO04ZTX",
"_score" : 1.0,
"_source" : {
"@timestamp" : "2019-03-19T16:20:05.916Z",
"context" : {
"system" : {
"hostname" : "crusticus.local",
"architecture" : "x86_64",
"platform" : "Mac OS X",
"ip" : "74.127.125.103"
},
"process" : {
"pid" : 46716,
"ppid" : 35212,
"title" : "/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/bin/java"
},
"service" : {
"name" : "PlugableMain",
"agent" : {
"name" : "java",
"version" : "1.4.0"
},
"version" : "1.0",
"environment" : "test",
"language" : {
"name" : "Java",
"version" : "10.0.2"
},
"runtime" : {
"version" : "10.0.2",
"name" : "Java"
}
}
},
"processor" : {
"name" : "metric",
"event" : "metric"
},
"beat" : {
"name" : "instance-0000000000",
"hostname" : "577e69e5be53",
"version" : "6.6.0"
},
"host" : {
"name" : "instance-0000000000"
},
"jvm" : {
"memory" : {
"heap" : {
"used" : 9.0891832E7,
"max" : 4.294967296E9,
"committed" : 3.22961408E8
},
"non_heap" : {
"committed" : 8.6147072E7,
"max" : -1,
"used" : 8.2620488E7
}
},
"gc" : {
"alloc" : 3.83705512E8
}
},
"system" : {
"cpu" : {
"total" : {
"norm" : {
"pct" : 0.4107142857142857
}
}
},
"process" : {
"memory" : {
"size" : 1.2010651648E10
},
"cpu" : {
"total" : {
"norm" : {
"pct" : 0.26446339977879624
}
}
}
},
"memory" : {
"total" : 1.7179869184E10,
"actual" : {
"free" : 4.67656704E8
}
}
}
}
},
{
"_index" : "apm-6.6.0-metric-2019.03.19",
"_type" : "doc",
"_id" : "CGrAlmkBxvp-WgO04ZTX",
"_score" : 1.0,
"_source" : {
"@timestamp" : "2019-03-19T16:20:05.916Z",
"processor" : {
"name" : "metric",
"event" : "metric"
},
"host" : {
"name" : "instance-0000000000"
},
"beat" : {
"name" : "instance-0000000000",
"hostname" : "577e69e5be53",
"version" : "6.6.0"
},
"jvm" : {
"gc" : {
"time" : 128,
"count" : 9
}
},
"context" : {
"tags" : {
"name" : "G1 Young Generation"
},
"system" : {
"hostname" : "crusticus.local",
"architecture" : "x86_64",
"platform" : "Mac OS X",
"ip" : "74.127.125.103"
},
"process" : {
"title" : "/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/bin/java",
"pid" : 46716,
"ppid" : 35212
},
"service" : {
"agent" : {
"name" : "java",
"version" : "1.4.0"
},
"version" : "1.0",
"environment" : "test",
"language" : {
"name" : "Java",
"version" : "10.0.2"
},
"runtime" : {
"version" : "10.0.2",
"name" : "Java"
},
"name" : "PlugableMain"
}
}
}
},
{
"_index" : "apm-6.6.0-metric-2019.03.19",
"_type" : "doc",
"_id" : "CWrAlmkBxvp-WgO04ZTX",
"_score" : 1.0,
"_source" : {
"@timestamp" : "2019-03-19T16:20:05.916Z",
"jvm" : {
"gc" : {
"time" : 0,
"count" : 0
}
},
"context" : {
"tags" : {
"name" : "G1 Old Generation"
},
"system" : {
"hostname" : "crusticus.local",
"architecture" : "x86_64",
"platform" : "Mac OS X",
"ip" : "74.127.125.103"
},
"process" : {
"pid" : 46716,
"ppid" : 35212,
"title" : "/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/bin/java"
},
"service" : {
"runtime" : {
"name" : "Java",
"version" : "10.0.2"
},
"name" : "PlugableMain",
"agent" : {
"name" : "java",
"version" : "1.4.0"
},
"version" : "1.0",
"environment" : "test",
"language" : {
"name" : "Java",
"version" : "10.0.2"
}
}
},
"processor" : {
"name" : "metric",
"event" : "metric"
},
"host" : {
"name" : "instance-0000000000"
},
"beat" : {
"name" : "instance-0000000000",
"hostname" : "577e69e5be53",
"version" : "6.6.0"
}
}
},
{
"_index" : "apm-6.6.0-metric-2019.03.19",
"_type" : "doc",
"_id" : "mWq_lmkBxvp-WgO0DoH9",
"_score" : 1.0,
"_source" : {
"@timestamp" : "2019-03-19T16:18:05.853Z",
"processor" : {
"name" : "metric",
"event" : "metric"
},
"beat" : {
"name" : "instance-0000000000",
"hostname" : "577e69e5be53",
"version" : "6.6.0"
},
"host" : {
"name" : "instance-0000000000"
},
"system" : {
"cpu" : {
"total" : {
"norm" : {
"pct" : 0.5878378378378378
}
}
},
"process" : {
"cpu" : {
"total" : {
"norm" : {
"pct" : 0.45274195942509515
}
}
},
"memory" : {
"size" : 1.1738406912E10
}
},
"memory" : {
"actual" : {
"free" : 7.0598656E7
},
"total" : 1.7179869184E10
}
},
"jvm" : {
"memory" : {
"heap" : {
"used" : 1.22613248E8,
"max" : 4.294967296E9,
"committed" : 3.22961408E8
},
"non_heap" : {
"used" : 7.8767936E7,
"max" : -1,
"committed" : 8.241152E7
}
},
"gc" : {
"alloc" : 1.79612032E8
}
},
"context" : {
"system" : {
"hostname" : "crusticus.local",
"architecture" : "x86_64",
"platform" : "Mac OS X",
"ip" : "74.127.125.103"
},
"process" : {
"pid" : 46716,
"ppid" : 35212,
"title" : "/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/bin/java"
},
"service" : {
"name" : "PlugableMain",
"agent" : {
"version" : "1.4.0",
"name" : "java"
},
"version" : "1.0",
"environment" : "test",
"language" : {
"name" : "Java",
"version" : "10.0.2"
},
"runtime" : {
"version" : "10.0.2",
"name" : "Java"
}
}
}
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment