You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(telemetry): the devops-cli dashboard finds each sub-command from its series and repeats a panel for each #2700
The devops-cli Telemetry dashboard (k8s/monitoring/dashboards/devops-cli.json) holds its command variable as a hand-kept custom list of 41 command groups. A new command group shows on the dashboard only after a person adds it to the list. The "Subcommand Latency Breakdown" row reads devops_cli_command_duration_seconds, which is the time of the whole command group, so no panel shows a sub-command such as devops config set.
devops_cli_subcommand_duration_seconds is sent for each sub-command, but its command label holds only the leaf name (set, list). The leaf names of different groups are the same, so the dashboard cannot tell config list from pr list, and no dashboard reads the series.
Proposed Solution & Architectural Design
OTelTyper sends devops_cli_subcommand_duration_seconds with the labels command (the command group, such as config), sub_command (the command path below devops, such as config set or pr threads reply) and status. Click's command_path gives both.
The dashboard gets its command variable from label_values(devops_cli_command_total, command), and a new multi-value sub_command variable with All from label_values(devops_cli_subcommand_duration_seconds{command=~"$command"}, sub_command). A new command or sub-command shows without a dashboard change.
The sub-command row has one calls panel by sub_command, and one latency panel (p50, p95, p99, mean, count) titled Telemetry: $sub_command that repeats for each selected sub_command.
Activity