devops:monitoring:datadog:metrics
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| devops:monitoring:datadog:metrics [2025/02/14 09:20] – [Querying metrics] 85.219.17.206 | devops:monitoring:datadog:metrics [2025/02/14 09:22] (current) – [Additional visualizations] 85.219.17.206 | ||
|---|---|---|---|
| Line 86: | Line 86: | ||
| {{ : | {{ : | ||
| + | |||
| + | You can break this query into a few steps: | ||
| + | Metric name | ||
| + | |||
| + | First, choose the specific metric that you’d like to graph by searching or selecting it from the dropdown next to Metric. If you’re not sure which metric to use, start with the Metrics Explorer or a notebook. You can also see a list of actively reporting metrics on the Metrics Summary page. | ||
| + | Filter your metric | ||
| + | |||
| + | After selecting a metric, you can filter your query based on tag(s). For instance, you can use account: | ||
| + | Configure time aggregation | ||
| + | |||
| + | Next, choose the granularity of your data using time rollup. In this example, you’ve defined that there is one data point for every hour (3600 seconds). You can choose how you want to aggregate the data in each time bucket. By default, avg is applied, but other available options are sum, min, max, and count. You can also customize how your metrics data is aggregated and bucketed with functions or in-application modifiers. For example, if you wanted to apply max and customize how your metrics data is rolled up and bucketed in time with calendar aligned queries, you would use .rollup(max, | ||
| + | Configure space aggregation | ||
| + | |||
| + | In Datadog, “space” refers to the way metrics are distributed over different hosts and tags. There are two different aspects of space that you can control: aggregator and grouping | ||
| + | |||
| + | Aggregator defines how the metrics in each group are combined. There are four aggregations available: sum, min, max, and avg. | ||
| + | |||
| + | Grouping defines what constitutes a line on the graph. For example, if you have hundreds of hosts spread across four regions, grouping by region allows you to graph one line for every region. This would reduce the number of timeseries to four. | ||
| + | Apply functions (optional) | ||
| + | |||
| + | You can modify your graph values with mathematical functions. This can mean performing arithmetic between an integer and a metric (for example, multiplying a metric by 2). Or performing arithmetic between two metrics (for example, creating a new timeseries for the memory utilization rate like this: jvm.heap_memory / jvm.heap_memory_max). | ||
| + | Time and space aggregation | ||
| + | |||
| + | Time aggregation and space aggregation are two important components of any query. Because understanding how these aggregations work helps you avoid misinterpreting your graphs, these concepts are explained in more detail below. | ||
| + | Time aggregation | ||
| + | |||
| + | Datadog stores a large volume of points, and in most cases it’s not possible to display all of them on a graph. There would be more datapoints than pixels. Datadog uses time aggregation to solve this problem by combining data points into time buckets. For example, when examining four hours, data points are combined into two-minute buckets. This is called a rollup. As the time interval you’ve defined for your query increases, the granularity of your data decreases. | ||
| + | |||
| + | There are five aggregations you can apply to combine your data in each time bucket: sum, min, max, avg, and count. | ||
| + | |||
| + | It’s important to remember that time aggregation is always applied in every query you make. | ||
| + | |||
| + | ==== Space aggregation ==== | ||
| + | |||
| + | |||
| + | Space aggregation splits a single metric into multiple timeseries by tags such as host, container, and region. For instance, if you wanted to view the latency of your EC2 instances by region, you would need to use space aggregation’s grouping by functionality to combine each region’s hosts. | ||
| + | |||
| + | There are four aggregators that can be applied when using space aggregation: | ||
| + | Nested Queries | ||
| + | |||
| + | Add additional layers of aggregation on the results of existing queries in time and space with nested queries in the UI or through the API. For more information, | ||
| + | View real-time information about metrics | ||
| + | |||
| + | The Metrics Summary page displays a list of your metrics reported to Datadog under a specified time frame: the past hour, day, or week. Metrics can be filtered by metric name or tag. | ||
| + | |||
| + | Click on any metric name to display a details sidepanel with more detailed information. The details sidepanel displays key information for a given metric, including its metadata (type, unit, interval), number of distinct metrics, number of reporting hosts, number of tags submitted, and a table containing all tags submitted on a metric. Seeing which tags are being submitted on a metric helps you understand the number of distinct metrics reporting from it, since this number depends on your tag value combinations. | ||
| + | |||
| + | Note: The number of distinct metrics reported in the details sidepanel on Metrics Summary does not define your bill. See your usage details for a precise accounting of your usage over the past month. | ||
| + | |||
| + | Read the metrics summary documentation for more details. | ||
devops/monitoring/datadog/metrics.1739524819.txt.gz · Last modified: 2025/02/14 09:20 by 85.219.17.206
