Forward Analytics Metrics to OpenTelemetry Collector
How to forward Analytics Metrics to OpenTelemetry Collector.
Follow the steps in this guide to set up an NGINX Controller integration that forwards metrics to OpenTelemetry Collector.
This guide assumes that you already have a working instance of any OpenTelemetry Collector.
You will also need to Create an Integration for your OpenTelemetry Collector forwarder.
Take the following steps to create a forwarder for OpenTelemetry Collector:
- Open the NGINX Controller user interface and log in.
- Select the NGINX Controller menu icon, then select Platform.
- On the Platform menu, select Data Forwarders.
- On the Data Forwarders menu, select Create Data Forwarder.
- Add a name.
- (Optional) Add a display name.
- (Optional) Add a description.
- Select your Integration Reference from the dropdown list, or select Create New to create a new integration.
- In the Collector Type list, select
- In the Source list, select the type of data to forward:
- In the Output Format list, select
- The Selector field consists of the following query parameters (optional):
names: The list of metrics names that you want to forward.
excluded_names: The list of metric names that you don’t want to forward.
filter: The conditions to use to refine the metrics data.
- Example usage when selecting metrics:
- (Optional) Select Add Stream to add additional streams, as needed.
Each metric is prefixed with a common namespace – for example, “nginx-controller” – before it’s sent to OpenTelemetry Collector. This prefix is used only by OpenTelemetry Collector and is not applied to any internal NGINX Controller metrics. Refer to the metrics catalog for the full list of valid metric names.
We have tested compatability with OTLP collector v0.33.0. We will most likely support versions higher than this, assuming backwards compatability from OTLP.
See the NGINX Controller Metrics docs for more information.
- Refer to Troubleshooting Forwaders for tips on resolving common issues.