aboutsummaryrefslogtreecommitdiff
path: root/collector/cpu_dragonfly.go
Commit message (Collapse)AuthorAge
* Use strconv.Itoa() instead of fmt.Sprintf() (#1566)Julian Kornberger2020-02-19
| | | Signed-off-by: Julian Kornberger <jk+github@digineo.de>
* switch to go-kit/log (#1575)Ben Ye2019-12-31
| | | Signed-off-by: yeya24 <yb532204897@gmail.com>
* Check BSD's mib which accounts for swap size (#1149)ioriveur2018-11-17
| | | | | | | | | | | | | | | | | | * Change Dfly's CPU counting frequency, see: https://github.com/prometheus/node_exporter/issues/1129 Signed-off-by: iori-yja <fivio.11235813@gmail.com> * Convert Dfly's CPU unit into second Signed-off-by: iori-yja <fivio.11235813@gmail.com> * Check BSD's mib which accounts for swap size; see #1127 Signed-off-by: iori-yja <fivo.11235813@gmail.com> * fix swap check code Signed-off-by: iori-yja <fivo.11235813@gmail.com>
* Fix some golint issues (#927)Mario Trangoni2018-04-29
| | | | | | | | | | | | | | * collector/cpu_*: rename nodeCpuSecondsDesc to nodeCPUSecondsDesc Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com> * collector/qdisc_linux.go: add NewQdiscStatCollector comment Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com> * collector/cpu_linux.go: rename core_map to coreMap Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
* Unify CPU collector conventions (#806)Ben Kochie2018-02-01
| | | | | | | | | | | | * Unify CPU collector conventions Add a common CPU metric description. * All collectors use the same `nodeCpuSecondsDesc`. * All collectors drop the `cpu` prefix for `cpu` label values. * Fix subsystem string in cpu_freebsd. * Fix Linux CPU freq label names.
* Replace --collectors.enabled with per-collector flags (#640)Calle Pettersson2017-09-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move NodeCollector into package collector * Refactor collector enabling * Update README with new collector enabled flags * Fix out-of-date inline flag reference syntax * Use new flags in end-to-end tests * Add flag to disable all default collectors * Track if a flag has been set explicitly * Add --collectors.disable-defaults to README * Revert disable-defaults flag * Shorten flags * Fixup timex collector registration * Fix end-to-end tests * Change procfs and sysfs path flags * Fix review comments
* golint: Fix NewStatCollector() doc string.Karsten Weiss2017-05-14
|
* Add teststuart nelson2016-09-28
|
* Export values as uint64_tstuart nelson2016-09-20
|
* Maintain granularity in cpu datastuart nelson2016-09-20
| | | | | | Export cpu mode times as original uint64_t data, and update frequency, and do the conversion to float64 and subsequent division in go.
* Update commentstuart nelson2016-09-19
|
* Remove old freq finding codestuart nelson2016-09-19
| | | | | This is the code that was lifted from the freebsd implementation, but was not correct.
* Use correct frequency for calculating cpu timestuart nelson2016-09-19
| | | | | | | | | | | | | | The correct frequency is the systimer frequency, not the stathz. From one of the DragonFly developers: The bump upon each statclock is: ((cur_systimer - prev_systimer) * systimer_freq) >> 32 systimer_freq can be extracted from following sysctl in userspace: sysctl kern.cputimer.freq
* Remove unneeded ncpu variablestuart nelson2016-09-18
|
* Remember to bzero stringstuart nelson2016-09-18
| | | | | Duplication was caused by malloc returning a region of memory that already had data in it.
* Remove unused comment.stuart nelson2016-09-18
|
* Correctly exporting valuesstuart nelson2016-09-18
| | | | | | | Moved to exporting via a string, which is then split and parsed. The string is sometimes duplicated, however.
* Remove freestuart nelson2016-09-17
| | | | Don't need it since we aren't malloc'ing
* Remove some unnecessary includesstuart nelson2016-09-17
|
* Appears to be working? Still need to cleanup after selfstuart nelson2016-09-17
|
* checkpointstuart nelson2016-09-17
|
* Creating slice from C-arraystuart nelson2016-09-17
| | | | | Might not be lined up correctly? Weird output data in the second CPU.
* successfully exporting one of 2 cpusstuart nelson2016-09-10
|
* wipstuart nelson2016-09-10