How to use relabeling in Prometheus and VictoriaMetrics



Prometheus supports relabeling, which allows performing the following tasks:



⚡️ Adding new label



⚡️ Updating existing label



⚡️ Rewriting existing label



⚡️ Updating metric name



⚡️ Removing unneeded labels



⚡️ Removing unneeded metrics



⚡️ Dropping metrics on certain condition



⚡️ Modifying label names



⚡️ Chaining relabeling rules



Lets’ looks at how to perform each of these tasks. Читать дальше.