r/devops • • 19h ago

Discussion How do you determine whether your LLM routing layer is reducing costs once retries and failed outputs are factored in?

8 Upvotes

Routing requests to cheaper models sounds straightforward until you start accounting for what happens when the output isn't usable. Take a data extraction pipeline for example where a smaller model handles most requests fine but occasionally returns malformed JSON or misses required fields (those requests need to be retried and in some cases passed to a more expensive model anyway) which is why this is something I'd want to benchmark with a cost/quality based routing solution like Ramp Router because the initial routing decision might save money while the cumulative cost of getting a usable response tells me something else.

Would it make more sense to measure the cost per successfully validated output against a fixed model baseline rather than looking at average inference cost?

I also wanna understand how people are handling this on the observability side so like are you grouping all inference attempts under a single trace ID and attributing the cumulative cost to the original request? How are you factoring the additional latency into your benchmarks?


r/devops • • 23h ago

Discussion Never felt comfortable with Agents

5 Upvotes

As a DevOps/SecOps engineer, I am never comfortable granting broad permissions for agents to execute actions, and I have never permitted any open-source agents (such as Nanoclaw, Astrolabe, and others) because of the fear of AI and the need to separate privacy. Is it normal for y’all ??


r/devops • • 1h ago

Architecture SRE agent: alert → AI investigation → human-reviewed fix MR on GitLab. How to orchestrate.

2 Upvotes

I'm an SRE, and most of my time goes to investigating issues triggered by alerts. I already do most of the investigation with an agent (HolmesGPT), but I still start it by hand and act on the result myself. It's the same loop every time:

- an alert fires

- I run HolmesGPT against the alert and check its findings

- if the cause is on the platform side, I open an MR to our GitOps repo

- if the cause is in the application, I hand it over to the engineering team

I want to automate this loop: investigation, a GitLab issue routed to the right team, and a proposed fix MR.

Requirements

  1. Measurable (most important). I need one number: successfully resolved events, per team. Resolved means:

    - a human confirmed the root cause was correct

    - the fix MR was merged

    - verification passed (e.g. the alert cleared after deploy)

    - no recurrence within 30 days

  2. Open to other teams. SRE comes first, but QA and engineering should be able to adopt it without a redesign. They investigate differently (failing tests, bug reports), so the investigation step must be pluggable, and everything after it shared.
  3. Human in the loop. Humans can edit the investigation report before a fix starts, iterate on the MR, and are the only ones who can merge.

My design ideas:

SRE flow

  1. Alertmanager → GitLab pipeline → read-only HolmesGPT investigation (k8s, Thanos, Elasticsearch, ArgoCD, git log)
  2. Output: a GitLab issue with the report and a small YAML contract (scope, allowed repo paths, verification criteria). Application causes go to the owning team's project.
  3. Gate 1: humans review and edit the issue
  4. mr-agent opens a Draft MR
  5. Gate 2: iterate on it with u/mr-agent comments, and a human merges
  6. ArgoCD deploys → the agent verifies

Other teams plug in their own investigation step that produces the same issue contract. mr-agent, the gates, verification and the KPIs are shared.

Stack: self-hosted GitLab CI/CD, Kubernetes, ArgoCD, HolmesGPT, and an in-house AI MR agent (mr-agent) that handles fix, iterate, review and verify.

Open question: who orchestrates?

- A) Deterministic GitLab CI pipeline.

- Separate jobs, with GitLab events, labels and permissions enforcing the gates.

- The LLM only works inside a step.

- Predictable, but the human picks the next step.

- B) LLM orchestration.

- One mr-agent orchestrate job runs on every event.

- It decides the next action (re-investigate, fix, iterate, hand over), and humans steer in plain language.

- Gates stay hard because code controls which tools exist in each state: open_mr only after a human approves, and never merge.

Where I'm stuck

I'm leaning towards A, but it's turning into a complicated pipeline:

- trigger jobs, manual jobs, comment webhooks, a delayed verify job, and dedup and grouping rules

- I'm not sure that splitting this into many deterministic steps is the right way to do it

- I still need humans to steer the process while it's being resolved, not only approve or reject at fixed points

B appeals to me because it needs far less configuration. My worry is asynchronicity:

- The human gates can take hours or days: someone edits the report tomorrow, or comments on the MR next week.

- An agent can't run and wait that long, so it has to stop at each gate, save its state somewhere (the GitLab issue), and resume on the next event: issue edit, comment, merge, or the 1h timer for verification.

- Every resume has to rebuild context correctly and notice what the human changed in the meantime.

- Two events arriving at the same time must not cause two conflicting actions.

Questions

  1. How would you design the pipeline and the orchestration for this?
  2. Do you see any problems with this design?

I'm open to a completely different design, so feel free to share how you'd approach the problem. If you know tools that already solve part of this, please point me to them. I'm leaning towards whatever needs the least configuration, glue code and scripting :-)


r/devops • • 15h ago

Discussion Anyone using Amazon bedrock for personal projects in the UK?

0 Upvotes

I want to use bedrock for a personal projects for learning purposes, but AWS support have told me I can’t access anthropic models without an account manager vouching for me. Of course I don’t have an account manager because it’s my personal AWS account.

Which models are people using in bedrock for personal projects? I’m building a personal assistant for general purpose life management as well as occasional coding assistance.