File tree 5 files changed +11
-11
lines changed
5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ Number of times the batch was sent due to a size trigger
123
123
124
124
| Unit | Metric Type | Value Type | Monotonic |
125
125
| ---- | ----------- | ---------- | --------- |
126
- | 1 | Sum | Int | true |
126
+ | {times} | Sum | Int | true |
127
127
128
128
### otelcol_process_runtime_total_alloc_bytes
129
129
@@ -141,7 +141,7 @@ For example this metric only exists if feature A is enabled.
141
141
142
142
| Unit | Metric Type | Value Type |
143
143
| ---- | ----------- | ---------- |
144
- | 1 | Gauge | Int |
144
+ | {items} | Gauge | Int |
145
145
146
146
### otelcol_request_duration
147
147
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ telemetry:
155
155
batch_size_trigger_send :
156
156
enabled : true
157
157
description : Number of times the batch was sent due to a size trigger
158
- unit : " 1 "
158
+ unit : " {times} "
159
159
sum :
160
160
value_type : int
161
161
monotonic : true
@@ -178,7 +178,7 @@ telemetry:
178
178
enabled : true
179
179
description : This metric is optional and therefore not initialized in NewTelemetryBuilder.
180
180
extended_documentation : For example this metric only exists if feature A is enabled.
181
- unit : " 1 "
181
+ unit : " {items} "
182
182
optional : true
183
183
gauge :
184
184
async : true
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ func TestComponentTelemetry(t *testing.T) {
32
32
{
33
33
Name : "otelcol_batch_size_trigger_send" ,
34
34
Description : "Number of times the batch was sent due to a size trigger" ,
35
- Unit : "1 " ,
35
+ Unit : "{times} " ,
36
36
Data : metricdata.Sum [int64 ]{
37
37
Temporality : metricdata .CumulativeTemporality ,
38
38
IsMonotonic : true ,
@@ -65,7 +65,7 @@ func TestComponentTelemetry(t *testing.T) {
65
65
{
66
66
Name : "otelcol_batch_size_trigger_send" ,
67
67
Description : "Number of times the batch was sent due to a size trigger" ,
68
- Unit : "1 " ,
68
+ Unit : "{times} " ,
69
69
Data : metricdata.Sum [int64 ]{
70
70
Temporality : metricdata .CumulativeTemporality ,
71
71
IsMonotonic : true ,
@@ -93,7 +93,7 @@ func TestComponentTelemetry(t *testing.T) {
93
93
{
94
94
Name : "otelcol_queue_length" ,
95
95
Description : "This metric is optional and therefore not initialized in NewTelemetryBuilder." ,
96
- Unit : "1 " ,
96
+ Unit : "{items} " ,
97
97
Data : metricdata.Gauge [int64 ]{
98
98
DataPoints : []metricdata.DataPoint [int64 ]{
99
99
{
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ func TestLoadMetadata(t *testing.T) {
236
236
"batch_size_trigger_send" : {
237
237
Enabled : true ,
238
238
Description : "Number of times the batch was sent due to a size trigger" ,
239
- Unit : strPtr ("1 " ),
239
+ Unit : strPtr ("{times} " ),
240
240
Sum : & sum {
241
241
MetricValueType : MetricValueType {pmetric .NumberDataPointValueTypeInt },
242
242
Mono : Mono {Monotonic : true },
@@ -267,7 +267,7 @@ func TestLoadMetadata(t *testing.T) {
267
267
Enabled : true ,
268
268
Description : "This metric is optional and therefore not initialized in NewTelemetryBuilder." ,
269
269
ExtendedDocumentation : "For example this metric only exists if feature A is enabled." ,
270
- Unit : strPtr ("1 " ),
270
+ Unit : strPtr ("{items} " ),
271
271
Optional : true ,
272
272
Gauge : & gauge {
273
273
MetricValueType : MetricValueType {
You can’t perform that action at this time.
0 commit comments