fix: validate telemetry outage bounds

This commit is contained in:
2026-11-04 20:56:35 +03:00
parent f23855f786
commit c915547449
4 changed files with 120 additions and 7 deletions
+6 -1
View File
@@ -18,7 +18,12 @@ QUERIES = {
"worker_capacity": 'sum(messenger_attachment_worker_capacity)',
"pending_outbox": 'sum(messenger_outbox_pending)',
"worker_up": 'min(up{job="attachment-worker"})',
"collector_export_failures_5m": 'sum(increase(otelcol_exporter_send_failed_spans_total[5m])) + sum(increase(otelcol_exporter_send_failed_log_records_total[5m]))',
"collector_queue_size": 'max by (exporter) (otelcol_exporter_queue_size)',
"collector_queue_capacity": 'max by (exporter) (otelcol_exporter_queue_capacity)',
"collector_export_failures_total": 'sum by (exporter) (otelcol_exporter_send_failed_spans) or sum by (exporter) (otelcol_exporter_send_failed_log_records) or on (exporter) (0 * max by (exporter) (otelcol_exporter_queue_capacity))',
"collector_dropped_records_total": 'sum by (exporter) (otelcol_exporter_enqueue_failed_spans) or sum by (exporter) (otelcol_exporter_enqueue_failed_log_records) or on (exporter) (0 * max by (exporter) (otelcol_exporter_queue_capacity))',
"collector_memory_bytes": 'max(otelcol_process_memory_rss) or max(process_resident_memory_bytes{job="otel-collector"})',
"collector_memory_peak_bytes": 'max(max_over_time(otelcol_process_memory_rss[2m])) or max(max_over_time(process_resident_memory_bytes{job="otel-collector"}[2m]))',
}