The Pipeline Control gateway UI provides a form-based interface for creating and managing gateway rules without writing YAML directly. The UI organizes processing logic into three rule categories: sample rate, drop rules, and transformations. Each category is configurable through guided modal dialogs.
UI organization
The gateway UI is organized into three main sections:
Sample rate
Configure probabilistic sampling with conditional rules to control what percentage of telemetry data reaches New Relic. Supports:
- Default sampling percentage (0-100%)
- Conditional sampling scenarios based on attribute matching
Common use cases:
- "Sample 90% of B service logs, 83% of A service logs"
- "Keep 100% of errors, 100% of traces >1000ms, sample 10% of remaining"
Drop rules
Create OTTL-based filter rules to conditionally drop entire telemetry records or specific attributes. Supports:
- Pattern matching with
matchesoperator for regex - Attribute-based filtering (environment, metric name, log level)
- Combined conditions with
and/orlogic - Comparison operators (
==,!=,>,<,>=,<=)
Common use cases:
- "Drop test environment data"
- "Drop debug-level logs in production"
- "Remove health check spans"
- "Drop metrics with test prefix"
Transformations
Define OTTL-based transformation rules to modify, enrich, or parse telemetry data. Supports:
- Attribute addition and modification using OTTL functions
- String parsing with regex patterns
- Conditional transformations with matching rules
- Multiple OTTL statements per transformation
Common use cases:
- "Add environment and region tags to all metrics"
- "Parse NGINX log format into structured attributes"
- "Normalize service names across environments"
- "Extract HTTP status codes from log messages"
Create rules in the UI
Creating a sample rate rule
In the gateway UI, in the sample rate block, click the gear/settings icon to create a new sampling configuration.
Configure global sampling:
- Set the global sampling percentage (0-100%).
- Use the slider or enter a numeric value. This applies to all data that doesn't match conditional rules.
Add conditional scenarios (optional):
- Click PLUS icon to create condition-specific sampling rates.
- For each scenario, configure: A descriptive name (for example, "
B service sample"), a description (for example, "B service description"), an attribute-matching expression (for example,attributes["appName"]=="TelemetryApp-ServiceB"), a sampling percentage using the slider or enter a numeric value (0-100%)
Click Save sample criteria to apply sampling rules.
Create a filter rule
- In the gateway UI, click the PLUS icon in the filter block to create a new filter rule.
- Configure basic information:
- Rule name: Enter a descriptive name.
- Description: Explain what the rule does.
- Define a condition to match your data and click Create rule.
- To add more conditions as required, repeat steps 1-3.
Create a transformation rule
In the gateway UI, click the PLUS icon in the transformations block to create a new transformation rule.
Configure basic information:
- Rule name: Enter a descriptive name (for example, "parse-nginx-logs")
- Description: Explain what the transformation does
Define conditions to match your data:
- Add conditions to target specific telemetry records.
- Click Add condition to add multiple conditions:
Multiple conditions are evaluated with OR logic (if any condition matches, the transformation applies). Example conditions:
body == "request failed",severity.text == "ERROR",severity.text == "FATAL_ERROR"Leave empty to apply transformation to all records. Each condition is shown in a separate input field with theORoperator between them.Define OTTL statements:
- Add one or more OTTL transformation statements.
- Click Add statement to add multiple transformations.
- Each statement executes in sequence. Change the order by dragging the handle on the left of each statement.
- Example statements using OTTL functions:
set(severity_text, "FAIL"),set(attributes["processors"], true),set(attributes["environment"], "staging")
Click Preview rule to see how the transformation modifies sample data.
Make changes until you are satisfied with the transformation.
Click Create rule to add the transformation to your gateway.
Deploy your changes
After you have configured the rules, follow these steps to deploy your configuration:
- Click Create Deployment.
- On the new deployment page:
- Enter a name and description for the deployment.
- Identify the Pipeline Control gateway agent that you want to deploy to.
- Open the dots menu on the right, and click Change version.
- From the list of versions, select the version that corresponds to the configuration you just created. (The version numbers increment automatically with each configuration change, so it should be the latest version.)
- Click Add to deployment to apply the configuration.
- Click Save draft, and then click Start deployment.
- You have to again confirm that you want to start the deployment. Click Start deployment again to confirm.
OpenTelemetry resources
- OTTL functions reference - Complete list of OTTL functions for transformations and boolean expressions for filtering
- Transform processor - Official transform processor documentation
- Filter processor - Official filter processor documentation with OTTL boolean expression syntax
- Probabilistic sampler processor - Official sampling processor documentation