capabilities.work

Submit and Query Metrics

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

Recipe · 2 steps

Submit and Query Metrics

with Datadog · Observability Management
Works with AI assistants

Submit a metric series then query it as timeseries data.

  1. Submit a single metric series containing one timestamped data point and its tags to the Datadog intake endpoint.
  2. Query the same metric over the supplied time range to read the submitted values back as timeseries data.
What you'll need to have ready
  • metric: The metric name to submit and query (e.g. custom.app.requests).
  • type: The metric type (0=unspecified, 1=count, 2=rate, 3=gauge).
  • timestamp: Unix timestamp in seconds for the submitted data point.
  • value: The numeric value of the metric at the given timestamp.
  • tags: List of tags in key:value format (e.g. env:prod).
  • queryFrom: Unix timestamp in milliseconds for the start of the query range.
  • queryTo: Unix timestamp in milliseconds for the end of the query range.
  • queryString: The Datadog metrics query string (e.g. avg:custom.app.requests{*}).
For your developer

Arazzo workflow datadog:submit-and-query-metrics, 2 operations: SubmitMetrics → queryMetricsTimeseries. Specs on APIs.io.