Project

General

Profile

Feature #54403

Updated by Ernesto Puerta about 2 years ago

In order to reduce the size speed up C-to-Python serialization of volume of perfcounters in prometheus/telemetry, perfcounters, a new parameters @allowlist@ is flag-like field "tag" will be added to the perfcounters. Multiple tags can be added to a perfcounter. 

 The goal is 'tagging' each perfcounter by its intended consumer (i.e.: Prometheus, Telemetry, ...). This would allow every mgr API @get_all_perf_counters()@. module to cherry-pick which metrics they want to receive and avoid wasting resources serializing metrics that are of no use. 

 Another benefit of adding tags in the core (instead of passing an allow-list from Python to the mgr API) is that it makes explicit to other devels that a given perfcounter is used by a mgr module, and avoids unintentional renaming/deprecation.

Back