Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.12 KB

Notes.md

File metadata and controls

27 lines (18 loc) · 1.12 KB

Notes on Datadog API

Magic 'host:' tag for metrics

For metrics and metrics only (not events or service checks), a tag starting with host: should set the hostname, and be removed from the tags list.

Tags should not have duplicates

In both the python and golang agents, tags are deduplicated.

Bucketing and Flush intervals

The golang client appears to quantize stats into 10 second intervals, but upload every 15 seconds (see pkg/aggregator/aggregator.go ). Not sure how this works exactly, it uploads one or two sets of metrics every 15s?

// DefaultFlushInterval aggregator default flush interval
const DefaultFlushInterval = 15 * time.Second // flush interval
const bucketSize = 10                         // fixed for now

The python agent (version 5), has dd-agent/dogstatsd.py:

# Dogstatsd constants in seconds
77	DOGSTATSD_FLUSH_INTERVAL = 10
78	DOGSTATSD_AGGREGATOR_BUCKET_SIZE = 10