Skip to content

Commit 43d812b

Browse files
committed
Update test to account for new internal telemetry metric
otelcol_receiver_failed_metric_points was added upstream in open-telemetry/opentelemetry-collector#12802 and is enabled by default. This test is failing because it expected 17 metrics, but is now receiving 18.
1 parent 5f8388a commit 43d812b

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

tests/general/internal_metrics_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ func TestDefaultInternalMetrics(t *testing.T) {
4040
"otelcol_process_runtime_total_sys_memory_bytes",
4141
"otelcol_process_uptime",
4242
"otelcol_receiver_accepted_metric_points",
43+
"otelcol_receiver_failed_metric_points",
4344
"scrape_duration_seconds",
4445
"scrape_samples_post_metric_relabeling",
4546
"scrape_samples_scraped",

tests/general/testdata/internal_metrics_expected.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,26 @@ resourceMetrics:
229229
startTimeUnixNano: "1000000"
230230
timeUnixNano: "2000000"
231231
isMonotonic: true
232+
- description: The number of metric points that failed to be processed by the receiver due to internal errors. [alpha]
233+
metadata:
234+
- key: prometheus.type
235+
value:
236+
stringValue: counter
237+
name: otelcol_receiver_failed_metric_points
238+
sum:
239+
aggregationTemporality: 2
240+
dataPoints:
241+
- asDouble: 234
242+
attributes:
243+
- key: receiver
244+
value:
245+
stringValue: prometheus
246+
- key: transport
247+
value:
248+
stringValue: http
249+
startTimeUnixNano: "1000000"
250+
timeUnixNano: "2000000"
251+
isMonotonic: true
232252
- description: The number of samples remaining after metric relabeling was applied
233253
gauge:
234254
dataPoints:

0 commit comments

Comments
 (0)