Hi All,
I am trying to push my OS performance details to the APM server.
I am trying to use python modules to do it.
I am referring the docs https://www.elastic.co/guide/en/apm/agent/python/5.x/instrumenting-custom-code.html
Me not an expert in python, but like to do the APM for the OS using python
Is there any other docs on pushing the OS parameter to the APM server
thanks
Joseph John
Kibana version:
7.3.1 Elasticsearch version:
7.3.1 APM Server version:
7.3.1 APM Agent language and version:
want to use elasticsearch python modules [pip install elastic-apm ] to push my OS details to the APM server Browser version:
Firefox 69 Original install method (e.g. download page, yum, deb, from source, etc.) and version:
deb Fresh install or upgraded from other version?
Fresh Is there anything special in your setup? For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.
No
Hi Beni,
Thanks for the reply
What I am aiming is to use apm python modules to collect the information of the OS (CPU activity, memory, and the dmesg messages to the APM.
Why I want to try out it using python apm modules?. Because I want to understand how it works and how I can master python and later graduate in creating steps for APM for Python Applications which are not supported now. So with out using ‘MetricBeat’ I have to do this.
This is more a part of studying and trying to understand and if I am good I can be usefull for making Python applications work with APM .
I have checked the links
With my limited python exposure, I am finding difficulty , so I thought I will start some thing simple ie write a small program to push OS details (linux) to the APM
So any help for me to get started is higly appreciated
thanks
Joseph John
You certainly decided to dive into the deep end for mastering python, as what we do in the Python agent tends to be very "meta" and hard to grok. Good luck!
The biggest "problem" is that collecting metrics in our agent is fairly new functionality -- historically we have avoided duplicating functionality that Metricbeat already does much better and more efficiently than we could. So far we only collect a few metrics, and don't have a good story in place for defining custom metrics. (Hopefully in the future it will be as easy as creating custom framework integrations, but today, that all revolves around transaction tracing, not system metrics)
I'd recommend you open an issue so we can discuss more about the possibility of adding these types of custom metrics in the future.
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.