Support

Datadog Functions

Unroll Metrics

Unroll Metrics processes batched Datadog metric payloads into individual events.


Usage

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

You should know!

Like the other Datdog functions, this function acts only on Datadog metrics events. All other event types are ignored. Original batched payloads are dropped after being unrolled.

Required Configuration

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

Example

Unroll batched payload datadog.dogstatsd.client.packets_dropped_writer metric into individual metric events.

Configuration

  • Metrics to Unroll: datadog.dogstatsd.client.packets_dropped_writer

Before

{
  ...
  "series": [
    {
      "tags": [
        "version:7.46.0",
        "client:go",
        "client_version:5.1.1",
        "client_transport:udp"
      ],
      "type": 2,
      "unit": "",
      "interval": 10,
      "metric": "datadog.dogstatsd.client.packets_dropped_writer",
      "points": [
        {
          "timestamp": 1692049750,
          "value": 1.000000
        },
        {
          "timestamp": 1692049760,
          "value": 2.000000
        }
      ],
      "resources": [
        {
          "name": "91857706c12078",
          "type": "host"
        }
      ],
      "source_type_name": ""
    },
    ...
  ]
}

After

  {
    ...
    "metric": "datadog.dogstatsd.client.packets_dropped_writer",
    "timestamp": 1692049750,
    "value": 1.0,
    "tags": [...],
  },
  {
    ...
    "metric": "datadog.dogstatsd.client.packets_dropped_writer",
    "timestamp": 1692049760,
    "value": 2.0,
    "tags": [...],
  }
Previous
Drop Metrics