---
title: "Matching in practice | Grafana Labs"
description: "Common patterns and examples for attribute matching"
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

## Common patterns

| Pattern               | Matcher examples                              |
|-----------------------|-----------------------------------------------|
| **Environment-based** | `env="production"`, `env="staging"`           |
| **Region-based**      | `region="us-east"`, `region="eu-west"`        |
| **Team-based**        | `team="platform"`, `team="backend"`           |
| **Catch-all**         | `collector.os=~".+"` (matches all collectors) |

## Example: Production platform pipeline

![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```none
Matchers: env=~"prod-.*", team="platform"
```

This pipeline applies to collectors where:

- `env` matches the regex `prod-.*` **AND**
- `team` equals `platform`

## Limits to know

| Limit                          | Value                                       |
|--------------------------------|---------------------------------------------|
| Matcher length                 | 200 characters max (key + operator + value) |
| Local attributes per collector | 22 max when polling                         |
