Repository navigation
Closed
1 / 11 of 1 issue completed
Copy link
Labels
effort/lowEffort Low: little workpriority/p3-lowPriority P3: a small improvementscope/serviceThe long-running devops Service and its lanessource/agentFiled by an agenttype/choreType chore: maintenance, such as a dependency updatevalue/mediumValue Medium
Description
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 alertRoadmapServiceGitHubRequestsHighsends the reader to it. k8s/README.mdsays 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 Telemetrydashboard charts eachdevops_cli_service_*series. - A
jobvariable reads its values fromdevops_cli_command_totalanddevops_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 whendevops servestops. - A sentence in
k8s/README.mdsays that the Jobs act as the same App and do not count inservice.github_requests_per_hour. Only the Service makes aRequestBudget. A Job pod has anemptyDirhome and no budget record.
What moved out of this item
- The Service's own gateway key: feat(service): the roadmap Service uses its own gateway key #3685, blocked by feat(k8s): the LiteLLM gateway keeps virtual keys in an in-cluster Postgres, so devops-cli can mint scoped, expiring gateway keys #1635. LiteLLM keeps virtual keys only in Postgres, and the gateway has no database.
- One model retry: feat(service): roadmap-service runs at one replica, and each model call in the cluster is sent at most two times #2500 delivered it.
k8s/devops/configmap.example.yamlsetsai.max_retries: 1, so no work stays.
Target Subsystem
Dashboards and documentation.
Existing Tool Considered
Grafana dashboard variables and Prometheus label filters. Nothing is built.
Acceptance criteria
devops-cli.jsonhas a row "Roadmap Service", and its panels read eachdevops_cli_service_*series.devops-cli.jsonhas a query variablejobwith Multi-value and All, and each Prometheus query of the dashboard filters by$job.k8s/README.mdsays that the Jobs act as the same App and do not count inservice.github_requests_per_hour.
Alternatives check of 2026-11-03: not-applicable.
Class: chore, no search.
Tool: none found.
Sub-issues
Collapse Sub-issuesSub-issues
Loading 1 sub-issues
Metadata
Metadata
Assignees
Labels
effort/lowEffort Low: little workpriority/p3-lowPriority P3: a small improvementscope/serviceThe long-running devops Service and its lanessource/agentFiled by an agenttype/choreType chore: maintenance, such as a dependency updatevalue/mediumValue Medium
Activity
dan-petty commentedon Oct 28, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
The title is prefixed chore and the body bundles small operational and config adjustments.The body states these are four lower-priority gaps from a go-live review.The changes improve cost attribution and observability but add no new user-facing capability.Each part is a config edit, a dashboard row, or a manual key step; no new code path is required.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.devops-cli-service commentedon Oct 30, 2026
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.
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.devops-cli-service commentedon Nov 3, 2026
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.
dan-petty commentedon Nov 5, 2026
Premise check of #2479 against origin/main 9e439fa.
k8s/llm/gateway/sets noDATABASE_URL, and itsgeneral_settingshold onlymaster_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 byx-litellm-end-user-id(k8s/README.md, AI spend dashboard), so per-caller spend is visible without a key.k8s/devops/configmap.example.yaml:22setsai.max_retries: 1, andk8s/README.mddocuments it. Nothing to change.k8s/monitoring/dashboards/devops-cli.jsonhas nodevops_cli_service_*panel and nojobvariable.k8s/README.mdork8s/devops/cronjob.yamlsays 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
jobvariable and the budget sentence as one item, and keep the gateway key part behind #1635. Part 2 needs no work.dan-petty commentedon Nov 5, 2026
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.mdsays 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/setsDATABASE_URLorLITELLM_SALT_KEY, andgeneral_settingsink8s/llm/gateway/config.yaml:293-297has 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.
end_userlabel (k8s/README.md:274,k8s/llm/gateway/config.yaml:235). That label sets no budget and no limit.k8s/devops/configmap.example.yaml:22setsai.max_retries: 1. The live ConfigMap also showsmax_retries: 1.k8s/monitoring/dashboards/containsdevops_cli_service_.jobvariabledevops-cli.jsonhas only the variablescommandandsub_command, and no panel filters byjob. The panel GitHub Requests by Resource adds the requests of all jobs, but the alertRoadmapServiceGitHubRequestsHighsends the reader to it (k8s/README.md:705).k8s/README.md:573says that the Service and the cluster Jobs act as one App. No text says what that means for the budget.Corrections for the plan
RequestBudget(src/devops_cli/server/service.py:742), and it keeps the record on the Service's volume. The two Job templates have anemptyDirhome (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 inservice.github_requests_per_hour. To count them, the Jobs would need a ledger across pods, and this item does not ask for one.job="roadmap-service"(k8s/monitoring/prometheus-values.yaml:665-666). Thejobvariable is still useful: the values aredevops-cli,devops-cli-jobandroadmap-service.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 forDEVOPS_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
jobvariable 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.
[-]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[/+]dan-petty commentedon Nov 5, 2026
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
jobvariable 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.mdrule 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.mdsays that the Jobs act as the same App and do not count inservice.github_requests_per_hour.Source: I checked this again at 05544ab. Only
src/devops_cli/server/service.pymakes aRequestBudget, and its record is on the Service's volume.k8s/devops/cronjob.yamlandk8s/devops/cronjob-runner.yamlgive the Job pods anemptyDirhome. Prometheus shows the Jobs apart from the Service:devops_cli_github_requests_totalhas the valuesdevops-cli,devops-cli-jobandroadmap-serviceforjob.Question: Which series gives the values of the
jobvariable?Answer:
devops_cli_command_total, as thecommandvariable does. A 7-day query shows this series with all three values.devops_cli_service_*has onlyjob="roadmap-service".Source: The
commandvariable ofk8s/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.
dan-petty commentedon Nov 5, 2026
Answer from project standards, under the owner's instruction of 2026-11-05.
Question: Which series gives the values of the
jobvariable? This comment corrects the answer of the comment before it.Answer:
devops_cli_command_totalanddevops_cli_github_requests_totaltogether, 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.pyadds todevops_cli_command_totalonly when a command ends, and the Service runsdevops serveuntil it stops. The dashboard opens at the last hour, and the list follows the time range. So the first answer did not giveroadmap-servicein most hours, and the steps of two alerts ink8s/README.mdname that value. The live label values for the new selector aredevops-cliandroadmap-serviceat 1 hour, and these two anddevops-cli-jobat 7 days. A 1-hour window over 7 days findsroadmap-serviceat each hourly point. The answer has nokubernetes-pods.devops-cli-service commentedon Nov 6, 2026
Released in v0.64.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.64.0
devops-cli-service commentedon Nov 6, 2026
Live since 2026-11-06 02:22 UTC