Skip to content
Request full CV
All cases

Aerodisk

Storage monitoring on Prometheus, Thanos and Grafana

Result

A year of metric history

Task

The old statistics subsystem showed wrong numbers and slowed the storage system down. I designed and built monitoring with a year of history, a single sign-on and collectors in Go, and removed the old one.

Situation

Its own daemons kept statistics in SQLite, and some polls called heavy storage operations that hindered array management. CPU units were wrong, memory metrics had gaps, and logs filled the system disks.

Cause

The customer needed a year of history on the system disks, and a year of raw measurements grew too fast.

What I did

I checked the metric sources and units first. Prometheus collects the metrics, Thanos keeps them long term and Grafana draws the dashboards. I compared Prometheus federation, Thanos and VictoriaMetrics and chose Thanos, which thins old data for free: full data for seven days, five minute steps for 30 days and one hour steps for a year, in MinIO object storage on each controller. Grafana opens from the storage interface with the same login through nginx, and I wrote collectors for capacity, access, volumes and queues in Go. It ships as a system patch, since arrays have no internet.

How I checked

A collector restart, a skipped cycle and a long period query, where a missing measurement must not show as a real zero. For the login, sign out, an expired session and a forged user header.

Result

A year of history and the single sign-on went into the product. The old subsystem is gone, 34 files and 3275 lines, and with it the storage hangs it caused.

Stack

  • Go
  • Prometheus
  • Thanos
  • Grafana
  • MinIO
  • nginx
Request full CV

Try a question a recruiter asks