elastic / hey-apm

Basic load generation for apm-server built on hey
Apache License 2.0
16 stars 16 forks source link

Feature: add support for replaying indexed events #178

Open axw opened 4 years ago

axw commented 4 years ago

I would like to be able to replay events indexed in Elasticsearch back to APM Server, for more realistic benchmark scenarios.

Given an index pattern (e.g. apm-*) and query (e.g. time range, event type), apm-hey would perform a scroll search, and translate the documents back into events suitable for sending to APM Server. It would then run the test as usual.

Alternatively, we could provide a separate tool for doing the search and translation to the ND-JSON event intake format, and then store these as "testdata" in the repo.