capabilities.work

Create a Log-based Metric

A 2-step recipe with Datadog. We can help you get access.

Recipe · 2 steps

Create a Log-based Metric

with Datadog
Works with AI assistants

Create a log-based metric then get it by id.

  1. Create a new log-based metric that counts log events matching the supplied query.
  2. Retrieve the newly created log-based metric by its id to confirm it was stored with the expected filter and compute configuration.
What you'll need to have ready
  • metricId: The unique name/id for the new log-based metric.
  • query: The log search query that selects which logs feed the metric.
For your developer

Arazzo workflow datadog:create-log-metric, 2 operations: CreateLogsMetric → GetLogsMetric. Specs on APIs.io.