Hi Team,
Am new to elastic and trying to explore elastic apm and its capabilities..So is there a way to export data from elastic apm via rest api or something?
Regards,
Gopikrishnan
Hi Team,
Am new to elastic and trying to explore elastic apm and its capabilities..So is there a way to export data from elastic apm via rest api or something?
Regards,
Gopikrishnan
Hi Gopikrishnan!
If you have APM set up with an agent in your app, APM Server and Elasticsearch, you can access the data just like would with any data in Elasticsearch. The APM data is, in the end, just documents in Elasticsearch.
Elasticsearch provides a REST api, see https://www.elastic.co/guide/en/elasticsearch/reference/current/rest-apis.html
Hope it helps!
Hi @mikker
how can I get total request count and response time from of a request for a last hour directly via rest api since in document in elastic search i will have to check multiple documents for last hour and aggregate.
@gopikrishnan there is no REST API to query those metrics directly; you'll need to query the underlying data, using Elasticsearch queries, as a combination of search & aggregation.
You may find the dashboards useful, as a source of inspiration for forming those queries: https://github.com/elastic/apm-contrib/tree/master/kibana/7.x
Dear Andrew,
Thanks for the update. We will check on this and update
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.