Skip to content

feat(service): the devops-cli dashboard shows the Service and filters by job #2479

Closed
1 of 1 issue completed

Description

@dan-petty

Problem or Motivation

A go-live review of the roadmap Service (2026-10-28) found gaps. This item holds the three that need no new infrastructure:

  • No dashboard shows the devops_cli_service_* series (k8s/monitoring/dashboards/devops-cli.json).
  • No panel of that dashboard filters by job. The panel GitHub Requests by Resource adds the requests of all jobs, but the alert RoadmapServiceGitHubRequestsHigh sends the reader to it.
  • k8s/README.md says that the Service and the cluster Jobs act as one App. No text says what that means for the budget.

Proposed Solution & Architectural Design

  • A row "Roadmap Service" on the devops-cli Telemetry dashboard charts each devops_cli_service_* series.
  • A job variable reads its values from devops_cli_command_total and devops_cli_github_requests_total, and each Prometheus query of the dashboard filters by it. The first series alone does not list the Service in most hours, because the Service adds to it only when devops serve stops.
  • A sentence in k8s/README.md says that the Jobs act as the same App and do not count in service.github_requests_per_hour. Only the Service makes a RequestBudget. A Job pod has an emptyDir home and no budget record.

What moved out of this item

Target Subsystem

Dashboards and documentation.

Existing Tool Considered

Grafana dashboard variables and Prometheus label filters. Nothing is built.

Acceptance criteria

  • devops-cli.json has a row "Roadmap Service", and its panels read each devops_cli_service_* series.
  • devops-cli.json has a query variable job with Multi-value and All, and each Prometheus query of the dashboard filters by $job.
  • k8s/README.md says that the Jobs act as the same App and do not count in service.github_requests_per_hour.

Alternatives check of 2026-11-03: not-applicable.
Class: chore, no search.
Tool: none found.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    source/agent
    type/chore
    status/new
    value/medium
    effort/low
    on Oct 28, 2026
  2. dan-petty commented on Oct 28, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/chore. The title is prefixed chore and the body bundles small operational and config adjustments.
    • Priority: P3-Low. The body states these are four lower-priority gaps from a go-live review.
    • Value: Medium. The changes improve cost attribution and observability but add no new user-facing capability.
    • Effort: Low. Each part is a config edit, a dashboard row, or a manual key step; no new code path is required.
    • Related: feat(k8s): the LiteLLM gateway keeps virtual keys in an in-cluster Postgres, so devops-cli can mint scoped, expiring gateway keys #1635, which asks for a different change. Both concern the LiteLLM virtual-key system; 1635 builds the key-minting infrastructure while the candidate creates a specific key for the Service and adds its dashboard row.
  3. added
    priority/p3-low
    scope/service
    on Oct 28, 2026
  4. devops-cli-service commented on Oct 30, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at c6a837d until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • Who creates the LiteLLM virtual key for the Service? (a person decides)

    The next refine round also looks at the item again when a commit on the default branch changes one of these files: k8s/devops/roadmap-service/deployment.yaml.

  5. devops-cli-service commented on Nov 3, 2026

    @devops-cli-service
    Contributor

    Alternatives check: not-applicable

    Class: chore. The check makes no search and no model call for an item of this class.

    Tool: none found

    Checked on 2026-11-03. A person decides what this means for the item. The check changes no label and closes no issue.

  6. dan-petty commented on Nov 5, 2026

    @dan-petty
    OwnerAuthor

    Premise check of #2479 against origin/main 9e439fa.

    1. Gateway key (blocked). A LiteLLM virtual key needs a Postgres database. k8s/llm/gateway/ sets no DATABASE_URL, and its general_settings hold only master_key. Issue feat(k8s): the LiteLLM gateway keeps virtual keys in an in-cluster Postgres, so devops-cli can mint scoped, expiring gateway keys #1635 (open, a person item) adds that database. Without it, the Service cannot get a scoped key with a budget and a requests-per-minute limit. A change here would need a second key source: a compensating build. The gateway already tells callers apart by x-litellm-end-user-id (k8s/README.md, AI spend dashboard), so per-caller spend is visible without a key.
    2. Retry (already done). k8s/devops/configmap.example.yaml:22 sets ai.max_retries: 1, and k8s/README.md documents it. Nothing to change.
    3. Dashboard (open, not blocked). k8s/monitoring/dashboards/devops-cli.json has no devops_cli_service_* panel and no job variable.
    4. Jobs and the shared budget (open, documentation only). No sentence in k8s/README.md or k8s/devops/cronjob.yaml says that the Jobs share the Service App budget.

    The item bundles one part that waits on #1635 with parts that do not. Split it: plan the dashboard row, the job variable and the budget sentence as one item, and keep the gateway key part behind #1635. Part 2 needs no work.

  7. dan-petty commented on Nov 5, 2026

    @dan-petty
    OwnerAuthor

    Answer from project standards, under the owner's instruction of 2026-11-05.

    Question: Who creates the LiteLLM virtual key for the Service?

    Answer: A person creates the key, after #1635 delivers the gateway database. An agent does not create it. The pull request after that gives the Service the key name only, and no key value.

    Source: AGENTS.md says that only a person changes secrets. #1635 also makes a person mint its first test key.

    Why the key must wait: LiteLLM keeps virtual keys only in Postgres. The gateway has no database: no manifest under k8s/ sets DATABASE_URL or LITELLM_SALT_KEY, and general_settings in k8s/llm/gateway/config.yaml:293-297 has no database setting. So the "Dependencies: None" line of the proposed design is wrong for this part.

    State of each part

    I checked each part against origin/main at 2db71f2.

    Part State Evidence
    Gateway key Blocked by #1635 See above. Spend per caller is already visible by the end_user label (k8s/README.md:274, k8s/llm/gateway/config.yaml:235). That label sets no budget and no limit.
    One model retry Delivered by #2500 k8s/devops/configmap.example.yaml:22 sets ai.max_retries: 1. The live ConfigMap also shows max_retries: 1.
    Dashboard row Open, no dependency No file in k8s/monitoring/dashboards/ contains devops_cli_service_.
    job variable Open, no dependency devops-cli.json has only the variables command and sub_command, and no panel filters by job. The panel GitHub Requests by Resource adds the requests of all jobs, but the alert RoadmapServiceGitHubRequestsHigh sends the reader to it (k8s/README.md:705).
    Shared budget with the Jobs Open, no dependency k8s/README.md:573 says that the Service and the cluster Jobs act as one App. No text says what that means for the budget.

    Corrections for the plan

    • Shared budget. The proposed design says that the Jobs count their GitHub requests in the Service's budget. That is not true of the code, so a sentence that says it would be wrong. Only the Service makes a RequestBudget (src/devops_cli/server/service.py:742), and it keeps the record on the Service's volume. The two Job templates have an emptyDir home (k8s/devops/cronjob.yaml, k8s/devops/cronjob-runner.yaml). Recommendation: the sentence says that the Jobs act as the same App and do not count in service.github_requests_per_hour. To count them, the Jobs would need a ledger across pods, and this item does not ask for one.
    • Two jobs. The body says that Prometheus scrapes the pod as two jobs. Both paths now give job="roadmap-service" (k8s/monitoring/prometheus-values.yaml:665-666). The job variable is still useful: the values are devops-cli, devops-cli-job and roadmap-service.
    • Key source. The Service and the Jobs read the same Secret devops/devops-cli (k8s/devops/roadmap-service/deployment.yaml:72-74, k8s/devops/cronjob.yaml:49-50). feat(k8s): the LiteLLM gateway keeps virtual keys in an in-cluster Postgres, so devops-cli can mint scoped, expiring gateway keys #1635 puts the change of the Jobs' key out of scope. So the Service needs its own source for DEVOPS_CLI_AI_API_KEY, in the work that follows feat(k8s): the LiteLLM gateway keeps virtual keys in an in-cluster Postgres, so devops-cli can mint scoped, expiring gateway keys #1635.

    What remains

    The key is not the only part left. The dashboard row, the job variable and the budget sentence do not wait on #1635. Recommendation, as in the premise comment of 2026-11-05: split the item. One item holds those three parts. The key stays behind #1635. Part "one model retry" needs no work.

    Refine asks a person to split #1635 into 5 items, so #1635 does not move until a person splits it or keeps it as one item.

    This comment changes no code and no label.

  8. added
    owner/agent
    on Nov 5, 2026
  9. changed the title [-]chore(service): the roadmap Service gets its own gateway key, a dashboard row, a shared budget with the Jobs, and one model retry[/-] [+]feat(service): the devops-cli dashboard shows the Service and filters by job[/+] on Nov 5, 2026
  10. dan-petty commented on Nov 5, 2026

    @dan-petty
    OwnerAuthor

    Answer from project standards, under the owner's instruction of 2026-11-05.

    Question: How do the parts of this item split, given that the key waits on #1635?

    Answer: The key moved to #3685, blocked by #1635. The one model retry is out, because #2500 delivered it. This item keeps the dashboard row, the job variable and the budget sentence, and I edited the body and the title to say this. I removed the old refine section from the body, because it named the key, the retry and a wrong budget sentence. The next refine round can write a new one.

    Source: AGENTS.md rule 1 and the premise comments of 2026-11-05 on this issue.

    Question: Do the Jobs count in the Service's budget?

    Answer: No. The sentence in k8s/README.md says that the Jobs act as the same App and do not count in service.github_requests_per_hour.

    Source: I checked this again at 05544ab. Only src/devops_cli/server/service.py makes a RequestBudget, and its record is on the Service's volume. k8s/devops/cronjob.yaml and k8s/devops/cronjob-runner.yaml give the Job pods an emptyDir home. Prometheus shows the Jobs apart from the Service: devops_cli_github_requests_total has the values devops-cli, devops-cli-job and roadmap-service for job.

    Question: Which series gives the values of the job variable?

    Answer: devops_cli_command_total, as the command variable does. A 7-day query shows this series with all three values. devops_cli_service_* has only job="roadmap-service".

    Source: The command variable of k8s/monitoring/dashboards/devops-cli.json, and a Prometheus query of 2026-11-05.

    A person must still mint the key of #3685 after #1635 merges, because only a person changes secrets.

  11. dan-petty commented on Nov 5, 2026

    @dan-petty
    OwnerAuthor

    Answer from project standards, under the owner's instruction of 2026-11-05.

    Question: Which series gives the values of the job variable? This comment corrects the answer of the comment before it.

    Answer: devops_cli_command_total and devops_cli_github_requests_total together, with the selector {__name__=~"devops_cli_command_total|devops_cli_github_requests_total"}. I edited the body to say this. The acceptance criterion does not name a series, so it stays the same.

    Source: src/devops_cli/main.py adds to devops_cli_command_total only when a command ends, and the Service runs devops serve until it stops. The dashboard opens at the last hour, and the list follows the time range. So the first answer did not give roadmap-service in most hours, and the steps of two alerts in k8s/README.md name that value. The live label values for the new selector are devops-cli and roadmap-service at 1 hour, and these two and devops-cli-job at 7 days. A 1-hour window over 7 days finds roadmap-service at each hourly point. The answer has no kubernetes-pods.

  12. added
    status/in-progress
    and removed
    status/new
    on Nov 5, 2026
  13. removed
    status/in-progress
    owner/agent
    on Nov 6, 2026
  14. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor
  15. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-06 02:22 UTC

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

    effort/lowpriority/p3-lowscope/servicesource/agenttype/chorevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions