All good
This is an example of a nonheap document:
{
"_index": "metricbeat-2020.03.30",
"_type": "_doc",
"_id": "v4BQKXEBGpOTx6FYOGo2",
"_version": 1,
"_score": null,
"_source": {
"@version": "1",
"agent": {
"version": "7.6.1",
"type": "metricbeat",
"id": "5b1bd7dd-a898-4462-82e8-3f1aece57a1a",
"hostname": "bba233076a95",
"ephemeral_id": "5daad9a9-49e2-489c-9b38-e3a8eeed95ff"
},
"service": {
"type": "prometheus",
"address": "rpcnode:9545"
},
"event": {
"module": "prometheus",
"dataset": "prometheus.collector",
"duration": 7623138
},
"prometheus": {
"metrics": {
"jvm_memory_bytes_max": -1,
"jvm_memory_bytes_committed": 72376320,
"jvm_memory_bytes_used": 68069744,
"jvm_memory_bytes_init": 7667712
},
"labels": {
"instance": "rpcnode:9545",
"job": "prometheus",
"area": "nonheap"
}
},
"type": "metricbeat",
"@timestamp": "2020-03-30T02:40:54.727Z",
"metricset": {
"period": 15000,
"name": "collector"
},
"ecs": {
"version": "1.4.0"
},
"host": {
"name": "bba233076a95"
}
},
"fields": {
"@timestamp": [
"2020-03-30T02:40:54.727Z"
]
},
"sort": [
1585536054727
]
}
The field Im intrested in is prometheus.metrics.jvm_memory_bytes_used and the second field to sort is prometheus.labels.area == "nonheap"
The heap memory documents are the same, with the exception of the labels.are = heap
{
"_index": "metricbeat-2020.03.30",
"_type": "_doc",
"_id": "xIBQKXEBGpOTx6FYOGo2",
"_version": 1,
"_score": null,
"_source": {
"@version": "1",
"agent": {
"type": "metricbeat",
"version": "7.6.1",
"id": "5b1bd7dd-a898-4462-82e8-3f1aece57a1a",
"hostname": "bba233076a95",
"ephemeral_id": "5daad9a9-49e2-489c-9b38-e3a8eeed95ff"
},
"service": {
"type": "prometheus",
"address": "rpcnode:9545"
},
"event": {
"module": "prometheus",
"dataset": "prometheus.collector",
"duration": 7730852
},
"prometheus": {
"metrics": {
"jvm_memory_bytes_max": 8355053568,
"jvm_memory_bytes_committed": 832569344,
"jvm_memory_bytes_used": 470165304,
"jvm_memory_bytes_init": 522190848
},
"labels": {
"instance": "rpcnode:9545",
"job": "prometheus",
"area": "heap"
}
},
"type": "metricbeat",
"@timestamp": "2020-03-30T02:40:54.727Z",
"metricset": {
"period": 15000,
"name": "collector"
},
"ecs": {
"version": "1.4.0"
},
"host": {
"name": "bba233076a95"
}
},
"fields": {
"@timestamp": [
"2020-03-30T02:40:54.727Z"
]
},
"sort": [
1585536054727
]
}
And I would like to graph the difference of the two values, I think Timelion may be my only option here?