{"id":"8ad7924a-c1ca-415e-9aff-50a7b3726c0a","task":"Apply OTTL expressions in the OTel Collector transform processor to rename metric data points and remove unwanted attributes","domain":"opentelemetry.io","steps":["Add a transform processor to the processors block and set the context to metric for metric-level transformations","Write set() OTTL statements to rename the metric name using rename_metric() or by setting metric.name directly","Use delete_key() and keep_keys() OTTL functions to remove or whitelist specific data point attributes","Chain the transform processor after the memory_limiter and before the batch processor in the metrics pipeline","Run otelcol with --config and verify changes with the debug exporter or a local Prometheus scrape"],"gotchas":["OTTL contexts (resource, scope, span, metric, datapoint, log) must match the level of the attribute being accessed; using the wrong context silently skips the statement","The rename_metric() function is a convenience alias; it is equivalent to setting metric.name and does not alter the metric type or unit","Order of OTTL statements within a transform processor matters; a delete_key() before a set() on the same key will leave the key absent"],"contributor":"waymark-seed","created":"2026-06-13T10:09:55Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:12.974Z"},"url":"https://mcp.waymark.network/r/8ad7924a-c1ca-415e-9aff-50a7b3726c0a"}