How do you emit trace spans from OpenSearch

0

How do you configure AWS OpenSearch to emit trace spans for e.g. Datadog APM or AWS X-Ray?

(Note this question is NOT about getting traces into OpenSearch.)

Florian
asked a year ago246 views
2 Answers
0

Hi, Thanks for reaching out to us. Amazon OpenSearch does export its metrics to Cloudwatch, and 3rd party services (like Datadog) can read from Cloudwatch metrics. So you can configure the datadog to read those metrics. You have to check which metrics they are interested in monitoring. Heres the list of available ones: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-cloudwatchmetrics.html

Please note that CloudWatch will charge for extra API calls (like metrics reads, dashboards, alarms, etc) so if the 3rd party tool keeps polling CloudWatch API constantly for Opensearch metrics, you will be charged accordingly.

Thank you!

answered a year ago
  • Thanks for your answer. However, I was not asking about metrics. I was asking if AWS OpenSearch can emit distributed trace data, e.g. for AWS X-Ray. I want to be able to see how much OpenSearch contributes to the latency of individual requests.

    Can AWS OpenSearch emit the necessary span data to import and display in a distributed trace like in AWS X-Ray?

0

Hi,

Thanks for reaching back. Please note that AWS OpenSearch unfortunately does not have the feature to emit trace data directly. However you can view the latency by the cloudwatch metrics like SearchLatency [1]. This can be visualized using Datadog but not AWS X-ray.

Thank you!

References


https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-cloudwatchmetrics.html#managedomains-cloudwatchmetrics-instance-metrics
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions