-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[DOCS-13562] Add resource tag filtering sections to Azure docs #35754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -236,6 +236,20 @@ You can find your Azure metrics in the metrics summary page in the Datadog platf | |||||||
|
|
||||||||
| {{< img src="/getting_started/integrations/azure/GSwAzure_metricExplorer.png" alt="Metric summary image" style="width:100%;" >}} | ||||||||
|
|
||||||||
| ### Resource tag filtering | ||||||||
|
|
||||||||
| Use tag filters to control which Azure resources have their metrics collected by Datadog. A tag filter is a comma-separated list of tags in the form `key:value`. Only resources that match at least one tag in the filter have their metrics collected. | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we add a line here telling users where to configure tag filters?
Suggested change
|
||||||||
|
|
||||||||
| You can use wildcards in your tag filters: | ||||||||
| - `?` matches a single character. | ||||||||
| - `*` matches multiple characters. | ||||||||
|
|
||||||||
| To exclude resources with a given tag, prefix the tag with `!`. Exclusion takes precedence over inclusion. A resource matches the filter if it matches any tag in the list. | ||||||||
|
|
||||||||
| For example: `datadog:monitored,env:production,!plan_tier:basic,instance-type:c1.*` | ||||||||
|
|
||||||||
| This filter collects metrics from resources tagged with `datadog:monitored` or `env:production`, excludes resources tagged with `plan_tier:basic`, and includes resources with an `instance-type` tag matching `c1.*`. | ||||||||
|
|
||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| ## Enable log collection | ||||||||
|
|
||||||||
| You can use the automated log forwarding feature to setup and configure the services and diagnostic settings needed to forward logs to Datadog. If an automated log forwarding control plane already exists in the tenant, this flow modifies it and extends its scope to include the selected subscriptions or management groups. For more detail, see [Azure Automated Log Forwarding Setup][19]. | ||||||||
|
|
@@ -289,6 +303,20 @@ See [Azure Automated Log Forwarding Architecture][34] for more details. | |||||||
|
|
||||||||
| {{% azure-log-archiving %}} | ||||||||
|
|
||||||||
| ### Resource tag filtering | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
|
||||||||
| Use tag filters to control which Azure resources have their logs forwarded to Datadog. A tag filter is a comma-separated list of tags in the form `key:value`. Only resources that match at least one tag in the filter have their logs forwarded. | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same suggestion as above to let users know where these can be configured
Suggested change
|
||||||||
|
|
||||||||
| You can use wildcards in your tag filters: | ||||||||
| - `?` matches a single character. | ||||||||
| - `*` matches multiple characters. | ||||||||
|
|
||||||||
| To exclude resources with a given tag, prefix the tag with `!`. Exclusion takes precedence over inclusion. A resource matches the filter if it matches any tag in the list. | ||||||||
|
|
||||||||
| For example: `datadog:monitored,env:production,!plan_tier:basic,instance-type:c1.*` | ||||||||
|
|
||||||||
| This filter forwards logs from resources tagged with `datadog:monitored` or `env:production`, excludes resources tagged with `plan_tier:basic`, and includes resources with an `instance-type` tag matching `c1.*`. | ||||||||
|
|
||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| ## Get more from the Datadog Platform | ||||||||
|
|
||||||||
| ### Install the Agent for greater visibility into your application | ||||||||
|
|
||||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -71,6 +71,10 @@ The sections below provide instructions for completing each page of the template | |||||
| 1. Review the finalized deployment details. | ||||||
| 2. Click **Create**. | ||||||
|
|
||||||
| ## Resource tag filtering | ||||||
|
|
||||||
| You can use tag filters to control which Azure resources have their logs forwarded to Datadog. For tag filter syntax, wildcard support, and examples, see [Resource tag filtering][16] in the Azure getting started guide. | ||||||
|
|
||||||
| ## Architecture | ||||||
|
|
||||||
| ### Services used | ||||||
|
|
@@ -156,3 +160,4 @@ The script first discovers any instances running in each subscription, then prom | |||||
| [13]: https://learn.microsoft.com/azure/azure-monitor/essentials/diagnostic-settings | ||||||
| [14]: https://app.datadoghq.com/integrations/azure/add?config_azure-new-onboarding=true | ||||||
| [15]: https://learn.microsoft.com/azure/azure-functions/ | ||||||
| [16]: /getting_started/integrations/azure/#resource-tag-filtering-1 | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.