Filter Service by environment


Unless i have missed the way to do this, it seems that there is no simple way to filter Service by environment in APM. I have only been able to filter using discover.
It would be nice to be able to add filters in the same way we can do on Dashboards and Visualizations, so i could filter out production environment data from development data.
Is there a way to do this or is it planned in future versions?

(Ron Cohen) #2

Hi cmoi!

Thank you for your interest in Elastic APM.
Filtering by environment is definitely on our radar and something we've discussed doing.
I can't give you any timeline unfortunately.

Your best bet in the mean-time is simply to append the environment name to the name of the service when you specify it in the agent configuration. For example, for Node.js (untested):

var apm = require('elastic-apm-node').start({
  serviceName: 'myservice' + process.env.NODE_ENV,

Hope that helps!



Thank you roncohen,

I will do that in settings for Django in my case:

    'SERVICE_NAME': 'myservice-development',
    'ENVIRONMENT': 'development',

(system) #4

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.