Skip to content

Commit f9c7a06

Browse files
committed
Use .objects suffix in metrics to avoid confusion with eventual other measures
Props to: lmolkova
1 parent daa48b2 commit f9c7a06

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/runtime/cpython-metrics.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ This metric is [recommended][MetricRecommended].
7272

7373
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
7474
| -------- | --------------- | ----------- | -------------- | --------- |
75-
| `cpython.gc.collected` | Counter | `{object}` | The total number of objects collected inside a generation that have occurred since interpreter start. [1] | ![Development](https://img.shields.io/badge/-development-blue) |
75+
| `cpython.gc.collected.objects` | Counter | `{object}` | The total number of objects collected inside a generation that have occurred since interpreter start. [1] | ![Development](https://img.shields.io/badge/-development-blue) |
7676

7777
**[1]:** This metric reports data from [`gc.stats()`](https://docs.python.org/3/library/gc.html#gc.get_stats)
7878

@@ -108,7 +108,7 @@ This metric is [recommended][MetricRecommended].
108108

109109
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
110110
| -------- | --------------- | ----------- | -------------- | --------- |
111-
| `cpython.gc.uncollectable` | Counter | `{object}` | The total number of uncollectable objects inside a generation that have occurred since interpreter start. [1] | ![Development](https://img.shields.io/badge/-development-blue) |
111+
| `cpython.gc.uncollectable.objects` | Counter | `{object}` | The total number of uncollectable objects inside a generation that have occurred since interpreter start. [1] | ![Development](https://img.shields.io/badge/-development-blue) |
112112

113113
**[1]:** This metric reports data from [`gc.stats()`](https://docs.python.org/3/library/gc.html#gc.get_stats)
114114

model/cpython/metrics.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ groups:
1414

1515
- id: metric.cpython.gc.collected
1616
type: metric
17-
metric_name: cpython.gc.collected
17+
metric_name: cpython.gc.collected.objects
1818
brief: "The total number of objects collected inside a generation that have occurred since interpreter start."
1919
note: >
2020
This metric reports data from [`gc.stats()`](https://docs.python.org/3/library/gc.html#gc.get_stats)
@@ -27,7 +27,7 @@ groups:
2727

2828
- id: metric.cpython.gc.uncollectable
2929
type: metric
30-
metric_name: cpython.gc.uncollectable
30+
metric_name: cpython.gc.uncollectable.objects
3131
brief: "The total number of uncollectable objects inside a generation that have occurred since interpreter start."
3232
note: >
3333
This metric reports data from [`gc.stats()`](https://docs.python.org/3/library/gc.html#gc.get_stats)

0 commit comments

Comments
 (0)