Lab 2 - Transforming Telemetry
In this lab, you'll learn the basics of transforming telemetry.
📄️ 2.1. Relabeling metrics
While we've used relabeling in the context of service discovery, it is also useful for manipulating scraped metrics. This allows us to perform operations like drop metrics, drop labels, combine labels, etc. This is the equivalent of metricrelabelconfigs in Prometheus. We'll look at a few examples with the metrics we've collected.
📄️ 2.2. Using OpenTelemetry Processors
Switching signals to traces, Grafana Alloy supports many of the components of the OpenTelemetry Collector. This includes commonly used processors such as transform or filter. We already have a batch processor in our traces pipeline, so in this lab we'll add a transform processor to modify trace spans.