apm icon indicating copy to clipboard operation
apm copied to clipboard

Support centrally defined service labels

Open axw opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe.

Users sometimes have a need to specify additional labels for instrumented services, e.g. the organisation/department/team which owns the service.

At the moment it is only possible to specify global labels locally to each agent, i.e. by setting the ELASTIC_APM_GLOBAL_LABELS environment variable or language-specific equivalents (system properties, etc.)

Describe the solution you'd like

We should be able to define a mapping of service.name to global labels through agent central config. e.g. https://discuss.elastic.co/t/setup-global-labels-in-remote-apm-agent-configuration/328112

Describe alternatives you've considered

Users could attach additional labels by customising the APM ingest pipelines.

axw avatar Mar 21 '23 01:03 axw

Thank you @axw for this request I have more than 300 services and more than 800k events per day in APM, I'm a bit worry about applying ingest pipeline to all of them based on a condition through service name 🤔

barcus avatar Mar 21 '23 11:03 barcus

@barcus is your concern about the manageability aspect, or performance? 800K events/day is ~9 events/second, so I don't think this would be a problem for an ingest pipeline to manage.

axw avatar Mar 22 '23 02:03 axw

@axw the performance, but I did a mistake, there are about 800 millions per day !

barcus avatar Mar 22 '23 07:03 barcus