How gridscale/linux-psi-telegraf-plugin works
Main Components
a. Data Sources:
• Three separate files: /proc/pressure/cpu, /proc/pressure/memory, /proc/pressure/io
b. Plugin Components:
• PSI Plugin (main processing unit)
• Execd input plugin interface that Telegraf uses to execute the binary
• Metric collection logic
c. Output/Integration:
• Telegraf as the receiving system
• Metric output format
• Potential connection to InfluxDB (final destination)
Flow and Relationships
a. Data Flow Direction:
1. Linux Kernel PSI files → PSI Plugin
2. PSI Plugin → Telegraf execd input
3. Telegraf → InfluxDB
b. Processing Stages:
• Metric transformation:
• Raw PSI data → Structured metrics (pressure and pressureTotal)
• Metric tagging process (resource, type)
Specific Implementation Details
a. Metrics Processing:
• Two main measurement types:
• pressureTotal (with 'total' field)
• pressure (with avg10, avg60, avg300 fields)
b. Configuration:
• A small section showing the execd configuration
Additional Elements
• Version compatibility note (Telegraf 1.30+)
• Metric tagging system
• Timestamp handling
Technical Details to Highlight
• That it's a Go-based plugin
• It runs as an external process (execd)
• Metric structure with tags and fields