Metrics Collector Study

This repository contains structured study notes, diagrams, OS internals research, and implementation details for building a high-performance metrics collector (similar to Prometheus Node Exporter).

Structure

metrics-collector-study/
├── 01-architecture/
├── 02-linux-internals/
├── 03-metric-computation/
├── 04-implementation-patterns/
├── 05-linux-practicals/
├── 06-crossplatform-notes/
└── 07-references/

The repository is structured into different sections: Each section contains Markdown files detailing concepts, system calls, algorithms, and design patterns used in production-grade metrics collectors.


Goals

✔ Understand Linux kernel interfaces for metrics
✔ Study system calls used by collectors
✔ Learn parsing techniques for /proc and /sys
✔ Understand counter deltas, resets as well as sliding windows
✔ Learn how to build a collector in C
✔ Understand portability for macOS/Windows


License

MIT License © 2025 Vugar Aghayev