APM (Dotnet) Agent support for arrays in Global Labels


in order to be able to give granular access to different teams for APM services, we would like to add an extra field that could be used in the document privileges of a user role.
I thought that "Global Labels" could be a solution, but I'm unable to add array-like values because the delimiter is a comma.

So, teams=team1,team2 is not possible but also teams="team1,team2" fails or any other form.

There is already a long open github issue for this, but it seems to be sleeping: Support array of strings as a value for tags/labels · Issue #82 · elastic/apm · GitHub

Now I'm adding service.name in the document privileges this way:

{"bool": {
      "should" : [
        { "term" : { "service.name" :

Because services are added frequently, this is a lot of manual work updating the role every time.

Or is there another solution to give automatic access to teams based on labels or other fields?

Kibana version: 7.15.0

Elasticsearch version: 7.15.0

APM Server version: 7.15.0

APM Agent language and version: Dotnet 1.11.1

1 Like

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