Skip to content

CAMEL-23615: camel-jbang - TUI add Metrics tab with dashboard, table, and raw view#23647

Merged
davsclaus merged 4 commits into
mainfrom
obs
May 29, 2026
Merged

CAMEL-23615: camel-jbang - TUI add Metrics tab with dashboard, table, and raw view#23647
davsclaus merged 4 commits into
mainfrom
obs

Conversation

@davsclaus
Copy link
Copy Markdown
Contributor

Summary

  • Add Metrics tab (key 9) with three view modes:
    • Dashboard (default): Two side-by-side panels — Camel (exchanges, route timers, event notifiers) and JVM (memory with bar chart, CPU, threads, GC)
    • Table (d key): Sortable/filterable table of all micrometer meters with scrollbar, page up/down, and row selection
    • Raw (r key): Live HTTP dump of the /metrics Prometheus endpoint with syntax coloring, scrollbar, and F5 refresh (preserves scroll position)
  • Add "More" dropdown (key 0) containing Circuit Breaker and Consumers tabs, positioned below the tab label
  • Parse micrometer meter data from status JSON (counters, gauges, timers, longTaskTimers, distribution)
  • Show metrics HTTP endpoint URL in dashboard header when available

Test plan

  • camel run myRoute.yaml --observe then camel monitor
  • Press 9 → dashboard with Camel and JVM panels
  • Press d → table view, use s/f to sort/filter, up/down/pgup/pgdn to scroll
  • Press r → raw Prometheus dump with syntax coloring, F5 to refresh, Esc to close
  • Press 0 → "More" dropdown, select Circuit Breaker or Consumers
  • Without --observe: shows "No metrics available" message

Claude Code on behalf of Claus Ibsen

… and raw view

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟
🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run
  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot although they are normally detected and executed by CI.
  • You can label PRs using skip-tests and test-dependents to fine-tune the checks executed by this PR.
  • Build and test logs are available in the summary page. Only Apache Camel committers have access to the summary.

⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

@github-actions github-actions Bot added the dsl label May 29, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 29, 2026

🧪 CI tested the following changed modules:

  • dsl/camel-jbang/camel-jbang-plugin-tui
All tested modules (2 modules)
  • Camel :: JBang :: Plugin :: TUI
  • Camel :: Launcher :: Container

⚙️ View full build and test results

davsclaus and others added 3 commits May 29, 2026 20:03
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
…and remember selection

Co-Authored-By: Claude <noreply@anthropic.com>
@davsclaus davsclaus merged commit 68e4d63 into main May 29, 2026
6 checks passed
@davsclaus davsclaus deleted the obs branch May 29, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant