Post custom metrics from nodejs apm agent

Hi!

Is there a way to post custom metrics (other than the existing cpu and mem) from a nodejs apm agent to the apm-server? I'm think of adding a websocket connection tally but can't seem to find anything in the docs: https://www.elastic.co/guide/en/apm/agent/nodejs/current/agent-api.html

Not currently, no. There's no specific timeline for when we might support user-defined metrics.

@stephenbelanger yeah ok. Is there a way I can hack this? I'm thinking just adding a custom key to a transaction payload? Or would that mess up indexing? My elasticsearch skills are weak at best.

No, there's not really a way to do that currently.