-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Docs11702/agent metrics filtering #30892
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4185331
[DOCS-11702] Add custom metrics filtering guide
buraizu efbe004
[DOCS-11702] Add custom metrics filtering guide images
buraizu 8816b99
[DOCS-11702] Remove placeholder text
buraizu 3e33d0e
[DOCS-11702] Update preview banner
buraizu e0c0dcd
[DOCS-11702] Incorporate feedback
buraizu 1d188a1
[DOCS-11702] Update copy, visual resources
buraizu bafa99a
[DOCS-11702] Add visual resources
buraizu 0b21cff
[DOCS-11702] Unify tab name
buraizu 77b3c8c
[DOCS-11702] Fix list numbering
buraizu b30e08d
[DOCS-11702] Incorporate feedback
buraizu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
189 changes: 189 additions & 0 deletions
189
content/en/metrics/guide/agent-filtering-for-dogstatsd-custom-metrics.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,189 @@ | ||
|
||
--- | ||
title: Agent-Side Filtering for DogStatsD Custom Metrics | ||
private: true | ||
further_reading: | ||
- link: "/metrics/custom_metrics/" | ||
tag: "Documentation" | ||
text: "Learn more about Custom Metrics" | ||
- link: "/account_management/billing/custom_metrics/?tab=countrate" | ||
tag: "Documentation" | ||
text: "Custom Metrics Billing" | ||
- link: "/metrics/metrics-without-limits/" | ||
tag: "Documentation" | ||
text: "Metrics without Limits™" | ||
- link: "/metrics/volume/" | ||
tag: "Documentation" | ||
text: "Metrics Volume Management" | ||
- link: "https://www.datadoghq.com/blog/custom-metrics-governance/" | ||
tag: "Blog" | ||
text: "Best practices for end-to-end custom metrics governance" | ||
--- | ||
|
||
{{< callout url="https://www.datadoghq.com/" btn_hidden="true" header="false" >}} | ||
Agent-side filtering for DogStatsD custom metrics is in Preview. | ||
{{< /callout >}} | ||
|
||
## Overview | ||
|
||
Agent-side filtering enables you to filter out unused or unwanted DogStatsD custom metrics directly at the Datadog Agent, before sending them to Datadog. This can significantly reduce both indexed and ingested custom metric volume. | ||
|
||
Filtering is performed at the Agent level but centrally managed through the Datadog UI, giving teams full visibility and control. You can create, update, and manage filtering policies in Datadog, streamlining metric governance while maintaining transparency. | ||
|
||
## Create a metric filtering policy | ||
|
||
You can create a metric filtering policy from the [Metrics Settings page][1] or the [Metrics Summary page][2]. | ||
|
||
### From the Metrics Settings page | ||
|
||
1. Click **+ Create Policy**. | ||
2. Click **Filter metrics**. | ||
3. Provide a description for the new policy. | ||
4. Select the metrics to filter from the **Metrics to Filter** dropdown, or click **Upload CSV**. | ||
- If you choose to upload a CSV, select the file and click **Open**. You can use multiple CSVs to create the policy. | ||
5. When you're satisfied with the list of metrics to filter, click **Save and Filter**. | ||
|
||
### From the Metrics Summary page | ||
|
||
Create a metric filtering policy from the Metrics Summary page using any of the following methods: | ||
|
||
{{< tabs >}} | ||
{{% tab "From a metric query" %}} | ||
|
||
1. Enter a metric query in the search bar. | ||
2. Click the three vertical dots button on the right-hand side of the screen. | ||
3. Click **Filter metrics**. | ||
4. In the **Choose policy** dropdown, click **New Policy**. Provide a description for the policy. | ||
5. Review the **Metrics to Filter**. Click `X` on the right side of any row to remove a metric from the list, or click `+ Include More Metrics` to add metrics to the list. | ||
6. Click **Save and Filter**. | ||
|
||
{{< img src="metrics/guide/agent_filtering_for_dogstatsd_custom_metrics/create_policy_from_metric_query.mp4" alt="Creating a metric filtering policy from a metric query" video="true" >}} | ||
|
||
{{% /tab %}} | ||
{{% tab "From the policy editor" %}} | ||
|
||
1. Click the three vertical dots button on the right-hand side of the screen. | ||
2. Click **Filter metrics**. | ||
3. In the **Choose policy** dropdown, click **New Policy**. Provide a description for the policy. | ||
4. Enter a metric query in the **Metrics to Filter** field, or select metrics individually from the dropdown. Click `X` on the right side of any row to remove a metric from the list. | ||
5. Click **Save and Filter**. | ||
|
||
{{< img src="metrics/guide/agent_filtering_for_dogstatsd_custom_metrics/create_policy_with_policy_editor.mp4" alt="Creating a metric filtering policy from the policy editor" video="true" >}} | ||
|
||
{{% /tab %}} | ||
{{% tab "From CSV upload" %}} | ||
|
||
1. Click the three vertical dots button on the right-hand side of the screen. | ||
2. Click **Filter metrics**. | ||
3. In the **Choose policy** dropdown, click **New Policy**. Provide a description for the policy. | ||
4. Click **Upload CSV** to the right of the **Metrics to Filter** field. | ||
5. Select the CSV file, and click **Open**. | ||
6. Review the metrics listed. Click `X` on the right side of any row to remove a metric from the list. If needed, upload additional CSV files, or add metrics through the **Metrics to Filter** field. | ||
7. Click **Save and Filter**. | ||
|
||
{{< img src="metrics/guide/agent_filtering_for_dogstatsd_custom_metrics/create_policy_with_csv_upload.mp4" alt="Creating a metric filtering policy with a CSV file upload" video="true" >}} | ||
|
||
{{% /tab %}} | ||
{{< /tabs >}} | ||
|
||
## Edit a metric filtering policy | ||
|
||
You can edit a metric filtering policy from the [Metrics Settings page][1] or the [Metrics Summary page][2]. | ||
|
||
### From the Metrics Settings page | ||
|
||
1. Click the policy to edit. | ||
2. Click **Edit**. | ||
3. Select the metrics to filter from the **Metrics to Filter** dropdown, or click **Upload CSV**. | ||
- If you choose to upload a CSV, select the file and click **Open**. | ||
4. Click **Save and Filter**. | ||
|
||
{{< img src="metrics/guide/agent_filtering_for_dogstatsd_custom_metrics/edit_policy_from_metrics_settings.mp4" alt="Editing a metric filtering policy from the Metrics Settings page" video="true" >}} | ||
|
||
### From the Metrics Summary page | ||
|
||
Edit a metric filtering policy from the Metrics Summary page using any of the following methods: | ||
|
||
{{< tabs >}} | ||
{{% tab "From a metric query" %}} | ||
|
||
1. Enter a metric query in the search bar. | ||
2. Click the three vertical dots button on the right-hand side of the screen. | ||
3. Click **Filter metrics**. | ||
4. In the **Choose policy** dropdown, select the policy to edit. | ||
5. Review the **Metrics to Filter** and **Existing metrics in policy** lists. Click `X` on the right side of any row to remove a metric from the list, or click `+ Include More Metrics` to add metrics to the list. | ||
6. Click **Save and Filter**. | ||
|
||
{{< img src="metrics/guide/agent_filtering_for_dogstatsd_custom_metrics/edit_policy_with_metric_query.mp4" alt="Editing a metric filtering policy with a metric query" video="true" >}} | ||
|
||
{{% /tab %}} | ||
{{% tab "From the policy editor" %}} | ||
|
||
1. Click the three vertical dots button on the right-hand side of the screen. | ||
2. Click **Filter metrics**. | ||
3. In the **Choose policy** dropdown, select the policy to edit. | ||
4. Select metrics individually from the **Metrics to Filter** dropdown. Click `X` on the right side of any row to remove a metric from the list. | ||
5. Click **Save and Filter**. | ||
|
||
{{% /tab %}} | ||
{{% tab "From CSV upload" %}} | ||
|
||
1. Click the three vertical dots button on the right-hand side of the screen. | ||
2. Click **Filter metrics**. | ||
3. In the **Choose policy** dropdown, select the policy to edit. | ||
4. Click **Upload CSV** to the right of the **Metrics to Filter** field. | ||
5. Select the CSV file, and click **Open**. | ||
6. Review the **Metrics to Filter** and **Existing metrics in policy** lists. Click `X` on the right side of any row to remove a metric from the list, or click `+ Include More Metrics` to add metrics to the list. | ||
7. Click **Save and Filter**. | ||
|
||
{{% /tab %}} | ||
{{< /tabs >}} | ||
|
||
## View all policies and filtered metrics | ||
|
||
You can view all your policies and filtered metrics from the [Metrics Settings page][1]. | ||
|
||
**Click on the [settings button][1]**: | ||
|
||
{{< img src="metrics/guide/agent_filtering_for_dogstatsd_custom_metrics/settings_from_summary.png" alt="The settings button on the metric summary page" style="width:100%;" >}} | ||
|
||
**Click on Metrics in the navigation bar** and go straight to settings: | ||
|
||
{{< img src="metrics/guide/agent_filtering_for_dogstatsd_custom_metrics/settings_from_nav.png" alt="The settings option from the expanded Metrics panel in Datadog" style="width:100%;" >}} | ||
|
||
### View all policies | ||
|
||
Select the **Policies** tab from the sidebar to see a list of all your policies. If you don't see the sidebar, click the **Show Sidebar** button {{< img src="metrics/guide/agent_filtering_for_dogstatsd_custom_metrics/show_sidebar.png" alt="The Show Sidebar button" inline="true" >}}. | ||
|
||
Click on any metric filtering policy to open its detail view for edits or deletion. | ||
|
||
### View all filtered metrics | ||
|
||
Select the **Filtered Metrics** tab from the sidebar to see a list of all your filtered. If you don't see the sidebar, click the **Show Sidebar** button {{< img src="metrics/guide/agent_filtering_for_dogstatsd_custom_metrics/show_sidebar.png" alt="The Show Sidebar button" inline="true" >}}. | ||
|
||
Click on a filtered metric's attached policies in the **ATTACHED POLICIES** column for edits or deletion. | ||
|
||
## Delete policies | ||
|
||
You can delete metric filtering policies from the [Metrics Settings page][1]. | ||
|
||
1. Click on the metric filtering policy to delete. | ||
2. Select **Delete** in the top-right corner of the page. | ||
|
||
{{< img src="metrics/guide/agent_filtering_for_dogstatsd_custom_metrics/delete_policy.png" alt="The delete policy button on a metric filtering policy detail view" style="width:100%;" >}} | ||
|
||
## Preview limitations | ||
|
||
This initial preview release includes the following limitations: | ||
|
||
- A maximum of 10,000 metric names can be filtered out. | ||
- Resource usage impact on the Agent is limited to up to 10MB [RSS][3]. There is no increase in CPU usage. | ||
- Only DogStatsD metrics are supported. | ||
|
||
## Further reading | ||
|
||
{{< partial name="whats-next/whats-next.html" >}} | ||
|
||
[1]: https://app.datadoghq.com/metric/settings/policies | ||
[2]: https://app.datadoghq.com/metric/summary | ||
[3]: https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/6/html/performance_tuning_guide/network-rss |
Binary file added
BIN
+421 KB
...cs/guide/agent_filtering_for_dogstatsd_custom_metrics/create_policy_from_metric_query.mp4
Binary file not shown.
Binary file added
BIN
+1.81 MB
...rics/guide/agent_filtering_for_dogstatsd_custom_metrics/create_policy_with_csv_upload.mp4
Binary file not shown.
Binary file added
BIN
+1.56 MB
...s/guide/agent_filtering_for_dogstatsd_custom_metrics/create_policy_with_policy_editor.mp4
Binary file not shown.
Binary file added
BIN
+299 KB
...es/metrics/guide/agent_filtering_for_dogstatsd_custom_metrics/delete_policy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.07 MB
.../guide/agent_filtering_for_dogstatsd_custom_metrics/edit_policy_from_metrics_settings.mp4
Binary file not shown.
Binary file added
BIN
+1.46 MB
...rics/guide/agent_filtering_for_dogstatsd_custom_metrics/edit_policy_with_metric_query.mp4
Binary file not shown.
Binary file added
BIN
+298 KB
...etrics/guide/agent_filtering_for_dogstatsd_custom_metrics/settings_from_nav.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+190 KB
...cs/guide/agent_filtering_for_dogstatsd_custom_metrics/settings_from_summary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+913 Bytes
...ges/metrics/guide/agent_filtering_for_dogstatsd_custom_metrics/show_sidebar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
We'll want to capture the following pre-requisites to use the feature:
A bit more details about how the metric filtering policies are deployed to Agents would be useful as well(probably later in this doc?):