Technical overviewData pipeline and monitoring

Sentinel

A system that records how two computers are doing, all day.

Source code

The code is private. How it works is explained below.

Role
Solo engineer
Evidence status
Live at sentinel.pesanth.com
Verified
2026-08-15

01

Purpose and scope

Two computers send readings every ten seconds. They travel through Kafka into long-term storage, and a public dashboard shows them.

What it is used for

  • See whether a server was really down.
  • Track temperature, memory, and disk space over time.
  • Keep a lasting record of what happened.
  • Python
  • Apache Kafka
  • Hadoop HDFS
  • Docker
  • Flask
  • systemd

02

Architecture

Break the pipeline

A simulation, not a live feed. The timings and limits match the real code.

Simulated clock2026-08-21 23:57:00 UTC40x speed

while Kafka is downresend in orderservercollectordesktopcollectorKafkastorage writerdaily foldersdisk buffer

Disk buffer

0 readings · est. 0.0 KiB of 64 MiB

Waiting to save

0 of 500 records · saves in 60 s

Archive

0 files

Nothing written yet.

Stop Kafka before the clock passes 00:00, then start it again.

  • Readings arrive every 10 to 60 seconds, and a save happens every 60 seconds.
  • Disk use assumes 680 B per reading.
  • In a real outage in August 2026, the buffer sent 5.4 MB in about eight seconds. It is slowed down here.
  • The real system has been stopped since 2026-08-25, so the public site shows a saved copy.

Collecting

Collector

Server collector

Sends readings from the server

Collector

Desktop collector

Sends readings from the desktop

Backup

Disk buffer

Holds readings during an outage

Sends readings

Moving data

Message queue

Kafka broker

Passes readings along

Saves, then confirms

Storing

Writer

Storage writer

Confirms only after saving

Archive

HDFS archive

One folder per day

Reads the archive

Showing

Website

Dashboard

Shows each computer's status

Public access

Cloudflare Tunnel

Puts it online with no open ports

Text equivalent: Each computer sends readings to Kafka. If Kafka is down, readings wait on disk. They are then stored by day, and the dashboard reads them back.

03

Engineering decisions

File readings by when they were taken

Late readings still land on the right day after an outage.

Confirm only after saving

An interruption repeats a batch instead of losing it.

Keep a local backup

Each computer holds readings on disk and resends them in order.

04

Verification evidence

  • 103 of 104 automated tests pass. One dashboard test has been failing since before 2026-08-23.
  • With Kafka stopped, five readings waited on disk and were resent when it returned.
  • After a restart, the archive grew from nine files to twelve with nothing lost.
verified-2026-08-15
$ python -m collector --once
5 readings · 0 delivered · 5 failed
$ docker compose start kafka
10 delivered · 5 replayed from disk
✓ /sentinel/raw/system/dt=2026-08-15

05

Limitations