Skip to content

Commit a624fa7

Browse files
committed
Add lux coverage for the shape_db pool checkout queue_time metric
Confirms the metric name is exported in plain ASCII.
1 parent f70b5a0 commit a624fa7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

integration-tests/tests/otel-export.lux

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@
114114
[invoke grep_otel_collector_output "Metric electric\.postgres\.replication\.slot_confirmed_flush_lsn_lag .*stack_id=single_stack"]
115115
[invoke grep_otel_collector_output "Metric electric\.postgres\.replication\.slot_retained_wal_size .*stack_id=single_stack"]
116116

117+
# The metric name must be plain ASCII (no "µs"/"μs" suffix) so that ingestion
118+
# into backends like Mimir/Prometheus, which reject non-ASCII characters in
119+
# metric names, doesn't fail.
120+
[invoke grep_otel_collector_output "Metric electric\.shape_db\.pool\.checkout\.queue_time_us .*stack_id=single_stack"]
121+
117122
# Regression check: These metrics haven't been exporting until recently
118123
[invoke grep_otel_collector_output "Metric electric\.plug\.serve_shape\.bytes .*stack_id=single_stack"]
119124
[invoke grep_otel_collector_output "Metric electric\.plug\.serve_shape\.count .*stack_id=single_stack"]

0 commit comments

Comments
 (0)