RUM Relabel Rules
RUM relabel rules run on every incoming RUM event — views, actions, resources, errors, long tasks, and vitals — before Kloudfuse stores it. Use them to drop events from test environments or synthetic traffic and to add labels. For the rule fields, actions, and evaluation order, see How Relabel Rules Work.
Configure the rules
Add the rules to ingester.config.rum.relabelConfigs in your custom-values.yaml file:
ingester:
config:
rum:
relabelConfigs:
- source_labels: [env]
regex: "dev|test"
action: drop
Then apply the change:
helm upgrade --install kfuse oci://us-east1-docker.pkg.dev/mvp-demo-301906/kfuse-helm/kfuse \
-n kfuse \
--version <VERSION> \ (1)
-f custom-values.yaml
| 1 | Replace <VERSION> with a valid Kloudfuse release value. See Release Notes for the latest release. |
Labels the rules see
Rules see the event’s RUM attributes, under their original dotted names. Write them in source_labels exactly as shown:
| Group | Attributes |
|---|---|
Application |
|
Session and user |
|
View |
|
Browser and device |
|
Location |
|
Event type |
Actions add |
Labels added by an ingestion API key are also visible. Rules can match these labels but cannot change them.
The application ID is not one of the labels, so a rule cannot match on it. To separate applications, match service, or send each application with its own ingestion API key and match the labels the key adds.
Examples
Each example shows a single rule. You can list as many rules as you need; they run in order.
Drop events from test environments
Stop storing RUM events from the dev and test environments:
- source_labels: [env]
regex: "dev|test"
action: drop
Check the result
RUM events dropped by a rule appear in the Consumption Tracking dashboard with the drop reason relabel.