Reduce cardinality on built-in metrics #6332
Replies: 2 comments 10 replies
-
Here's an example of a potential approach you could use from something I added to a personal application of mine: code. In my case I'm adding a cosmetic "display name" with The core functionality is to configure |
Beta Was this translation helpful? Give feedback.
-
You can use Views to drop a tag completely, but there isn't anything that allows injecting the custom logic you want. There is some work in OTel spec to add a concept of "measurement-processor", which would likely allow a hook to customize the tag/attribute values. Sorry, no better solution as of now. If you end up finding some way around, do post back. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there !
We're currently developing a multi-tenant app (up to 1k tenants per app instance). Each tenant is bound to a dns (tenantX.ourapp.com). Therefore, as we use built-in metrics from httpclient, we see a high cardinality as we have a lot of server.address values.
Is there a way to aggregate at the source ?
Ideally, we'd like to replace the values tenant1.ourapp.com, tenant2.ourapp.com, etc. by a placeholded value : {tenant}.ourapp.com
Beta Was this translation helpful? Give feedback.
All reactions