Collection interval for Datadog Agent
To change the collection interval of your check, use min_collection_interval in the configuration file. The default value is 15 which means the check method from your class is invoked with the same interval as the rest of the integrations on the Agent.
The min_collection_interval parameter is available for both standard and custom integrations
init_config:
instances:
- min_collection_interval: 30
If the min_collection_interval is set to 30, it does not mean that the metric is collected every 30 seconds, but rather that it could be collected as often as every 30 seconds.
The collector tries to run the check every 30 seconds but the check might need to wait in line, depending on how many integrations are enabled on the same Agent. Also if the check method takes more than 30 seconds to finish, the Agent skips execution until the next interval.
Collection interval for Datadog standard integrations
The default collection interval for all Datadog standard integrations is 15 seconds. To change the collection interval, use the parameter min_collection_interval.
DogStatsD Flush Interval
DogStatsD uses a flush interval of 10 seconds. Every 10 seconds, DogStatsD checks all data received since the last flush. All values that correspond to the same metric name and the same tags are aggregated together into a single value.
About DogStatsD
In v6, DogStatsD is a Golang implementation of Etsy’s StatsD metric aggregation daemon. It is used to receive and roll up arbitrary metrics over UDP or Unix socket, thus allowing custom code to be instrumented without adding latency.
Datadog Forwarder Flush Interval
The Agent forwarder send metrics over HTTPS to Datadog. Buffering prevents network splits from affecting metric reporting. Metrics are buffered in memory until a limit in size or number of outstanding send requests are reached. Afterwards, the oldest metrics are discarded to keep the forwarder’s memory footprint manageable. Logs are sent over an SSL-encrypted TCP connection to Datadog.
Datadog Data Collection, Resolution, and Retention Interval.
Find below a summary of Datadog data collection, resolution, and retention:
PRODUCT CATEGORY | SOURCE | COLLECTION METHODS | COLLECTION INTERVAL | MINIMUM RESOLUTION | DEFAULT RETENTION |
---|---|---|---|---|---|
Alerting | Service Level Objectives | Datadog monitors, Datadog Synthetic monitoring, or metrics (infrastructure, APM trace, custom) | Data source-dependent | Data source-dependent | 7, 30, or 90 days (chosen by user in SLO configuration) |
APM | Error Tracking | APM spans (unsampled) | 2 minutes | 60 seconds | 15 days |
APM | Indexed spans (unsampled) | Datadog Agent + tracing library | 10 seconds | 1 millisecond | Plan |
APM | Profiles | Datadog Agent + tracing library | 60 seconds | 60 seconds | 7 days |
APM | Profile metrics | Datadog Agent + tracing library | 60 seconds | 60 seconds | 1 month |
APM | Services/resources statistics and span summaries | Datadog Agent + tracing library | 10 seconds | 10 seconds | 30 days |
APM | Traces (sampled) | Datadog Agent + tracing library | 10 seconds | 1 millisecond | 15 days. Viewed traces are retained long-term. See Trace Storage for details. |
APM | Trace metrics (unsampled) | Datadog Agent + tracing library | 10 seconds | 1 second | 15 months |
Cloud | Alibaba | API crawler | 10 min (default) | 1 min | 15 months |
Cloud | AWS | API crawler | 10 min (default) | 1 min | 15 months |
Cloud | Azure | API crawler | 2 min (default) | 1 min | 15 months |
Cloud | Google Cloud | API crawler | 5 min (default) | 1 min | 15 months |
CSPM | Findings | Datadog Cloud Security Posture Management | 15 minutes to 4 hours depending on resource type | 1 minute | 15 months |
Database Monitoring | Query Metrics | Datadog Agent + enabled integrations | 10 seconds | 1 second | 3 months |
Database Monitoring | Query Samples | Datadog Agent + enabled integrations | 1 minute | n/a | 15 days |
Incident Management | Incident Management | Incident data | n/a | n/a | 15 months |
Infrastructure | Agent integrations | Datadog Agent + enabled integrations | 15 seconds | 1 second | 15 months |
Infrastructure | Custom metrics (Agent check) | Datadog Agent + custom Agent check | 15 seconds | 1 second | 15 months |
Infrastructure | Custom metrics (API) | POST directly to Datadog’s API | Real time | 1 second | 15 months |
Infrastructure | Custom metrics (StatsD) | Datadog Agent (built-in statsD collector) | 15 seconds | 1 second | 15 months |
Infrastructure | Events | Datadog Agent, integrations, or API | Real time | 1 second | 13 months |
Infrastructure | Live containers | Datadog Agent + enabled Docker integration or Datadog container Agent | 2 seconds | 1 second | 36 hours |
Infrastructure | Live processes | Datadog Agent + Process Agent | 2 seconds | 1 second | 36 hours |
Infrastructure | Network Performance Monitoring | System Probe | 5 minutes (default) | 1 min | 7 days |
Infrastructure | System metrics | Datadog Agent | 15 seconds | 1 second | 15 months |
Logs | Logs | Datadog Agent + Logs, 3rd party log collectors, or API | Real time | 1 millisecond | Plan |
Real User Monitoring | Error Tracking | RUM SDK | 2 minutes | 60 seconds | 15 days |
Real User Monitoring | Real User Monitoring | RUM SDK | Real time | 1 millisecond | 30 days for session, view, action and error events 15 days for resource and long task events |
Real User Monitoring | Session Replays | RUM SDK | Real time | 1 millisecond | 30 days |
Cloud SIEM | Security Signals | Datadog Cloud SIEM | Real time | 1 millisecond | 15 months |
Synthetic Monitoring | API Test metrics | Datadog Synthetic Monitoring application | User-defined | 1 min | 15 months |
Synthetic Monitoring | API Test results | Datadog Synthetic Monitoring application | User-defined | 1 min | Result seen in the UI by user: 15 months Result not seen in the UI by user: 2 months |
Synthetic Monitoring | Browser Test metrics | Datadog Synthetic Monitoring application | User-defined | 5 min | 15 months |
Synthetic Monitoring | Browser Test results | Datadog Synthetic Monitoring application | User-defined | 5 min | Result seen in the UI by user: 15 months Result not seen in the UI by user: 2 months |
Synthetic Monitoring | Batches | Datadog Synthetic Monitoring application (through calls to the Synthetics trigger API endpoint or to the Synthetics CI CLI) | Depending on calls to the Synthetics trigger API endpoint or to the Synthetic CI CLI | n/a | 15 days |
Reference
https://docs.datadoghq.com/developers/guide/data-collection-resolution-retention/
- Installing Jupyter: Get up and running on your computer - November 2, 2024
- An Introduction of SymOps by SymOps.com - October 30, 2024
- Introduction to System Operations (SymOps) - October 30, 2024