Support

Datadog Functions

Drop Metrics

The Drop Datadog Metrics function drops metrics specified either by name or matching expression.


Usage

  • Operates On: Datadog Metrics
  • Label: Optional
  • Filter: Optional

Required Configuration

  • Metrics to Drop: A comma-separated list of metric names, wildcards, and/or regular expressions. Regular expressions should be delimited by /.

Example

Drop metrics whose names begin with either docker. and system.swap by using the wildcard docker.* and the regular expression ^system\.swap

Configuration

  • Metrics to Drop: docker.*, /^system\.swap/

Before

{
  "series": [
    {
      "tags": [
        "version:7.42.1",
      ],
      "type": 2,
      "unit": "",
      "interval": 10,
      "metric": "system.swap.free",
      "points": [
        {
          "timestamp": 1685720550,
          "value": 0.000000
        },
      ],
      ...
    },
    {
      "unit": "",
      "interval": 10,
      "metric": "datadog.trace_agent.trace_writer.retries",
      "points": [
        ...
}

After

{
  "series": [
    {
      "unit": "",
      "interval": 10,
      "metric": "datadog.trace_agent.trace_writer.retries",
      "points": [
        ...
        }
Previous
Drop Tags from Metrics