Skip to content

Commit 280e2f8

Browse files
committed
processor/deltatocumulative: cleanup metrics
1 parent 406aeab commit 280e2f8

File tree

13 files changed

+86
-259
lines changed

13 files changed

+86
-259
lines changed

.chloggen/cleanup-metrics.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: breaking
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
7+
component: deltatocumulative
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: removes legacy and clean up existing metrics
11+
12+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
13+
issues: [38079]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext: |
19+
renamed:
20+
- `otelcol_deltatocumulative.datapoints.processed` to `otelcol_deltatocumulative_datapoints`
21+
- `otelcol_deltatocumulative.datapoints.dropped` to `otelcol_deltatocumulative_datapoints{error="..."}`
22+
- `otelcol_deltatocumulative.max_stale` to `otelcol_deltatocumulative_max_stale`
23+
- `otelcol_deltatocumulative.streams.limit` to `otelcol_deltatocumulative_streams_limit`
24+
- `otelcol_deltatocumulative.streams.tracked` to `otelcol_deltatocumulative_streams_tracked`
25+
removed (already unused):
26+
- `otelcol_deltatocumulative.datapoints.linear`
27+
- `otelcol_deltatocumulative.streams.tracked.linear`
28+
- `otelcol_deltatocumulative.streams.evicted`
29+
- `otelcol_deltatocumulative.gaps.length`
30+
31+
# If your change doesn't affect end users or the exported elements of any package,
32+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
33+
# Optional: The change log or logs in which this entry should be included.
34+
# e.g. '[user]' or '[user, api]'
35+
# Include 'user' if the change is relevant to end users.
36+
# Include 'api' if there is a change to a library API.
37+
# Default: '[user]'
38+
change_logs: [user]

processor/deltatocumulativeprocessor/documentation.md

Lines changed: 4 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -6,71 +6,31 @@
66

77
The following telemetry is emitted by this component.
88

9-
### otelcol_deltatocumulative.datapoints.dropped
10-
11-
number of datapoints dropped due to given 'reason'
12-
13-
| Unit | Metric Type | Value Type | Monotonic |
14-
| ---- | ----------- | ---------- | --------- |
15-
| {datapoint} | Sum | Int | true |
16-
17-
### otelcol_deltatocumulative.datapoints.linear
9+
### otelcol_deltatocumulative_datapoints
1810

1911
total number of datapoints processed. may have 'error' attribute, if processing failed
2012

2113
| Unit | Metric Type | Value Type | Monotonic |
2214
| ---- | ----------- | ---------- | --------- |
2315
| {datapoint} | Sum | Int | true |
2416

25-
### otelcol_deltatocumulative.datapoints.processed
26-
27-
number of datapoints processed
28-
29-
| Unit | Metric Type | Value Type | Monotonic |
30-
| ---- | ----------- | ---------- | --------- |
31-
| {datapoint} | Sum | Int | true |
32-
33-
### otelcol_deltatocumulative.gaps.length
34-
35-
total duration where data was expected but not received
36-
37-
| Unit | Metric Type | Value Type | Monotonic |
38-
| ---- | ----------- | ---------- | --------- |
39-
| s | Sum | Int | true |
40-
41-
### otelcol_deltatocumulative.streams.evicted
42-
43-
number of streams evicted
44-
45-
| Unit | Metric Type | Value Type | Monotonic |
46-
| ---- | ----------- | ---------- | --------- |
47-
| {stream} | Sum | Int | true |
48-
49-
### otelcol_deltatocumulative.streams.limit
17+
### otelcol_deltatocumulative_streams_limit
5018

5119
upper limit of tracked streams
5220

5321
| Unit | Metric Type | Value Type |
5422
| ---- | ----------- | ---------- |
5523
| {stream} | Gauge | Int |
5624

57-
### otelcol_deltatocumulative.streams.max_stale
25+
### otelcol_deltatocumulative_streams_max_stale
5826

5927
duration after which streams inactive streams are dropped
6028

6129
| Unit | Metric Type | Value Type |
6230
| ---- | ----------- | ---------- |
6331
| s | Gauge | Int |
6432

65-
### otelcol_deltatocumulative.streams.tracked
66-
67-
number of streams tracked
68-
69-
| Unit | Metric Type | Value Type | Monotonic |
70-
| ---- | ----------- | ---------- | --------- |
71-
| {dps} | Sum | Int | false |
72-
73-
### otelcol_deltatocumulative.streams.tracked.linear
33+
### otelcol_deltatocumulative_streams_tracked
7434

7535
number of streams tracked
7636

processor/deltatocumulativeprocessor/internal/metadata/generated_telemetry.go

Lines changed: 17 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

processor/deltatocumulativeprocessor/internal/metadatatest/generated_telemetrytest.go

Lines changed: 9 additions & 89 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)