temporal icon indicating copy to clipboard operation
temporal copied to clipboard

Possibility to exclude metrics tags when emitting metrics?

Open wxing1292 opened this issue 3 years ago • 3 comments

tagsToMap is invoked everything when emitting counter / timer e.g.

consider exclude the unwanted tags when exporting the metrics to e.g. prometheus, instead of during metrics generation, like ^

wxing1292 avatar Jun 23 '22 07:06 wxing1292

The tagsToMap would exclude the tags listed in excludeTags by replacing them as const value. Not sure what the suggestion here is? The excludeTags also has whitelist of values that can be included, not sure how useful it is.

yiminc avatar Jun 23 '22 15:06 yiminc

Can we execute the exclusion logic when exporting the metrics to e.g. premetheus? instead of doing <- this logic every time when increasing a counter.

wxing1292 avatar Jun 23 '22 15:06 wxing1292

sample pic which shows that tagsToMap function may create too many objects image

wxing1292 avatar Jun 25 '22 00:06 wxing1292