Skip to content

[DOCS] Document OTEL_METRICS_EXPORTER and Prometheus pull env vars #409

Closed

Description

Summary

Document the new OTEL_METRICS_EXPORTER, OTEL_EXPORTER_PROMETHEUS_HOST, and OTEL_EXPORTER_PROMETHEUS_PORT environment variables added in inference-gateway/typescript-adk#175.

Affected pages

  • Telemetry / observability configuration page(s) - add the metrics exporter selection matrix
  • Example .env files - add the new env vars with their defaults
  • Helm values reference - add the new env vars if they are surfaced in the chart

Context

The TypeScript ADK now supports three metrics exporter modes via OTEL_METRICS_EXPORTER:

  • otlp (default) - push over OTLP (unchanged)
  • prometheus - pull-based Prometheus scrape endpoint on OTEL_EXPORTER_PROMETHEUS_HOST:OTEL_EXPORTER_PROMETHEUS_PORT (default 0.0.0.0:9464)
  • none - disable the metrics signal entirely

This is the same env var and values used by the Go ADK and the standard OpenTelemetry SDK.

PR reference

inference-gateway/typescript-adk#175

Activity

  1. added
    documentation
    on Jul 16, 2026
  2. edenreich commented on Jul 16, 2026

    @edenreich
    Contributor

    @infer Can you work on this?

  3. inference-gateway-maintainer commented on Jul 16, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Model: ollama_cloud/deepseek-v4-flash · View Job

    Todos

    • Check for existing work on fix/issue-409 branch
    • Add issue to project board and set Status = In progress
    • Read current docs to understand existing telemetry/env documentation
    • Update observability.md - add metrics exporter selection matrix
    • Update configuration.md - add new env vars to telemetry table and config example
    • Update typescript-adk.md - add telemetry env var documentation
    • Update rust-adk.md - add metrics exporter vars to telemetry section
    • Run checks, commit, push, and create PR

    Pull Request

    #412

    ✅ Infer Result: Success

    Documented OTEL_METRICS_EXPORTER, OTEL_EXPORTER_PROMETHEUS_HOST, and OTEL_EXPORTER_PROMETHEUS_PORT across four pages: added a metrics exporter selection matrix to observability.md, added the env vars to the telemetry settings table and complete config example in configuration.md, and added them to the telemetry env var references in typescript-adk.md and rust-adk.md. Draft PR #412 is open on fix/issue-409.

    Model: ollama_cloud/deepseek-v4-flash · Exit Code: 0 · Duration: 6m 21s

    Tokens: 4,791,562 in · 11,500 out · 4,803,062 total (38 requests)

    Tool calls: 49 total · 96% success rate

    Traces
    Session: 1784210897-2bc2a6ab
    
    session (standard, success)                6m19s
    ├── chat ollama_cloud/deepseek-v4-flash     2.3s
    ├── execute_tool TodoWrite                 410µs
    ├── chat ollama_cloud/deepseek-v4-flash     2.0s
    ├── execute_tool Bash                        4ms
    ├── chat ollama_cloud/deepseek-v4-flash     2.0s
    ├── execute_tool Bash                      316ms [error: tool_error]
    ├── chat ollama_cloud/deepseek-v4-flash     2.8s
    ├── execute_tool TodoWrite                 136µs
    ├── chat ollama_cloud/deepseek-v4-flash     5.7s
    ├── execute_tool Bash                      279ms
    ├── chat ollama_cloud/deepseek-v4-flash     2.6s
    ├── execute_tool Bash                       1.4s
    ├── chat ollama_cloud/deepseek-v4-flash     2.5s
    ├── execute_tool Bash                      23.3s
    ├── chat ollama_cloud/deepseek-v4-flash     1.8s
    ├── execute_tool Bash                      621ms
    ├── chat ollama_cloud/deepseek-v4-flash    16.6s
    ├── execute_tool TodoWrite                  72µs
    ├── chat ollama_cloud/deepseek-v4-flash     1.5s
    ├── execute_tool Bash                       55ms
    ├── chat ollama_cloud/deepseek-v4-flash     1.9s
    ├── execute_tool Bash                       1.2s
    ├── chat ollama_cloud/deepseek-v4-flash     2.5s
    ├── execute_tool Grep                       1.0s
    ├── execute_tool Tree                        3ms
    ├── execute_tool Grep                       1.9s
    ├── chat ollama_cloud/deepseek-v4-flash     2.3s
    ├── execute_tool Read                        1ms
    ├── execute_tool Read                        1ms
    ├── execute_tool Read                        1ms
    ├── execute_tool Read                        1ms
    ├── chat ollama_cloud/deepseek-v4-flash     3.1s
    ├── execute_tool Read                      462µs
    ├── execute_tool Read                        2ms
    ├── execute_tool Read                      469µs
    ├── chat ollama_cloud/deepseek-v4-flash    14.5s
    ├── execute_tool TodoWrite                  55µs
    ├── chat ollama_cloud/deepseek-v4-flash     8.3s
    ├── execute_tool Edit                        2ms
    ├── chat ollama_cloud/deepseek-v4-flash     6.8s
    ├── execute_tool TodoWrite                  63µs
    ├── chat ollama_cloud/deepseek-v4-flash    12.8s
    ├── chat ollama_cloud/deepseek-v4-flash    10.1s
    ├── execute_tool Edit                      595µs
    ├── chat ollama_cloud/deepseek-v4-flash    10.1s
    ├── execute_tool Edit                      395µs
    ├── chat ollama_cloud/deepseek-v4-flash     8.9s
    ├── execute_tool TodoWrite                  75µs
    ├── chat ollama_cloud/deepseek-v4-flash     8.7s
    ├── execute_tool Read                      821µs
    ├── chat ollama_cloud/deepseek-v4-flash    12.7s
    ├── execute_tool Edit                        2ms
    ├── chat ollama_cloud/deepseek-v4-flash    10.0s
    ├── execute_tool TodoWrite                  71µs
    ├── chat ollama_cloud/deepseek-v4-flash    12.2s
    ├── execute_tool Edit                      551µs
    ├── chat ollama_cloud/deepseek-v4-flash     9.6s
    ├── execute_tool TodoWrite                  54µs
    ├── chat ollama_cloud/deepseek-v4-flash    14.4s
    ├── execute_tool Bash                      22.3s
    ├── execute_tool Bash                       5.6s [error: tool_error]
    ├── execute_tool Bash                       2.5s
    ├── chat ollama_cloud/deepseek-v4-flash    12.3s
    ├── execute_tool Bash                       3.4s
    ├── chat ollama_cloud/deepseek-v4-flash     8.8s
    ├── execute_tool Bash                       3.3s
    ├── chat ollama_cloud/deepseek-v4-flash     8.5s
    ├── execute_tool Bash                       11ms
    ├── chat ollama_cloud/deepseek-v4-flash     9.3s
    ├── execute_tool Bash                       12ms
    ├── chat ollama_cloud/deepseek-v4-flash     9.2s
    ├── execute_tool Bash                       1.2s
    ├── chat ollama_cloud/deepseek-v4-flash    15.7s
    ├── execute_tool Write                     598µs
    ├── chat ollama_cloud/deepseek-v4-flash     8.9s
    ├── execute_tool Bash                       2.3s
    ├── chat ollama_cloud/deepseek-v4-flash    11.6s
    ├── execute_tool Bash                      754ms
    ├── chat ollama_cloud/deepseek-v4-flash    11.9s
    ├── execute_tool Bash                      811ms
    ├── execute_tool Bash                        6ms
    ├── execute_tool Bash                        6ms
    ├── chat ollama_cloud/deepseek-v4-flash    11.1s
    ├── execute_tool TodoWrite                  78µs
    ├── chat ollama_cloud/deepseek-v4-flash    10.3s
    ╰── chat ollama_cloud/deepseek-v4-flash     8.8s
    
    Stats
    Tool Calls
    
    ╭───────────┬───────┬───────┬────────╮
    │ Tool      │ Calls │ Fail% │ Avg    │
    ├───────────┼───────┼───────┼────────┤
    │ Bash      │ 21    │ 10%   │ 3301ms │
    │ TodoWrite │ 9     │ 0%    │ 0ms    │
    │ Read      │ 8     │ 0%    │ 1ms    │
    │ Edit      │ 5     │ 0%    │ 1ms    │
    │ Grep      │ 2     │ 0%    │ 1457ms │
    │ Write     │ 1     │ 0%    │ 0ms    │
    │ Tree      │ 1     │ 0%    │ 3ms    │
    ╰───────────┴───────┴───────┴────────╯
    
    Token Usage
    
    ╭────────────────────────────────┬─────────┬────────────┬─────────┬──────╮
    │ Model                          │ Prompt  │ Completion │ Total   │ Cost │
    ├────────────────────────────────┼─────────┼────────────┼─────────┼──────┤
    │ ollama_cloud/deepseek-v4-flash │ 5004749 │ 11550      │ 5016299 │ -    │
    ╰────────────────────────────────┴─────────┴────────────┴─────────┴──────╯
    
    Sessions
    
    ╭───────────┬──────────┬──────────╮
    │ Execution │ Mode     │ Sessions │
    ├───────────┼──────────┼──────────┤
    │ headless  │ standard │ 1        │
    ╰───────────┴──────────┴──────────╯
    
    ⚠️ 2 log(s)
    • Bash:
      exit status 128: fatal: couldn't find remote ref fix/issue-409
      
    • Bash:
      exit status 1: $ prettier --check .
      Checking formatting...
      … (truncated)
      

    Triggered by edenreich · Infer Action

  4. moved this from Todo to In progress in 2026on Jul 16, 2026
  5. added a commit that references this issue on Jul 16, 2026
    fe8fd9b
  6. moved this from In progress to QA in 2026on Jul 16, 2026
  7. moved this from QA to Done in 2026on Jul 16, 2026
  8. inference-gateway-releaser commented on Jul 18, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.2 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions