Slide 8 of 14

Attribute matching

Attribute matching

Attribute matching is the mechanism that connects pipelines to collectors. When you create a pipeline, you define matchers, which are rules that specify which collectors should receive that pipeline based on their attributes.

Matchers determine which collectors receive a pipeline.

Attribute matching connects pipelines to collectors

How matchers work

You define…To target…
env=productionAll collectors with env attribute set to production
region=~"us-.*"All collectors in any US region

Matcher syntax

OperatorMeaningExample
=Equalsenv=production
!=Not equalsenv!=development
=~Regex matchregion=~"us-.*"
!~Regex not matchteam!~"test-.*"

Matching rule: AND logic

All matchers must match for a collector to receive a pipeline.

Matchers definedCollector receives pipeline if…
env=prodenv is prod
env=prod, region=us-eastenv is prod AND region is us-east

Script

Attribute matching is how you tell Fleet Management which collectors should receive a pipeline. It’s inspired by Prometheus Alertmanager’s matcher syntax, so if you’ve used that before, this will feel familiar.

A matcher has three parts: an attribute name, an operator, and a value. The operators are equals, not equals, regex match, and regex not match. For example, “env equals production” or “region matches us-dash-star.”

When you assign matchers to a pipeline, Fleet Management uses AND logic—all matchers must match for a collector to receive the pipeline. So if you have matchers for env equals production AND region equals us-east, a collector needs both attributes to get that pipeline.

This AND logic is important to understand. It means you can be very precise about which collectors receive a configuration. The more matchers you add, the narrower your targeting becomes.