Skip to content

Instantly share code, notes, and snippets.

@jasonrhodes
Last active August 15, 2022 18:23
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 jasonrhodes/4dfb36afaead68a9a92c55547247c143 to your computer and use it in GitHub Desktop.
Save jasonrhodes/4dfb36afaead68a9a92c55547247c143 to your computer and use it in GitHub Desktop.
Ruby agent APM documents
{
"_index": ".ds-metrics-apm.internal-default-2022.07.25-000006",
"_id": "CMO1ooIBzPFW3SMwqU5-",
"_version": 1,
"_score": 0,
"_source": {
"container": {
"id": "b2f7a1658b1d0df18aaab5dd5b9c3d43b2572c957386ea39c13e6c9af3fa0803"
},
"system.process.cpu.total.norm.pct": 0.0004199563245422476,
"kubernetes": {
"pod": {
"uid": "6684f255-6afb-411f-904a-e5fba78ec394"
}
},
"process": {
"args": [
"-C",
"config/puma.rb"
],
"pid": 40,
"title": "/usr/local/bundle/bin/puma"
},
"agent": {
"name": "ruby",
"version": "4.5.1"
},
"data_stream.namespace": "default",
"system.cpu.total.norm.pct": 0.48966907441626073,
"processor": {
"name": "metric",
"event": "metric"
},
"data_stream.type": "metrics",
"cloud": {
"availability_zone": "us-central1-c",
"instance": {
"name": "gke-edge-oblt-pool-1-9a60016d-oefk",
"id": "9033579269154470275"
},
"provider": "gcp",
"machine": {
"type": "projects/8560181848/machineTypes/e2-standard-4"
},
"project": {
"name": "elastic-observability",
"id": "8560181848"
},
"region": "us-central1"
},
"metricset.name": "app",
"system.process.memory.rss.bytes": 136523776,
"observer": {
"hostname": "5fb9341714ec",
"id": "2900af08-5585-4743-9fbc-9b3cbb8308d5",
"ephemeral_id": "d3b1dad4-f087-4615-9869-f2117ecce5ee",
"type": "apm-server",
"version": "8.4.0"
},
"@timestamp": "2022-08-15T18:12:59.577Z",
"system.process.memory.size": 250220544,
"ecs": {
"version": "1.12.0"
},
"service": {
"node": {
"name": "b2f7a1658b1d0df18aaab5dd5b9c3d43b2572c957386ea39c13e6c9af3fa0803"
},
"environment": "production",
"framework": {
"name": "Ruby on Rails",
"version": "6.1.4.1"
},
"name": "opbeans-ruby",
"runtime": {
"name": "ruby",
"version": "2.7.3"
},
"language": {
"name": "ruby",
"version": "2.7.3"
},
"version": "2022-07-25 13:32:58 - 8.4.0-d0a4da44"
},
"data_stream.dataset": "apm.internal",
"system.memory.actual.free": 12162990080,
"host": {
"os": {
"platform": "linux"
},
"ip": [
"35.239.114.169"
],
"architecture": "x86_64"
},
"system.memory.total": 16786546688,
"event": {
"agent_id_status": "missing",
"ingested": "2022-08-15T18:13:10Z"
}
},
"fields": {
"system.process.cpu.total.norm.pct": [
0
],
"process.pid": [
40
],
"service.language.name": [
"ruby"
],
"container.id": [
"b2f7a1658b1d0df18aaab5dd5b9c3d43b2572c957386ea39c13e6c9af3fa0803"
],
"cloud.availability_zone": [
"us-central1-c"
],
"process.title.text": [
"/usr/local/bundle/bin/puma"
],
"system.process.memory.size": [
250220544
],
"processor.event": [
"metric"
],
"system.memory.actual.free": [
12162990080
],
"agent.name": [
"ruby"
],
"system.memory.total": [
16786546688
],
"event.agent_id_status": [
"missing"
],
"cloud.region": [
"us-central1"
],
"processor.name": [
"metric"
],
"service.runtime.version": [
"2.7.3"
],
"data_stream.type": [
"metrics"
],
"host.architecture": [
"x86_64"
],
"cloud.machine.type": [
"projects/8560181848/machineTypes/e2-standard-4"
],
"cloud.provider": [
"gcp"
],
"observer.id": [
"2900af08-5585-4743-9fbc-9b3cbb8308d5"
],
"observer.version": [
"8.4.0"
],
"observer.type": [
"apm-server"
],
"ecs.version": [
"1.12.0"
],
"agent.version": [
"4.5.1"
],
"process.title": [
"/usr/local/bundle/bin/puma"
],
"service.framework.version": [
"6.1.4.1"
],
"service.node.name": [
"b2f7a1658b1d0df18aaab5dd5b9c3d43b2572c957386ea39c13e6c9af3fa0803"
],
"kubernetes.pod.uid": [
"6684f255-6afb-411f-904a-e5fba78ec394"
],
"system.cpu.total.norm.pct": [
0.49
],
"cloud.project.name": [
"elastic-observability"
],
"host.ip": [
"35.239.114.169"
],
"cloud.instance.id": [
"9033579269154470275"
],
"service.environment": [
"production"
],
"service.name": [
"opbeans-ruby"
],
"service.framework.name": [
"Ruby on Rails"
],
"data_stream.namespace": [
"default"
],
"service.runtime.name": [
"ruby"
],
"process.args": [
"-C",
"config/puma.rb"
],
"observer.hostname": [
"5fb9341714ec"
],
"system.process.memory.rss.bytes": [
136523776
],
"metricset.name": [
"app"
],
"event.ingested": [
"2022-08-15T18:13:10.000Z"
],
"@timestamp": [
"2022-08-15T18:12:59.577Z"
],
"observer.ephemeral_id": [
"d3b1dad4-f087-4615-9869-f2117ecce5ee"
],
"service.version": [
"2022-07-25 13:32:58 - 8.4.0-d0a4da44"
],
"host.os.platform": [
"linux"
],
"service.language.version": [
"2.7.3"
],
"data_stream.dataset": [
"apm.internal"
],
"cloud.instance.name": [
"gke-edge-oblt-pool-1-9a60016d-oefk"
],
"cloud.project.id": [
"8560181848"
]
}
}
{
"_index": ".ds-metrics-apm.internal-default-2022.07.25-000006",
"_id": "dMGtooIBzPFW3SMwhAMw",
"_version": 1,
"_score": 0,
"_source": {
"container": {
"id": "b2f7a1658b1d0df18aaab5dd5b9c3d43b2572c957386ea39c13e6c9af3fa0803"
},
"_doc_count": 1,
"agent": {
"name": "ruby"
},
"data_stream.namespace": "default",
"processor": {
"name": "metric",
"event": "metric"
},
"data_stream.type": "metrics",
"metricset.name": "transaction",
"cloud": {
"availability_zone": "us-central1-c",
"provider": "gcp",
"machine": {
"type": "projects/8560181848/machineTypes/e2-standard-4"
},
"project": {
"name": "elastic-observability",
"id": "8560181848"
},
"region": "us-central1"
},
"observer": {
"hostname": "5fb9341714ec",
"id": "2900af08-5585-4743-9fbc-9b3cbb8308d5",
"ephemeral_id": "d3b1dad4-f087-4615-9869-f2117ecce5ee",
"type": "apm-server",
"version": "8.4.0"
},
"@timestamp": "2022-08-15T18:03:00.000Z",
"timeseries": {
"instance": "opbeans-ruby:Api::ProductsController#index:68f1a987bd63d526"
},
"ecs": {
"version": "1.12.0"
},
"service": {
"node": {
"name": "b2f7a1658b1d0df18aaab5dd5b9c3d43b2572c957386ea39c13e6c9af3fa0803"
},
"environment": "production",
"name": "opbeans-ruby",
"runtime": {
"name": "ruby",
"version": "2.7.3"
},
"language": {
"name": "ruby",
"version": "2.7.3"
},
"version": "2022-07-25 13:32:58 - 8.4.0-d0a4da44"
},
"data_stream.dataset": "apm.internal",
"host": {
"hostname": "opbeans-ruby-6bbf777f6b-bqnvp",
"os": {
"platform": "linux"
},
"name": "opbeans-ruby-6bbf777f6b-bqnvp"
},
"event": {
"agent_id_status": "missing",
"ingested": "2022-08-15T18:04:16Z",
"outcome": "success"
},
"transaction": {
"result": "HTTP 2xx",
"name": "Api::ProductsController#index",
"type": "request",
"duration.histogram": {
"counts": [
1
],
"values": [
24575
]
}
}
},
"fields": {
"service.node.name": [
"b2f7a1658b1d0df18aaab5dd5b9c3d43b2572c957386ea39c13e6c9af3fa0803"
],
"host.hostname": [
"opbeans-ruby-6bbf777f6b-bqnvp"
],
"transaction.result": [
"HTTP 2xx"
],
"service.language.name": [
"ruby"
],
"cloud.project.name": [
"elastic-observability"
],
"container.id": [
"b2f7a1658b1d0df18aaab5dd5b9c3d43b2572c957386ea39c13e6c9af3fa0803"
],
"cloud.availability_zone": [
"us-central1-c"
],
"processor.event": [
"metric"
],
"agent.name": [
"ruby"
],
"host.name": [
"opbeans-ruby-6bbf777f6b-bqnvp"
],
"event.agent_id_status": [
"missing"
],
"event.outcome": [
"success"
],
"service.environment": [
"production"
],
"_doc_count": [
1
],
"service.name": [
"opbeans-ruby"
],
"cloud.region": [
"us-central1"
],
"data_stream.namespace": [
"default"
],
"service.runtime.name": [
"ruby"
],
"processor.name": [
"metric"
],
"service.runtime.version": [
"2.7.3"
],
"data_stream.type": [
"metrics"
],
"observer.hostname": [
"5fb9341714ec"
],
"transaction.duration.histogram": [
{
"counts": [
1
],
"values": [
24575
]
}
],
"transaction.type": [
"request"
],
"metricset.name": [
"transaction"
],
"cloud.machine.type": [
"projects/8560181848/machineTypes/e2-standard-4"
],
"event.ingested": [
"2022-08-15T18:04:16.000Z"
],
"cloud.provider": [
"gcp"
],
"observer.id": [
"2900af08-5585-4743-9fbc-9b3cbb8308d5"
],
"@timestamp": [
"2022-08-15T18:03:00.000Z"
],
"timeseries.instance": [
"opbeans-ruby:Api::ProductsController#index:68f1a987bd63d526"
],
"observer.ephemeral_id": [
"d3b1dad4-f087-4615-9869-f2117ecce5ee"
],
"service.version": [
"2022-07-25 13:32:58 - 8.4.0-d0a4da44"
],
"observer.version": [
"8.4.0"
],
"host.os.platform": [
"linux"
],
"observer.type": [
"apm-server"
],
"ecs.version": [
"1.12.0"
],
"service.language.version": [
"2.7.3"
],
"data_stream.dataset": [
"apm.internal"
],
"transaction.name": [
"Api::ProductsController#index"
],
"cloud.project.id": [
"8560181848"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment