VictoriaMetrics / metrics

Lightweight alternative to github.com/prometheus/client_golang
MIT License
543 stars 63 forks source link

linux process metrics: add error handling for metrics from `/proc/self/io` #43

Closed zekker6 closed 1 year ago

zekker6 commented 1 year ago

Add error handling logic for /proc/self/io stats. Errors will be logged once with relevant context, further errors will only be tracked by metrics:

process_io_stats_read_errors_total{reason="not_found"} 0
process_io_stats_read_errors_total{reason="permission_denied"} 3
process_io_stats_read_errors_total{reason="other"} 0

Related issue - #42

valyala commented 1 year ago

@zekker6 , thanks for the fix!