about summary refs log tree commit diff
path: root/diskstats.c
Commit message (Collapse)AuthorAgeFilesLines
* Move the collector loop into scrape server code.Heikki Kallasjoki2018-12-231-1/+1
| | | | | | This paves the way for supporting parallel scrapes (#19); the implementation for that is going to need to track the state of the current scrape.
* Add basic test for the diskstats collector.Heikki Kallasjoki2018-12-121-1/+1
|
* Use a struct type for metric labels.Heikki Kallasjoki2018-12-071-4/+4
| | | | | | Resolves #4. The real readability benefits are for test code, which will follow up in due course.
* Include newline as delimiter when splitting /proc/diskstats.Heikki Kallasjoki2018-12-071-1/+1
| | | | | | Fixes #5. Splitting by space only caused the newline to end up as part of the last column, which was then ignored since the newline was considered trailing non-numeric data when parsing the value.
* Filter out unused devices from diskstats.Heikki Kallasjoki2018-11-301-0/+9
|
* Add support for matching with prefix in include/exclude lists.Heikki Kallasjoki2018-11-301-2/+2
|
* Add Apache License 2.0 headers and files.Heikki Kallasjoki2018-11-301-0/+16
|
* Add the discard metrics to diskstats collector.Heikki Kallasjoki2018-11-301-8/+10
|
* Refactor to allow excluding collectors from the build.Heikki Kallasjoki2018-11-301-1/+1
| | | | | | | Stop including hardcoded links to all collectors from main.c. Instead, use a preprocessor X-macro "XCOLLECTORS" to take the list of collectors, and use that to declare the external "struct collector" objects and the list of collectors.
* Add the diskstats collector.Heikki Kallasjoki2018-11-301-0/+133