I am trying to make an agent using the intake API, for the language that our company uses. I was able to successfully find a way to gather the memory usage in our language but when I send the data down to apm, the data does not show on Kibana.
And here is an example of the JSON I am sending:
{"metricset": {"samples": {"system.memory.total": {"value": 2147483647}, "system.memory.used.bytes": {"value": 1116691496}}, "timestamp": 1568813856000000}}
{"metricset": {"samples": {"system.memory.total": {"value": 2147483647}, "system.memory.used.bytes": {"value": 1116691496}}, "timestamp": 1568813856000000}}
{"metricset": {"samples": {"system.memory.total": {"value": 2147483647}, "system.memory.used.bytes": {"value": 1116691496}}, "timestamp": 1568813857000000}}
{"metricset": {"samples": {"system.memory.total": {"value": 2147483647}, "system.memory.used.bytes": {"value": 1116691496}}, "timestamp": 1568813857000000}}
And here is an example of the CPU usage that I am successfully sending as a reference of a working send:
{"metricset": {"samples": {"system.process.cpu.total.norm.pct": {"value": 0}}, "timestamp": 1568905657000000}}
{"metricset": {"samples": {"system.process.cpu.total.norm.pct": {"value": 0}}, "timestamp": 1568905657000000}}
{"metricset": {"samples": {"system.process.cpu.total.norm.pct": {"value": 0}}, "timestamp": 1568905658000000}}
{"metricset": {"samples": {"system.process.cpu.total.norm.pct": {"value": 0}}, "timestamp": 1568905658000000}}
The APM UI currently only shows the system memory, but it requires both system.memory.total and system.memory.actual.free, and will not show the memory metrics if either of those are missing.
Are you able to share any details about the agent you're writing - which language, and whether you intend to release it as open source?
We are writing in Delphi, which is the object oriented version of pascal. It is compatible with Delphi 5 and up. I don't know how beneficial it would be to the public, as it is a lesser used language but I can check for clearance from within our company.
We are writing in Delphi, which is the object oriented version of pascal. It is compatible with Delphi 5 and up. I don't know how beneficial it would be to the public, as it is a lesser used language but I can check for clearance from within our company.
@axw Yes we did see this! This was the foundation that we built our application off of. The Delphi agent written by this member did not support early versions of Delphi and we are on Delphi 5, so we had to adjust this to be workable with our applications. Also it was missing metric data entirely, which we have now implemented in full. The agent also seemed to be built on an old iteration of the intake API. Some tags were missing and others were there that no longer exist in the API.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.