Commit Graph

49 Commits

Author SHA1 Message Date
mced a1405a63fb [fix] mem_used_perc returns percentage of used mem 2015-09-12 19:11:40 +02:00
Ruslan Islamgaliev bd00f46d8b Fix docker stats to make it work on centos 7.
issue #58
issue #84
2015-09-11 16:26:08 -07:00
Cameron Sparr d8482cc286 darwin net plugin fix, really need to godep vendor gopsutil 2015-09-10 13:57:57 -06:00
Cameron Sparr 9969c4e810 Add system uptime metric, string formatted AND in float64
closes #150
2015-08-31 14:43:34 -06:00
Cameron Sparr ff2de0c715 Only build the docker plugin on linux 2015-08-27 17:09:18 -06:00
Cameron Sparr 434267898b Indent the toml config for readability 2015-08-26 09:22:03 -06:00
subhachandrachandra 8d034f544c Fixed memory reporting for Linux systems
/proc/meminfo reports memory in KiloBytes and so needs a multiplier of 1024 instead of 1000.
The kernel reports in terms of pages and the proc filesystem is left shifting by 2 for 4KB pages to get KB. Since this is a binary shift, Bytes will need to shift by 10 and so get multiplied by 1024.

From the kernel code. PAGE_SHIFT = 12 for 4KB pages
"MemTotal:       %8lu kB\n", K(i.totalram)

Closes #131
2015-08-25 14:18:14 -06:00
subhachandrachandra ca1d2c7000 Fixed total memory reporting for Darwin systems. hw.memsize is reported as bytes instead of pages. 2015-08-25 14:16:18 -06:00
Bruno Bigras 0acf15c025 Typo: prec -> perc
Closes #140
2015-08-25 14:15:12 -06:00
Simon Fraser 601b444a60 fix segv on error 2015-08-20 07:49:46 -06:00
Cameron Sparr 03c7d564d9 Merge pull request #118 from srfraser/diskusage_windows_fix
Get disk usage stats working on windows
2015-08-18 15:58:13 -06:00
Simon Fraser 7273e2e6f2 Get disk usage stats working on windows 2015-08-18 21:31:33 +01:00
Cameron Sparr 0e65d8e64e Rebase and fixups for PR #111, fixes issue #33 2015-08-13 14:47:51 -06:00
Josh Palay 1e742aec04 Adds cpu busy time and percentages 2015-08-13 14:30:32 -06:00
Cameron Sparr 04963f12a3 Allow a PerCPU configuration variable, issue #108 2015-08-13 13:30:11 -06:00
Simon Fraser d280b968d7 Ensure tests pass now that we're passing fstype around
go fmt checks

Rework the example configuration snippets
2015-08-10 19:20:49 -06:00
Simon Fraser 1d8c7a74d6 to filter by filesystem type, we need to pass that up the chain 2015-08-10 19:19:36 -06:00
Cameron Sparr 42a7203b1e Skip per-cpu unit test when in a circle ci container 2015-08-05 16:49:40 -06:00
Cameron Sparr 611ad26d1b go fmt fixes 2015-08-04 16:09:59 -06:00
Cameron Sparr 3ff2ea8d4e Creating circleci job to just lint and vet code 2015-08-04 11:22:26 -06:00
Todd Persen 1d8e6473c6 Merge pull request #45 from jhofeditz/patch-1
skip disk tags with no value
2015-07-05 16:51:58 -07:00
Joe Hofeditz 073b1084b7 skip disk tags with no value
Influxdb 0.9.1 now rejects writes with empty tag values. This patch skips tags with no values. A disk serial number does not exist for many devices including md raid arrays and VMs. Other plugins may also want to check for empty tags.
2015-07-03 08:11:52 -06:00
Brian Brazil e34c52402f Improve test infrastructure 2015-06-24 22:15:58 +01:00
Evan Phoenix 2bd58ee4df A set of fixes to fix the tests 2015-05-26 22:15:05 -07:00
Evan Phoenix 1653330421 Tivan is dead, long live Telegraf. Fixes #3 2015-05-22 16:45:14 -07:00
Evan Phoenix 5e6d33a57f Breakup the system plugin 2015-05-18 16:01:42 -07:00
Evan Phoenix 4146f5f6df Add ability to restrict which network interfaces are sampled 2015-05-18 15:50:09 -07:00
Evan Phoenix 82cbc4daa2 Add ability to generate config from available plugins 2015-05-18 15:10:11 -07:00
Evan Phoenix f1e1204374 Enforce stat prefixing at the accumulator layer 2015-05-18 12:15:15 -07:00
Evan Phoenix 660285d764 Use _ as the namespace separator 2015-04-07 11:59:11 -07:00
Evan Phoenix f0675e52c3 Namespace the system metrics 2015-04-07 10:25:05 -07:00
Evan Phoenix 2820c0391e Fix all imports 2015-04-07 09:39:23 -07:00
Evan Phoenix 6302dc553c Detect docker is not available gracefully 2015-04-07 09:24:16 -07:00
Evan Phoenix 7b0c09d5e9 Use dockerclient to get containers and info 2015-04-06 17:24:04 -07:00
Evan Phoenix a574261b3a Report better errors where system stats can't be gathered 2015-04-06 17:23:38 -07:00
Evan Phoenix 8dba9a9383 Report cpu stats using tags 2015-04-06 17:23:15 -07:00
Evan Phoenix 470ae6548e Report that docker isn't available better in psutils 2015-04-06 17:21:43 -07:00
Evan Phoenix da3aeca720 Fix a few more imports 2015-04-06 17:21:22 -07:00
Evan Phoenix 941c9acabf Fix a couple imports and a float comparison test 2015-04-06 16:22:34 -07:00
Evan Phoenix ba96ae78dd Add docker stats 2015-04-06 16:03:09 -07:00
Evan Phoenix 07261e885f Fix docker stats 2015-04-06 16:02:58 -07:00
Evan Phoenix b39b1958e8 Add VM and Swap stats 2015-04-06 14:53:43 -07:00
Evan Phoenix 250074eecf Add disk io stats 2015-04-06 10:59:05 -07:00
Evan Phoenix 065e094121 Add NetIO 2015-04-06 10:44:32 -07:00
Evan Phoenix 3d753d721a Add disk usage stats 2015-04-06 10:34:55 -07:00
Evan Phoenix 71461e7a49 Disable gopsutil tests that don't work on darwin 2015-04-06 09:46:47 -07:00
Evan Phoenix d1cc82653a Switch plugin API to use an accumulator 2015-04-06 09:32:10 -07:00
Evan Phoenix 9c42aea28c Vendor psutils and remove neko 2015-04-03 17:22:31 -07:00
Evan Phoenix db74acb86d Initial spike
This is mostly to solidify the overall structure with the agent,
plugins, and testing philosphy.
2015-04-01 21:55:51 -07:00