Skip to content

Commit e1d7896

Browse files
domalessizhuminyi
andauthored
CONTP-705 (#28886)
* add check_tag_cardinality * Update content/en/getting_started/integrations/_index.md * formatting tweaks --------- Co-authored-by: Minyi Zhu <[email protected]>
1 parent d768291 commit e1d7896

File tree

1 file changed

+15
-2
lines changed
  • content/en/getting_started/integrations

1 file changed

+15
-2
lines changed

content/en/getting_started/integrations/_index.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,25 @@ For example, setting `service` in your config file is the recommended [Agent set
100100

101101
To better unify your environment, it is also recommended to configure the `env` tag in the Agent. To learn more, see [Unified Service Tagging][27].
102102

103-
By default, the metrics reported by integrations include tags autodiscovered from the environment. For example, the metrics reported by a Redis check that runs inside a container include tags that refer to the container, such as `image_name`. You can turn this behavior off by setting the `ignore_autodiscovery_tags` parameter to `true`:
103+
#### Per-check tag configuration
104+
You can customize tag behavior for individual checks, overriding the global Agent-level settings:
105+
106+
1. **Disable Autodiscovery tags**
107+
108+
By default, the metrics reported by integrations include tags automatically detected from the environment. For example, the metrics reported by a Redis check that runs inside a container include tags associated with the container, such as `image_name`. You can turn this behavior off by setting the `ignore_autodiscovery_tags` parameter to `true`.
109+
110+
1. **Set tag cardinality per integration check**
111+
112+
You can define the level of tag cardinality (low, orchestrator, or high) on a per-check basis using the `check_tag_cardinality` parameter. This overrides the global tag cardinality setting defined in the Agent configuration.
113+
104114
```yaml
105115
init_config:
106-
116+
# Ignores tags coming from autodiscovery
107117
ignore_autodiscovery_tags: true
108118
119+
# Override global tag cardinality setting
120+
check_tag_cardinality: low
121+
109122
# Rest of the config here
110123
```
111124

0 commit comments

Comments
 (0)