Watching the Delivery Plane Itself: Metrics, Traces and Logs for InfraOrcinus and Its Runners

By Chirag Panchal · Founder & Lead Architect · · 6 min read

What InfraOrcinus exposes so you can see whether the delivery plane is healthy: Prometheus metrics for requests, jobs, approvals, policy, pricing and AI; OpenTelemetry traces from both the server and the runner, with each step a span; structured logs for Loki; and a starter Grafana dashboard. How the stack is started, how /metrics is protected, and what the dashboard does not cover.

Development Status & Architectural Evolution: InfraOrcinus is in active development. Architecture specifications, internal interfaces, and operational protocols described herein reflect our current engineering design and are continuously refined to make InfraOrcinus robust, resilient, and enterprise-grade.

A delivery platform is the service you reach for when other services are in trouble, so it needs to be the one you can see into. "Is it slow, or is a runner stuck?" and "Are jobs finishing, or queuing?" should be answered by a graph, not by someone reading logs.

InfraOrcinus exposes the three usual signals, metrics, traces and logs, and ships a way to start the open-source tools that read them. This article describes what each signal contains, how to switch them on, and where the starter dashboard stops.


1. Metrics: What Is Counted

The server exposes Prometheus metrics at /metrics. They are grouped by what a platform operator asks about:

  • HTTP: request counts by status, and request duration as a histogram, so you can chart a 95th-percentile latency.
  • Jobs: jobs started and completed, job duration, and a gauge of active jobs right now. Gauges read at scrape time also report queue depth, jobs waiting for a person, and whether a runner is connected.
  • Governance: approvals, policy evaluations, authentication successes and failures, and inbound webhook events.
  • Cost and pricing: pricing lookups, labelled by cloud, source and origin, so you can see how much of an estimate was a live price and how much a fallback.
  • Notifications: deliveries.
  • AI: requests and their duration, plus investigations started, their steps, failures and the number running now.

/metrics is not public. It requires a bearer API token, and a scraper should use one holding only the metrics:read scope, which may scrape without any interactive role. Without that scope, the caller must be an administrator.


2. Traces: Server and Runner

Tracing uses OpenTelemetry. Set OTEL_ENABLED=true and the server exports traces over OTLP (gRPC by default, or HTTP/protobuf) to the collector you name with OTEL_ENDPOINT. A few related settings cover the protocol, headers and TLS, and the collector can also be configured from the product's Observability settings rather than only at start-up.

The runner exports traces the same way, under its own service name, infraorcinus-runner, unless you set another. Each step is a span, so one run reads as a trace that starts in the API and continues into the runner: queued, claimed, validate, plan, apply. When a run is slow, the trace shows whether the time went into waiting for a runner, pulling an image or the tool itself.

Health probes and /metrics itself are excluded from tracing so they do not drown the interesting spans.


3. Logs

The server writes structured logs to standard output, and the observability stack ships them to Loki through Promtail. Logs of runs are masked for secrets before they are stored or shown, and the same masking applies to what the AI Troubleshooter reads. For audit purposes, the audit trail is a separate record and can be streamed to a SIEM, as the audit article describes.


4. Starting the Stack

There are two ways:

  • With the application's own Compose file, which starts the services alongside the app.
  • Independently, with docker-compose.observability.yml, useful when InfraOrcinus is already running locally or elsewhere. It starts Prometheus, Grafana, Jaeger, Loki and Promtail, with every image pinned by digest and every port bound to loopback only.

For the independent stack, edit the Prometheus target to point at your running instance, and give Prometheus a token so it can read /metrics. Prometheus does not expand environment variables in its configuration, so the target must be written literally.

The InfraOrcinus Overview dashboard is provisioned automatically. Its JSON is in the repository if you would rather import it into a Grafana you already run.


5. What the Starter Dashboard Covers, and What It Does Not

It has four panels, all driven by the Prometheus metrics: HTTP requests, HTTP latency, active jobs and job outcomes. That is enough to answer "is the API healthy, and are jobs flowing?" in one glance.

It does not include panels for approvals, policy evaluations, pricing origin, notifications or the AI metrics, even though those metrics exist. It has no alert rules and no panel for queue depth, jobs waiting for a person or runner presence, although the gauges exist. Treat it as a starting point you extend, not a finished operations console. Useful next panels are the ratio of live to fallback prices, the policy block rate, and AI investigation failures.

Two cautions:

  • Alerts are yours to write. Metrics are exposed; nothing in the stack decides what is an incident for your organization.
  • Traces can carry business detail. Send them only to a collector you trust, and decide your retention.

Summary

InfraOrcinus exposes Prometheus metrics behind authentication, OpenTelemetry traces from both the server and the runner with each step as a span, and structured, secret-masked logs for Loki. A Compose file starts Prometheus, Grafana, Jaeger, Loki and Promtail with pinned images on loopback, and a four-panel Grafana dashboard gives a first view. Everything beyond that, panels for the other metrics and the alerts, is yours to build on top.