telegraf/plugins
Soulou 92b01ab4f9
Fix how major and minor identifiers of block devices are read.
The current implementation assure that the major and the minor are
coded on one byte. But they are not:

```
brw-rw----  1 root disk    252, 290 Feb 25 11:36 dm-290
```

290 as minor in this example is over 1 byte.

So after wondering why all my devices iops weren't correctly stored,
I found out that several points were added for some disks. For `dm-290`
it was overriding `252:34`, instead of getting udev stats for `252:290`.

The solution is here:
https://sites.uclouvain.be/SystInfo/usr/include/sys/sysmacros.h.html

The implementation is directly taken from this, fixing my bug.
2019-03-11 01:31:30 +01:00
..
aggregators Add stats option to basicstats sample config 2019-02-01 12:27:31 -08:00
inputs Fix how major and minor identifiers of block devices are read. 2019-03-11 01:31:30 +01:00
outputs Use random available port in prometheus output tests (#5555) 2019-03-08 14:54:16 -08:00
parsers Allow grok to produce metrics with no fields (#5533) 2019-03-05 11:07:39 -08:00
processors Fix conversion from string float to integer (#5518) 2019-03-04 12:35:57 -08:00
serializers Fix several influx parser issues (#5484) 2019-02-26 10:48:41 -08:00