Skip to content

Commit 9974a37

Browse files
Update README.md (#21079)
* 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 * Update README.md --------- Co-authored-by: cecilia saixue watt <[email protected]>
1 parent c282580 commit 9974a37

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

openmetrics/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,18 @@ By default, the integration skips metrics that come without a type on a Promethe
7272
"type": "gauge"
7373
```
7474
75+
If you are collecting metrics through annotations, refer to the following example:
76+
77+
```json
78+
"metrics": [
79+
{
80+
"<NAME_OF_METRIC_WITHOUT_TYPE>": {
81+
"type": "gauge"
82+
}
83+
}
84+
]
85+
```
86+
7587
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.
7688

7789
### Errors parsing the OpenMetrics payload with Agent 7.46

0 commit comments

Comments
 (0)