Repository navigation
Closed
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/aiAI review pipeline, personas, prompts, LLM client, or RAGscope/telemetryOpenTelemetry tracing spans, Prometheus metrics, and Jaegertype/featureType feature: a new function
Milestone
Description
Summary
The user tracks local LLM usage against their hardware investment ($7,000) to measure amortization, daily savings run-rate, and break-even payoff. Currently:
ai.hardware_cost_usdandai.reference_modelare not displayed indevops config showor documented inconfig.example.yaml.is_local()only checks static domain suffixes (.lan, .local) and hostnames, failing to identify cluster/gateway endpoints (e.g. matchingk8s.domain,cloudflare.domain, orai.gateway_url). As a result, requests through cluster gateways are misclassified as external and excluded from local hardware savings calculations, showing $0 equivalent spend.- OpenTelemetry and Prometheus AI telemetry does not emit equivalent local spend counters, and the Grafana AI spend dashboard lacks panels for tracking local hardware savings and payoff against hardware spend.
Deliverables
- Add
opt.AI_HARDWARE_COST_USDandopt.AI_REFERENCE_MODELtodevops config showand document them inconfig.example.yaml. - Enhance
is_local()insrc/devops_cli/ai/spend/pricing.pyto identify cluster endpoints and local gateway hosts via settings (ai.gateway_url,ai.api_base_url,k8s.domain,cloudflare.domain,ai.ollama_urls). - Add
AI_LOCAL_COST_EQUIVALENT_USD_TOTAL(devops_cli_ai_local_cost_equivalent_usd_total) counter instrument to track cumulative counterfactual hosted savings. - Update
track_request_spend()insrc/devops_cli/ai/spend/ledger.pyto emit equivalent spend when requests execute on local/cluster infrastructure. - Add local hardware savings and investment amortization payoff panels to
k8s/monitoring/dashboards/ai-spend.json. - Update
/workspaces/devops-cli/config.yamlto setai.hardware_cost_usd: 7000.0. - Unit & integration tests for local identification, config visibility, OTLP metrics emission, and dashboard linting.
Metadata
Metadata
Assignees
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/aiAI review pipeline, personas, prompts, LLM client, or RAGscope/telemetryOpenTelemetry tracing spans, Prometheus metrics, and Jaegertype/featureType feature: a new function
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(ai): track local llm usage against hardware spend and recognize …
dan-petty commentedon Oct 2, 2026
Closed by #934, merged into
release/v0.2.25.GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by
devops gh issues close-merged.feat(release): v0.2.25 (#1089)