Some of the logic in kube_state_processor (https://github.com/DataDog/dd-agent/blob/5.11.3/utils/kubernetes/kube_state_processor.py) can be generalized to all checks using the prometheus format.
This issue covers several points:
- we should move the k8s-specific part to integration-core. This would allow us to add new metrics/tags without releasing a new version of the core agent
- the generic methods (
process, init and label-related ones) should be kept, generalized (remove kubernetes mentions) and extended with more helpers ( see @ojongerius note for example https://github.com/DataDog/dd-agent/pull/3185/files#r103859112)