You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/observability_pipelines/processors/generate_metrics.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ Click **Manage Metrics** to create new metrics or edit existing metrics. This op
24
24
- If you have not created any metrics yet, enter the metric parameters as described in the [Add a metric](#add-a-metric) section to create a metric.
25
25
- If you have already created metrics, click on the metric's row in the overview table to edit or delete it. Use the search bar to find a specific metric by its name, and then select the metric to edit or delete it. Click **Add Metric** to add another metric.
26
26
27
-
#####Add a metric
27
+
### Add a metric
28
28
29
29
1. Enter a filter query. Only logs that match the specified filter query are processed. All logs, regardless of whether they match the filter query, are sent to the next step in the pipeline. See [Search Syntax][5] for more information. **Note**: Since a single processor can generate multiple metrics, you can define a different filter query for each metric.
30
30
1. Enter a name for the metric.
@@ -34,7 +34,7 @@ Click **Manage Metrics** to create new metrics or edit existing metrics. This op
34
34
- The **Group by** field determines how the metric values are grouped together. For example, if you have hundreds of hosts spread across four regions, grouping by region allows you to graph one line for every region. The fields listed in the **Group by** setting are set as tags on the configured metric.
35
35
1. Click **Add Metric**.
36
36
37
-
#####Metrics types
37
+
## Metrics types
38
38
39
39
You can generate these types of metrics for your logs. See the [Metrics types][3] and [Distributions][4] documentation for more details.
40
40
@@ -44,7 +44,7 @@ You can generate these types of metrics for your logs. See the [Metrics types][3
44
44
| GAUGE | A snapshot of a value at the time it is reported. | You want to track the latest CPU utilization per host. |
45
45
| DISTRIBUTION | Raw values sent to Datadog so percentile aggregations (such as p95, p99) are computed server-side, globally across every host reporting the metric. | You want the global p95 of `response_time_seconds` across every host serving an API endpoint. |
46
46
47
-
#####Count metric example
47
+
### Count metric example
48
48
49
49
For this `status:error` log example:
50
50
@@ -61,7 +61,7 @@ To create a count metric that counts the number of logs that contain `"status":"
0 commit comments