Commits on Source (14)
-
Siavash Safi authored
* Add `collect[]` parameter * Add TODo comment about staticcheck ignored * Restore promhttp.HandlerOpts * Log a warning and return HTTP error instead of failing * Check collector existence and status, cleanups * Fix warnings and error messages * Don't panic, return error if collector registration failed * Update README
-
Ben Kochie authored
When there are no SMART compatible devices (Raspberry Pi for example) an error is returned, but the return code is still 0. `# scan_smart_devices: glob(3) aborted matching pattern /dev/discs/disc*` * Remove unused `disks` variable. * Filter for only valid `/dev` devices.
-
Pontus Leitzler authored
* Remove unnecessary select statement * Remove unnecessary if-statement
-
William authored
-
Matt Layher authored
-
Matt Layher authored
xfs: expose correct fields, fix metric names
-
Derek Marcotte authored
* Correct buffer_bytes > INT_MAX on BSD/amd64. The sysctl vfs.bufspace returns either an int or a long, depending on the value. Large values of vfs.bufspace will result in error messages like: couldn't get meminfo: cannot allocate memory This will detect the returned data type, and cast appropriately. * Added explicit length checks per feedback. * Flatten Value() to make it easier to read. * Simplify per feedback. * Fix style. * Doc updates.
-
Matt Layher authored
-
Julius Volz authored
netstat: return nothing when /proc/net/snmp6 not found
-
Ben Kochie authored
* Fix off by one in Linux interrupts collector * Fix off by one in CPU column handler. * Add test. * Enable interrupts in end-to-end test.
-
Tobias Klauser authored
* Update golang.org/x/sys/unix This allows to use simplified string conversion of Utsname members. * Simplify Utsname string conversion Use Utsname from golang.org/x/sys/unix which contains byte array instead of int8/uint8 array members. This allows to simplify the string conversions of these members.
-
Nicholas Johns authored
This PR closes #690
-
david authored
* Use host PID namespace in docker example See https://github.com/prometheus/node_exporter/issues/671 * Update readme for readability * Fix comments in readme
-
Ben Kochie authored
* Update vendor github.com/beevik/ntp@v0.2.0 * Update vendor github.com/mdlayher/netlink/... * Update vendor github.com/mdlayher/wifi/... Adds vendor github.com/mdlayher/genetlink * Update vendor github.com/prometheus/common/... * Update vendor github.com/prometheus/procfs/... * Update vendor golang.org/x/sys/unix * Update vendor golang.org/x/sys/windows
Showing
- .travis.yml 0 additions, 12 deletions.travis.yml
- Makefile 5 additions, 1 deletionMakefile
- README.md 38 additions, 29 deletionsREADME.md
- collector/collector.go 15 additions, 2 deletionscollector/collector.go
- collector/fixtures/e2e-output.txt 127 additions, 12 deletionscollector/fixtures/e2e-output.txt
- collector/interrupts_linux.go 1 addition, 1 deletioncollector/interrupts_linux.go
- collector/interrupts_linux_test.go 4 additions, 0 deletionscollector/interrupts_linux_test.go
- collector/meminfo_bsd.go 1 addition, 1 deletioncollector/meminfo_bsd.go
- collector/netstat_linux.go 6 additions, 0 deletionscollector/netstat_linux.go
- collector/sysctl_bsd.go 72 additions, 37 deletionscollector/sysctl_bsd.go
- collector/uname_linux.go 11 additions, 9 deletionscollector/uname_linux.go
- collector/uname_linux_int8.go 0 additions, 29 deletionscollector/uname_linux_int8.go
- collector/uname_linux_uint8.go 0 additions, 27 deletionscollector/uname_linux_uint8.go
- collector/xfs_linux.go 8 additions, 8 deletionscollector/xfs_linux.go
- end-to-end-test.sh 1 addition, 0 deletionsend-to-end-test.sh
- node_exporter.go 38 additions, 11 deletionsnode_exporter.go
- node_exporter_test.go 4 additions, 9 deletionsnode_exporter_test.go
- text_collector_examples/smartmon.sh 2 additions, 3 deletionstext_collector_examples/smartmon.sh
- vendor/github.com/beevik/ntp/LICENSE 1 addition, 1 deletionvendor/github.com/beevik/ntp/LICENSE
- vendor/github.com/beevik/ntp/README.md 71 additions, 25 deletionsvendor/github.com/beevik/ntp/README.md
.travis.yml
deleted
100644 → 0
collector/uname_linux_int8.go
deleted
100644 → 0
collector/uname_linux_uint8.go
deleted
100644 → 0