{"id":26986,"date":"2022-02-17T07:00:30","date_gmt":"2022-02-17T07:00:30","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=26986"},"modified":"2022-03-04T12:51:38","modified_gmt":"2022-03-04T12:51:38","slug":"datadog-data-collection-resolution-and-retention-interval","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/datadog-data-collection-resolution-and-retention-interval\/","title":{"rendered":"Datadog Data Collection, Resolution, and Retention Interval"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\" id=\"collection-interval-for-datadog-agent\">Collection interval for Datadog Agent<\/h1>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>The min_collection_interval parameter is available for both standard and custom integrations<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">init_config:\n\ninstances:\n  - min_collection_interval: 30<\/code><\/span><\/pre>\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>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.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"collection-interval-for-datadog-standard-integrations\">Collection interval for Datadog standard integrations<\/h1>\n\n\n\n<p>The default collection interval for all Datadog standard integrations is 15 seconds. To change the collection interval, use the parameter min_collection_interval.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"dogstatsd-flush-interval\">DogStatsD Flush Interval<\/h1>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>About DogStatsD<br>In v6, DogStatsD is a Golang implementation of Etsy\u2019s 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.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"datadog-forwarder-flush-interval\">Datadog Forwarder Flush Interval<\/h1>\n\n\n\n<p>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\u2019s memory footprint manageable. Logs are sent over an SSL-encrypted TCP connection to Datadog.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"datadog-data-collection-resolution-and-retention-interval\">Datadog Data Collection, Resolution, and Retention Interval.<\/h2>\n\n\n\n<p>Find below a summary of Datadog data collection, resolution, and retention:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>PRODUCT CATEGORY<\/th><th>SOURCE<\/th><th>COLLECTION METHODS<\/th><th>COLLECTION INTERVAL<\/th><th>MINIMUM RESOLUTION<\/th><th>DEFAULT RETENTION<\/th><\/tr><\/thead><tbody><tr><td>Alerting<\/td><td>Service Level Objectives<\/td><td>Datadog monitors, Datadog Synthetic monitoring, or metrics (infrastructure, APM trace, custom)<\/td><td>Data source-dependent<\/td><td>Data source-dependent<\/td><td>7, 30, or 90 days (chosen by user in SLO configuration)<\/td><\/tr><tr><td>APM<\/td><td>Error Tracking<\/td><td>APM spans (unsampled)<\/td><td>2 minutes<\/td><td>60 seconds<\/td><td>15 days<\/td><\/tr><tr><td>APM<\/td><td>Indexed spans (unsampled)<\/td><td>Datadog Agent + tracing library<\/td><td>10 seconds<\/td><td>1 millisecond<\/td><td>Plan<\/td><\/tr><tr><td>APM<\/td><td>Profiles<\/td><td>Datadog Agent + tracing library<\/td><td>60 seconds<\/td><td>60 seconds<\/td><td>7 days<\/td><\/tr><tr><td>APM<\/td><td>Profile metrics<\/td><td>Datadog Agent + tracing library<\/td><td>60 seconds<\/td><td>60 seconds<\/td><td>1 month<\/td><\/tr><tr><td>APM<\/td><td>Services\/resources statistics and span summaries<\/td><td>Datadog Agent + tracing library<\/td><td>10 seconds<\/td><td>10 seconds<\/td><td>30 days<\/td><\/tr><tr><td>APM<\/td><td>Traces (sampled)<\/td><td>Datadog Agent + tracing library<\/td><td>10 seconds<\/td><td>1 millisecond<\/td><td>15 days. Viewed traces are retained long-term. See&nbsp;<a href=\"https:\/\/docs.datadoghq.com\/tracing\/guide\/trace_sampling_and_storage\/?tab=java#trace-storage\" target=\"_blank\" rel=\"noopener\">Trace Storage<\/a>&nbsp;for details.<\/td><\/tr><tr><td>APM<\/td><td>Trace metrics (unsampled)<\/td><td>Datadog Agent + tracing library<\/td><td>10 seconds<\/td><td>1 second<\/td><td>15 months<\/td><\/tr><tr><td>Cloud<\/td><td>Alibaba<\/td><td>API crawler<\/td><td>10 min (<a href=\"https:\/\/docs.datadoghq.com\/integrations\/faq\/cloud-metric-delay\/#faster-metrics\" target=\"_blank\" rel=\"noopener\">default<\/a>)<\/td><td>1 min<\/td><td>15 months<\/td><\/tr><tr><td>Cloud<\/td><td>AWS<\/td><td>API crawler<\/td><td>10 min (<a href=\"https:\/\/docs.datadoghq.com\/integrations\/faq\/cloud-metric-delay\/#faster-metrics\" target=\"_blank\" rel=\"noopener\">default<\/a>)<\/td><td>1 min<\/td><td>15 months<\/td><\/tr><tr><td>Cloud<\/td><td>Azure<\/td><td>API crawler<\/td><td>2 min (<a href=\"https:\/\/docs.datadoghq.com\/integrations\/faq\/cloud-metric-delay\/#faster-metrics\" target=\"_blank\" rel=\"noopener\">default<\/a>)<\/td><td>1 min<\/td><td>15 months<\/td><\/tr><tr><td>Cloud<\/td><td>Google Cloud<\/td><td>API crawler<\/td><td>5 min (<a href=\"https:\/\/docs.datadoghq.com\/integrations\/faq\/cloud-metric-delay\/#faster-metrics\" target=\"_blank\" rel=\"noopener\">default<\/a>)<\/td><td>1 min<\/td><td>15 months<\/td><\/tr><tr><td>CSPM<\/td><td>Findings<\/td><td>Datadog Cloud Security Posture Management<\/td><td>15 minutes to 4 hours depending on resource type<\/td><td>1 minute<\/td><td>15 months<\/td><\/tr><tr><td>Database Monitoring<\/td><td>Query Metrics<\/td><td>Datadog Agent + enabled integrations<\/td><td>10 seconds<\/td><td>1 second<\/td><td>3 months<\/td><\/tr><tr><td>Database Monitoring<\/td><td>Query Samples<\/td><td>Datadog Agent + enabled integrations<\/td><td>1 minute<\/td><td>n\/a<\/td><td>15 days<\/td><\/tr><tr><td>Incident Management<\/td><td>Incident Management<\/td><td>Incident data<\/td><td>n\/a<\/td><td>n\/a<\/td><td>15 months<\/td><\/tr><tr><td>Infrastructure<\/td><td>Agent integrations<\/td><td>Datadog Agent + enabled integrations<\/td><td>15 seconds<\/td><td>1 second<\/td><td>15 months<\/td><\/tr><tr><td>Infrastructure<\/td><td>Custom metrics (Agent check)<\/td><td>Datadog Agent + custom Agent check<\/td><td>15 seconds<\/td><td>1 second<\/td><td>15 months<\/td><\/tr><tr><td>Infrastructure<\/td><td>Custom metrics (API)<\/td><td>POST directly to Datadog\u2019s API<\/td><td>Real time<\/td><td>1 second<\/td><td>15 months<\/td><\/tr><tr><td>Infrastructure<\/td><td>Custom metrics (StatsD)<\/td><td>Datadog Agent (built-in statsD collector)<\/td><td>15 seconds<\/td><td>1 second<\/td><td>15 months<\/td><\/tr><tr><td>Infrastructure<\/td><td>Events<\/td><td>Datadog Agent, integrations, or API<\/td><td>Real time<\/td><td>1 second<\/td><td>13 months<\/td><\/tr><tr><td>Infrastructure<\/td><td>Live containers<\/td><td>Datadog Agent + enabled Docker integration or Datadog container Agent<\/td><td>2 seconds<\/td><td>1 second<\/td><td>36 hours<\/td><\/tr><tr><td>Infrastructure<\/td><td>Live processes<\/td><td>Datadog Agent + Process Agent<\/td><td>2 seconds<\/td><td>1 second<\/td><td>36 hours<\/td><\/tr><tr><td>Infrastructure<\/td><td>Network Performance Monitoring<\/td><td>System Probe<\/td><td>5 minutes (<a href=\"https:\/\/docs.datadoghq.com\/integrations\/faq\/cloud-metric-delay\/#faster-metrics\" target=\"_blank\" rel=\"noopener\">default<\/a>)<\/td><td>1 min<\/td><td>7 days<\/td><\/tr><tr><td>Infrastructure<\/td><td>System metrics<\/td><td>Datadog Agent<\/td><td>15 seconds<\/td><td>1 second<\/td><td>15 months<\/td><\/tr><tr><td>Logs<\/td><td>Logs<\/td><td>Datadog Agent + Logs, 3rd party log collectors, or API<\/td><td>Real time<\/td><td>1 millisecond<\/td><td>Plan<\/td><\/tr><tr><td>Real User Monitoring<\/td><td>Error Tracking<\/td><td>RUM SDK<\/td><td>2 minutes<\/td><td>60 seconds<\/td><td>15 days<\/td><\/tr><tr><td>Real User Monitoring<\/td><td>Real User Monitoring<\/td><td>RUM SDK<\/td><td>Real time<\/td><td>1 millisecond<\/td><td>30 days for session, view, action and error events<br>15 days for resource and long task events<\/td><\/tr><tr><td>Real User Monitoring<\/td><td>Session Replays<\/td><td>RUM SDK<\/td><td>Real time<\/td><td>1 millisecond<\/td><td>30 days<\/td><\/tr><tr><td>Cloud SIEM<\/td><td>Security Signals<\/td><td>Datadog Cloud SIEM<\/td><td>Real time<\/td><td>1 millisecond<\/td><td>15 months<\/td><\/tr><tr><td>Synthetic Monitoring<\/td><td>API Test metrics<\/td><td>Datadog Synthetic Monitoring application<\/td><td>User-defined<\/td><td>1 min<\/td><td>15 months<\/td><\/tr><tr><td>Synthetic Monitoring<\/td><td>API Test results<\/td><td>Datadog Synthetic Monitoring application<\/td><td>User-defined<\/td><td>1 min<\/td><td>Result seen in the UI by user: 15 months<br>Result not seen in the UI by user: 2 months<\/td><\/tr><tr><td>Synthetic Monitoring<\/td><td>Browser Test metrics<\/td><td>Datadog Synthetic Monitoring application<\/td><td>User-defined<\/td><td>5 min<\/td><td>15 months<\/td><\/tr><tr><td>Synthetic Monitoring<\/td><td>Browser Test results<\/td><td>Datadog Synthetic Monitoring application<\/td><td>User-defined<\/td><td>5 min<\/td><td>Result seen in the UI by user: 15 months<br>Result not seen in the UI by user: 2 months<\/td><\/tr><tr><td>Synthetic Monitoring<\/td><td>Batches<\/td><td>Datadog Synthetic Monitoring application (through calls to the&nbsp;<a href=\"https:\/\/docs.datadoghq.com\/synthetics\/cicd_integrations#use-the-api\" target=\"_blank\" rel=\"noopener\">Synthetics trigger API endpoint<\/a>&nbsp;or to the&nbsp;<a href=\"https:\/\/docs.datadoghq.com\/synthetics\/cicd_integrations#use-the-cli\" target=\"_blank\" rel=\"noopener\">Synthetics CI CLI<\/a>)<\/td><td>Depending on calls to the&nbsp;<a href=\"https:\/\/docs.datadoghq.com\/synthetics\/cicd_integrations#use-the-api\" target=\"_blank\" rel=\"noopener\">Synthetics trigger API endpoint<\/a>&nbsp;or to the&nbsp;<a href=\"https:\/\/docs.datadoghq.com\/synthetics\/cicd_integrations#use-the-cli\" target=\"_blank\" rel=\"noopener\">Synthetic CI CLI<\/a><\/td><td>n\/a<\/td><td>15 days<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"reference\">Reference<\/h2>\n\n\n\n<p><a href=\"https:\/\/docs.datadoghq.com\/developers\/guide\/data-collection-resolution-retention\/\" target=\"_blank\" rel=\"noopener\">https:\/\/docs.datadoghq.com\/developers\/guide\/data-collection-resolution-retention\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-26986","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/26986","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=26986"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/26986\/revisions"}],"predecessor-version":[{"id":26988,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/26986\/revisions\/26988"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=26986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=26986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=26986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}