+ "esql": "// Alert when the OpenTelemetry Collector reports non-zero rate of failed log record exports.\n//\n// metrics.otelcol_exporter_send_failed_log_records is a cumulative counter; RATE() yields\n// per-bucket increases. TS is used for time-series metrics (counter resets handled by the TS pipeline).\n//\n// Scope: metrics-collectortelemetry* and collectortelemetry.otel dataset to avoid mixing with\n// unrelated metrics-* streams.\n//\n// Grouping: service.name and service.instance.id help identify which collector instance fails.\n//\n// Tuning: raise the threshold (e.g. failed_log_records_rate > N) or increase alert delay\n// to reduce noise from brief blips.\n//\nTS metrics-collectortelemetry*\n| WHERE data_stream.dataset == \"collectortelemetry.otel\"\n| STATS failed_log_records_rate = SUM(RATE(metrics.otelcol_exporter_send_failed_log_records)) BY service.name, service.instance.id\n| WHERE failed_log_records_rate > 0\n| SORT failed_log_records_rate DESC\n"
0 commit comments