Skip to content

feat(byoo): retain exporter diagnostic metrics - #532

Merged
kristinapathak merged 3 commits into
mainfrom
kpathak/byoo-exporter-metrics
Aug 3, 2026
Merged

feat(byoo): retain exporter diagnostic metrics#532
kristinapathak merged 3 commits into
mainfrom
kpathak/byoo-exporter-metrics

Conversation

@kristinapathak

@kristinapathak kristinapathak commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

TL;DR

  • Retain Collector HTTP/gRPC client, queue, and enqueue-failure diagnostics in BYOO self-scrapes.
  • Regenerate the receiver templates, examples, and metrics reference for BYOO 0.157.3.

Additional Details

  • Existing allowlists kept exporter sent and send-failed counters but dropped backend response and queue diagnostics.
  • Retain histogram sample families with bounded metric-name patterns for response-code queries.
  • Keep existing labels intact. No response body or reason text becomes a metric label.

For the Reviewer

  • Start with generator/source-config.yaml; generated templates and examples follow from its two Collector allowlists.

For QA

  • No separate QA needed. Generated configuration validation covers all rendered workload shapes.
  • Ran go test ./... and ./scripts/validate-otelconfig.sh across VM, Kubernetes-container, and Kubernetes-Helm modes.

Issues

Closes #531

Checklist

  • I am familiar with the Contributing Guidelines.
  • I have signed off my commits for Developer Certificate of Origin (DCO) compliance.
  • Existing tests cover the updated generated configuration.
  • Generated documentation is up to date.

Github commit:
feat(byoo): retain exporter diagnostic metrics

Retain Collector HTTP, gRPC, queue, and enqueue diagnostics in the BYOO self-scrape so exporter failures can be classified.

Summary by CodeRabbit

  • New Features
    • Expanded OpenTelemetry Collector metrics retained across Kubernetes and VM configurations, including exporter queues, enqueue failures, and HTTP/RPC client durations.
    • Improved visibility into collector performance, delivery health, and client latency.
    • Updated the BYO OpenTelemetry Collector version to 0.157.8.
  • Documentation
    • Updated supported metric lists to reflect expanded telemetry coverage.
  • Tests
    • Added validation for diagnostic metrics in generated Prometheus configurations.

@kristinapathak
kristinapathak requested a review from a team as a code owner July 29, 2026 18:25
@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: f936f9c7-4e01-4e9e-ae9a-e70775bed187

📥 Commits

Reviewing files that changed from the base of the PR and between 3d97c30 and 9795e8e.

⛔ Files ignored due to path filters (4)
  • src/compute-plane-services/byoo-otel-collector/generator/gen/generated_src-config-k8s-container.yaml.tmpl is excluded by !**/gen/**
  • src/compute-plane-services/byoo-otel-collector/generator/gen/generated_src-config-k8s-helm.yaml.tmpl is excluded by !**/gen/**
  • src/compute-plane-services/byoo-otel-collector/generator/gen/generated_src-config-vm-container.yaml.tmpl is excluded by !**/gen/**
  • src/compute-plane-services/byoo-otel-collector/generator/gen/generated_src-config-vm-helm.yaml.tmpl is excluded by !**/gen/**
📒 Files selected for processing (90)
  • src/compute-plane-services/byoo-otel-collector/VERSION
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_input2.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_kratos_logs_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_metric_subset.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_input2.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_kratos_logs_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_input2.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_kratos_logs_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_input2.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_kratos_logs_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_input2.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_kratos_logs_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_input2.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_kratos_logs_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_input2.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_kratos_logs_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_input2.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_kratos_logs_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/generator/doc/README.md
  • src/compute-plane-services/byoo-otel-collector/generator/source-config.yaml
  • src/compute-plane-services/byoo-otel-collector/generator/test_prometheus_config_generator.py
  • src/compute-plane-services/byoo-otel-collector/internal/otelconfig/templates/config-k8s-container.yaml.tmpl
  • src/compute-plane-services/byoo-otel-collector/internal/otelconfig/templates/config-k8s-helm.yaml.tmpl
  • src/compute-plane-services/byoo-otel-collector/internal/otelconfig/templates/config-vm-container.yaml.tmpl
  • src/compute-plane-services/byoo-otel-collector/internal/otelconfig/templates/config-vm-helm.yaml.tmpl
  • src/compute-plane-services/byoo-otel-collector/scripts/start-generator.sh
🚧 Files skipped from review as they are similar to previous changes (87)
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/VERSION
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_kratos_logs_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_kratos_logs_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/scripts/start-generator.sh
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/generator/source-config.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_kratos_logs_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/internal/otelconfig/templates/config-vm-container.yaml.tmpl
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_input2.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/internal/otelconfig/templates/config-k8s-container.yaml.tmpl
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_input2.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_input2.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_input2.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_input2.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/internal/otelconfig/templates/config-k8s-helm.yaml.tmpl
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_input2.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/generator/test_prometheus_config_generator.py
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_kratos_logs_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_metric_subset.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/generator/doc/README.md
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_kratos_logs_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_kratos_logs_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/internal/otelconfig/templates/config-vm-helm.yaml.tmpl
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_input2.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_input2.yaml

📝 Walkthrough

Walkthrough

The BYOO OTel Collector version is updated to 0.157.8. Collector metric allowlists, templates, Kubernetes and VM examples, documentation, and generator validation now cover exporter diagnostics and HTTP/RPC client duration metrics.

Changes

BYOO OTel metric allowlists

Layer / File(s) Summary
Metric sources, documentation, and templates
src/compute-plane-services/byoo-otel-collector/generator/*, src/compute-plane-services/byoo-otel-collector/internal/otelconfig/templates/*, src/compute-plane-services/byoo-otel-collector/generator/doc/README.md, src/compute-plane-services/byoo-otel-collector/VERSION
Allowlist definitions, templates, documentation, and the recorded collector version are updated.
Kubernetes configurations
src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/*
Prometheus keep-regexes retain the expanded OTel Collector metric set.
VM configurations
src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/*
VM Prometheus keep-regexes retain the expanded OTel Collector metric set.
Generator validation
src/compute-plane-services/byoo-otel-collector/generator/test_prometheus_config_generator.py, src/compute-plane-services/byoo-otel-collector/scripts/start-generator.sh
Generated diagnostic metric allowlists and regexes are tested before configuration generation.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

  • NVIDIA/nvcf#583: Updates related OpenTelemetry Collector client duration metric handling.

Suggested reviewers: sbaum1994, balajinvda

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Linked Issues check ❓ Inconclusive The metric requirements are implemented, but generated templates are excluded by the !/gen/ filter and cannot be fully verified. Review the four generated templates excluded by !/gen/ and confirm they retain HTTP/gRPC, queue, and enqueue-failure metrics.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title uses the required Conventional Commit format and accurately describes the primary metric-retention change.
Out of Scope Changes check ✅ Passed The version, allowlists, templates, examples, documentation, tests, and generator test hook all support the linked diagnostic-metrics objective.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch kpathak/byoo-exporter-metrics

Comment @coderabbitai help to get the list of available commands.

@kristinapathak
kristinapathak requested a review from sbaum1994 July 29, 2026 18:30

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
src/compute-plane-services/byoo-otel-collector/internal/otelconfig/templates/config-k8s-container.yaml.tmpl (1)

106-106: 🎯 Functional Correctness | 🔵 Trivial | 💤 Low value

Narrow the duration-sample regex. Replace .* with explicit histogram suffixes (_bucket|_count|_sum) so the allowlist stays limited to the current Collector metric family.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@src/compute-plane-services/byoo-otel-collector/internal/otelconfig/templates/config-k8s-container.yaml.tmpl`
at line 106, Replace the wildcard duration suffixes in the metric allowlist
regex at
src/compute-plane-services/byoo-otel-collector/internal/otelconfig/templates/config-k8s-container.yaml.tmpl:106
with only _bucket, _count, or _sum. Apply the same narrowing to the
corresponding regex at line 39 in each sibling file:
src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_azure_monitor.yaml,
config_function_helm_input1.yaml, config_function_helm_input2.yaml,
config_function_helm_input3.yaml, config_function_helm_input4.yaml,
config_function_helm_kratos_logs_stg.yaml,
config_function_helm_kratos_thanos_prd.yaml,
config_function_helm_kratos_thanos_stg.yaml,
config_function_helm_otelcollector_stg.yaml, and
config_function_helm_telemetry_endpoint_kratos_thanos_stg.yaml.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/compute-plane-services/byoo-otel-collector/generator/source-config.yaml`:
- Around line 444-450: Add focused generator regression coverage for the
allowlist entries shown in source-config.yaml, verifying exact metric names and
wildcard families such as otelcol_http_client_request_duration_seconds.* and
otelcol_rpc_client_call_duration_seconds.* are transformed into the expected
keep-regex templates. Apply the same coverage to the additionally flagged
entries, reusing the existing generator test and validation helpers.

---

Nitpick comments:
In
`@src/compute-plane-services/byoo-otel-collector/internal/otelconfig/templates/config-k8s-container.yaml.tmpl`:
- Line 106: Replace the wildcard duration suffixes in the metric allowlist regex
at
src/compute-plane-services/byoo-otel-collector/internal/otelconfig/templates/config-k8s-container.yaml.tmpl:106
with only _bucket, _count, or _sum. Apply the same narrowing to the
corresponding regex at line 39 in each sibling file:
src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_azure_monitor.yaml,
config_function_helm_input1.yaml, config_function_helm_input2.yaml,
config_function_helm_input3.yaml, config_function_helm_input4.yaml,
config_function_helm_kratos_logs_stg.yaml,
config_function_helm_kratos_thanos_prd.yaml,
config_function_helm_kratos_thanos_stg.yaml,
config_function_helm_otelcollector_stg.yaml, and
config_function_helm_telemetry_endpoint_kratos_thanos_stg.yaml.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 08695463-9815-41b6-ad73-db654225be78

📥 Commits

Reviewing files that changed from the base of the PR and between ef6f96c and c1b14d9.

⛔ Files ignored due to path filters (4)
  • src/compute-plane-services/byoo-otel-collector/generator/gen/generated_src-config-k8s-container.yaml.tmpl is excluded by !**/gen/**
  • src/compute-plane-services/byoo-otel-collector/generator/gen/generated_src-config-k8s-helm.yaml.tmpl is excluded by !**/gen/**
  • src/compute-plane-services/byoo-otel-collector/generator/gen/generated_src-config-vm-container.yaml.tmpl is excluded by !**/gen/**
  • src/compute-plane-services/byoo-otel-collector/generator/gen/generated_src-config-vm-helm.yaml.tmpl is excluded by !**/gen/**
📒 Files selected for processing (88)
  • src/compute-plane-services/byoo-otel-collector/VERSION
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_input2.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_kratos_logs_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_metric_subset.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_container_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_input2.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_kratos_logs_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_function_helm_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_input2.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_kratos_logs_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_container_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_input2.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_kratos_logs_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/k8s/config_task_helm_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_input2.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_kratos_logs_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_container_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_input2.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_kratos_logs_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_function_helm_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_input2.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_kratos_logs_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_container_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_azure_monitor.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_input1.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_input2.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_input3.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_input4.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_kratos_logs_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_kratos_thanos_prd.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_otelcollector_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/examples/otelconfigs/vm/config_task_helm_telemetry_endpoint_kratos_thanos_stg.yaml
  • src/compute-plane-services/byoo-otel-collector/generator/doc/README.md
  • src/compute-plane-services/byoo-otel-collector/generator/source-config.yaml
  • src/compute-plane-services/byoo-otel-collector/internal/otelconfig/templates/config-k8s-container.yaml.tmpl
  • src/compute-plane-services/byoo-otel-collector/internal/otelconfig/templates/config-k8s-helm.yaml.tmpl
  • src/compute-plane-services/byoo-otel-collector/internal/otelconfig/templates/config-vm-container.yaml.tmpl
  • src/compute-plane-services/byoo-otel-collector/internal/otelconfig/templates/config-vm-helm.yaml.tmpl

@kristinapathak
kristinapathak force-pushed the kpathak/byoo-exporter-metrics branch from 3a346d5 to ba0b72e Compare August 3, 2026 05:17
Retain HTTP, gRPC, queue, and enqueue diagnostics from the Collector self-scrape. Regenerate BYOO templates and examples.

Refs #531

Signed-off-by: Kristina Pathak <kpathak@nvidia.com>
@kristinapathak
kristinapathak force-pushed the kpathak/byoo-exporter-metrics branch from 3d97c30 to 9795e8e Compare August 3, 2026 05:53
@kristinapathak
kristinapathak added this pull request to the merge queue Aug 3, 2026
Merged via the queue into main with commit ac4f10d Aug 3, 2026
19 checks passed
@kristinapathak
kristinapathak deleted the kpathak/byoo-exporter-metrics branch August 3, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose BYOO exporter diagnostic metrics

2 participants