To transform your metrics (for instance, through batching, filtering, or relabeling) prior to export, you must attach a processor to the relevant pipeline. This pipeline is generated during exporter registration, you must add the exporter first before linking the processor.
-
Exporting and verifying to create its pipeline. To export and verify, see the
Exporting and verifying
documentation.
-
Configure the processor and add it to that exporter's pipeline
./obs-cli.sh add-processor --file processor.yaml --exporter
prometheusremotewrite/partner
processor.yaml:
batch/partner:
timeout: 5s
-
If the processor is already defined in your configuration, link it without
providing a file ./obs-cli.sh add-processor --processor batch/partner
--exporter prometheusremotewrite/partner
Linking requires the exporter's pipeline to already exist. You must run the
add-exporter command first. To update or remove, run the following command for
help update-processor or remove-processor (./obs-cli.sh
remove-processor --help)