Logging is here!

Sets

Overview

Sets are used to count the number of unique elements in a group.

Submission

Agent check

Method Overview
self.set(…) Used count the number of unique elements in a group:
  • Should be called multiple times during an Agent check.
  • Stored as a GAUGE type in the Datadog web application.

DogStatsD

Method Overview
dog.set(…) Used count the number of unique elements in a group:
  • Stored as GAUGE type in the Datadog web application. Each value in the stored timeseries is the count of unique values submitted to statsd for a metric over that flush period.

DogStatsD Example

See the DogStatsD-specific documentation for code examples.

In-app modifiers

  • Effect of as_count():
    • Sets the time aggregator to SUM.
    • Uses the metadata interval to convert from raw rates to counts. Does not work if no metadata interval exists for the metric.
  • Effect of as_rate():
    • Sets the time aggregator to SUM.
    • Uses the query interval and metadata interval to calculate the time-aggregated rate. Does not work if no metadata interval exists for the metric.
  • Known Issue: Agent check submitted RATE metrics have no interval metadata, so as_rate() and as_count() don’t work.

Further reading