← All projects

Observability

The Grafana stack I built and operate

I built an observability stack with metrics, central logs and custom collectors. My Grafana AI plugin fork uses OpenRouter.

The problem

Separate dashboards were not enough to run a hybrid cloud. During every investigation, engineers had to piece together infrastructure health, logs, recent changes, backup status and cloud cost from different places.

My responsibility

As the primary engineer on this platform, I designed and built it and still run it, including integrations, troubleshooting and documentation.

The decisions

Metrics go to Prometheus and logs to VictoriaLogs, with Grafana as the shared place to investigate. Where the network allows it, data is pulled. Remote workloads push it through Alloy. Dashboards, data sources, alert rules and deployment configuration are all versioned.

The solution

The stack runs in containers and combines exporters, Alloy, my own API collectors and workflow integrations. Terraform manages the infrastructure, and Ansible configures the stack through Azure DevOps. Deployment records sit next to metrics and logs. Scheduled reports cover availability and performance.

I made my own fork of an AI plugin for Grafana and connected it to OpenRouter. The assistant can help analyse query results across the data sources connected to Grafana. I can ask which machine used the most RAM, where errors appeared on a given day or which deployment failed. I check the findings against the data in Grafana. I am also building a small local model for the same kind of work.

Conceptual diagrams

How the Grafana assistant helps with an investigation
  1. A question in GrafanaFor example, which VM used the most RAM today?
  2. My plugin forkBuilds the analysis from results across connected data sources.
  3. OpenRouterConnects the assistant to a model that interprets the results.
  4. Back to the dataI verify the finding in Grafana before acting on it.
Example questions for the assistant
  • MetricsWhich machine used the most RAM in the selected period?
  • LogsWhich service logged the most errors today?
  • DeploymentsWhich deployment failed in the last run?

The outcome

The platform runs in production. Millions of log lines a day sit alongside metrics, deployment history, DNS findings, backup health, cost views and incident context. Engineers can investigate infrastructure and operational events in one shared place.

The takeaway

Dashboards are the easy part. Most of the work is reliable collection, clear ownership, validation and documentation. In practice that means onboarding new sources, investigating failures, maintaining integrations and documenting deployment and recovery.

Inside the solution

That includes the custom integrations, deployment, troubleshooting and the documentation that keeps the platform maintainable.

The scale of this platform

Dashboards as code
50

Versioned and deployed with the platform.

Log lines per day
Millions

Central logging with operational context.

Log sources
50+

Hosts and devices sending logs to the stack.

DNS zones audited
130+

Automated checks across DNS zones.

Rounded figures from a November 2026 snapshot of this stack.

From infrastructure signals to operational action
  1. Collect

    Exporters · Alloy · APIs

    Pull where reachable; push for remote workloads. Custom collectors add operational context.

  2. Store

    Prometheus · VictoriaLogs

    Separate stores for metrics and logs. Cost and change data add context.

  3. Investigate

    Grafana

    Dashboards, log exploration, change history, and alert evaluation in one workspace, plus an AI assistant for infrastructure questions.

  4. Act

    Reports · Alerts · Workflows

    Reports, on-call notifications and ticketing help the team act on findings.

Terraform · Ansible · Azure DevOpsVersioned infrastructure, configuration, dashboards, and alert rules.

Simplified conceptual architecture. Production identifiers and access details are omitted.

Infrastructure signals

Linux and Windows metrics, central logs, service probes, and existing monitoring integrations.

Custom collectors

DNS auditing, backup health, cloud cost, and credential expiry brought into a shared operational view.

Change context

Pipeline deployment records alongside telemetry, with incident history and automation workflow results.

Operational workflows

Alerts and reports feed on-call and ticketing workflows. n8n handles recurring operational tasks.

Decisions and trade-offs

Git as the source of truth

Dashboards, data sources, alerts, and configuration are versioned and deployed through Azure DevOps. Dashboard validation runs before deployment. Lasting changes belong in code rather than only in the UI.

Separate infrastructure and configuration

Terraform owns the cloud resources, and Ansible owns stack configuration and deployment. That keeps it clear which tool is responsible for what when I change or rebuild the platform.

Adapt collection to connectivity

Pull and push collection solve different connectivity constraints. Supporting both broadens coverage, but adds agent configuration and ingestion paths to maintain.

Plan for operations from the start

A container-based runtime keeps the stack understandable. Availability design, retention, backup verification, and recovery procedures remain engineering responsibilities; containers alone do not provide high availability.

Explore the lab

Let's connect

Something to build?
Let’s talk.

Hybrid cloud, observability, automation or an interesting technical problem.

Let's connect

Let’s talk.

If you have a project, a cloud problem or just want to talk about technology, you can reach me here.