Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add layout for telegraf's system diskio plugin #779

Merged
merged 2 commits into from
Jan 24, 2017
Merged

Conversation

goller
Copy link
Contributor

@goller goller commented Jan 14, 2017

diskio are counters that give the total reads/writes since a system reboot.

  • CHANGELOG.md updated
  • Rebased/mergable
  • Tests pass
  • Sign CLA (if not already signed)

Fix #776

The problem

Layout for telegraf's diskio needed.

Telegraf does not have documentation about diskio, but, it uses github.com/shirou/gopsuti/disk. In turn disk_linux.go uses /proc/diskstats. /proc/diskstats are documented here

The Solution

Because the stats are long running counters, I'm using non_negative_derivative. Additionally, I'm scaling the queries from bytes to megabytes. Finally, I'm grouping by the name of the device.

diskio

diskio are counters that give the total reads/writes since
a system reboot.
@nhaugo
Copy link
Contributor

nhaugo commented Jan 24, 2017

LGTM

@nhaugo nhaugo merged commit 146993f into master Jan 24, 2017
@nhaugo nhaugo deleted the feature/layout-diskio branch January 24, 2017 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants