From 7da87b8c43d749b00192659aee62c52475b94575 Mon Sep 17 00:00:00 2001 From: prabhusiva619 <58513852+prabhusiva619@users.noreply.github.com> Date: Fri, 15 Aug 2025 13:07:36 +0200 Subject: [PATCH 1/2] Update README.md Added an example for collecting untyped metrics when using annotations. Based on the solution identified for the Zendesk Ticket: https://datadog.zendesk.com/agent/tickets/2140180 --- openmetrics/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/openmetrics/README.md b/openmetrics/README.md index 97d52f7abb377..b0665ba49ec48 100644 --- a/openmetrics/README.md +++ b/openmetrics/README.md @@ -72,6 +72,18 @@ By default, the integration skips metrics that come without a type on a Promethe "type": "gauge" ``` +If you are collecting metrics through annotations, please refer to the following example: + +```json + "metrics": [ + { + "": { + "type": "gauge" + } + } + ] +``` + Remember that metric names can be specified as regular expressions, making it possible to specify the type for a set of metrics without listing all of them individually. ### Errors parsing the OpenMetrics payload with Agent 7.46 From b59852e03e663679048388f41c5818c79acb34aa Mon Sep 17 00:00:00 2001 From: cecilia saixue watt Date: Fri, 15 Aug 2025 10:46:50 -0700 Subject: [PATCH 2/2] Update README.md --- openmetrics/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmetrics/README.md b/openmetrics/README.md index b0665ba49ec48..a79524ed355da 100644 --- a/openmetrics/README.md +++ b/openmetrics/README.md @@ -72,7 +72,7 @@ By default, the integration skips metrics that come without a type on a Promethe "type": "gauge" ``` -If you are collecting metrics through annotations, please refer to the following example: +If you are collecting metrics through annotations, refer to the following example: ```json "metrics": [