Commit graph

904 commits

Author SHA1 Message Date
Filippo Giunchedi 2e9758564e Update github.com/prometheus/procfs dependency
Fix IPVS ipv6 parsing, see also prometheus/procfs#40
2017-05-04 16:40:25 +02:00
Tobias Schmidt d31c29490e Update github.com/prometheus/procfs dependency (#572) 2017-04-25 10:24:59 +02:00
Ben Kochie 8f3cddf734 Merge pull request #568 from mdlayher/xfs-init
Initial XFS collector
2017-04-25 09:54:28 +02:00
Kai S 59f9b8c5c1 Handle nonexisting bonding_masters file (#569)
* silently ignore nonexisting bonding_masters file

Add an empty fixtures dir without a bonding_masters file to test.

* Moved the check to the Update() method

Dropped the empty test dir.
2017-04-24 23:19:17 +04:00
Matt Layher 1feb091b36
Initial XFS collector 2017-04-22 11:53:07 -04:00
Ben Kochie e9aad0157c Merge pull request #550 from derekmarcotte/dm-boottime
Add exec_boot_time for freebsd, dragonfly
2017-04-22 09:18:05 +02:00
Derek Marcotte 5b557bf973 Fix metric name per review. 2017-04-21 16:25:31 -04:00
Derek Marcotte db8ec9c6b4 Add exec_boot_time for freebsd, dragonfly
Adds new sysctl type, bsdSysctlTypeStructTimeval to enable parsing of
timevals from raw memory.
2017-04-21 10:23:19 -04:00
Tobias Schmidt e7ea5c1867 Merge pull request #565 from daenney/mips32
uname_linux: Build for 32bit MIPS too
2017-04-20 16:08:46 +04:00
Daniele Sluijters bb9d4ade0b uname_linux: Build for 32bit MIPS too
Since Go 1.8 32bit MIPS Big/Little Endian are supported assuming the
target runs Linux and the kernel either emulates an FPU or can access
the CPU one.

This allows the node_collector to build for mips and mipsle opening up
the possibility of running it on things like home routers
(DD-|Open|ASUS-)Wrt firmware usually has the necessary bits in place.
2017-04-20 13:30:40 +02:00
Brian Brazil f291d2d6dd Get full resolution for node_time (#555) 2017-04-19 18:31:21 +01:00
Tobias Florek 2a38b57a2a Mention copr yum repository, add systemd unit (#529)
* add systemd unit as example

* mention community yum repo

fixes #498

* rename textfile collector dir
2017-04-19 18:54:15 +02:00
Ben Kochie 536b989aea Merge pull request #564 from knweiss/edac_typo
edac: Fix typo in node_edac_csrow_uncorrectable_errors_total
2017-04-18 13:41:08 +02:00
Karsten Weiss d9703ff7c6 edac: Fix typo in csrow label of node_edac_csrow_uncorrectable_errors_total metric. 2017-04-18 12:45:06 +02:00
Tobias Schmidt 266f0958d2 Merge pull request #561 from derekmarcotte/dm-fix-dfly-build
Fixes broken build on Dragonfly.
2017-04-17 17:31:12 +02:00
Derek Marcotte 83cecfa696 Fixes broken build on Dragonfly.
Undefined err:

84eaa8fecd/collector/devstat_dragonfly.go (L145)
2017-04-17 10:50:49 -04:00
Tobias Schmidt 2e7ac47fee Merge pull request #554 from knweiss/guest_nice
cpu collector: guest_nice
2017-04-15 17:48:58 +02:00
Tobias Schmidt 65768ceac8 Create sha256 checksums file during release 2017-04-15 12:31:19 -03:00
Karsten Weiss 45ca8db352 Support the 'guest_nice' cpu mode of /proc/stat.
'guest_nice' is available since Linux 2.6.33.
2017-04-14 12:50:37 +02:00
Ben Kochie 636c88adf7 Merge pull request #435 from gianrubio/test-image
Test docker image before pushing
2017-04-12 11:03:35 +02:00
Giancarlo Rubio 1438243934 test docker image before pushing 2017-04-12 10:47:21 +02:00
Sam Kottler 6eafa51fa8 Add ARP collector for Linux (#540)
* Implement commonalities and linux support for ARP collection

* Add ARP collector to fixtures and run as part of e2e tests

* Bubble up scanner errors

* Use single return values where it makes sense

* Add missing annotation

* Move arp_common into arp_linux

* Add license header to arp_linux.go

* Address initial feedback

* Use strings.Fields instead of strings.Split

* Deal with scanner.Err() rather than throwing away errors

* Check for scan errors in-line before interacting with the entries map

* Don't interact with potentially empty text from scan

* Check for scan errors outside the scan loop

* Add comment about moving procfs parsing

* Add more direct comment

* Update initialism style to match go style guide

* Put function args on the same line

* Add TODO in front of comment about procfs extraction

* Guard against strings.Fields returning an empty slice

* Be more defensive about ARP table format and use upcase more broadly

* Enable the ARP collector by default

* Add ARP collector to the README

* Remove 'entry'
2017-04-11 17:45:19 +02:00
Tobias Schmidt 84b65edb04 Merge pull request #546 from wtip/master
updated smartmon.sh example to include metric for overall health status
2017-04-11 17:44:30 +02:00
Tobias Schmidt 919aab2e80 Merge pull request #549 from prometheus/grobie/remove-windows
Remove Windows support
2017-04-11 17:43:28 +02:00
Tobias Schmidt 67d01ca397 Merge pull request #552 from prometheus/grobie/use-go1.8
Use go1.8 in CircleCI tests
2017-04-11 17:42:59 +02:00
Tobias Schmidt 09727a6191 Merge pull request #551 from prometheus/grobie/remove-netbsd-arm-support
Remove netbsd/arm support for now
2017-04-11 17:42:29 +02:00
Tobias Schmidt 2965ba6bf9 Use go1.8 in CircleCI tests
We already use go1.8 in promu, so loading another image slows down the
build.
2017-04-11 12:17:51 -03:00
Tobias Schmidt 8edc142113 Remove netbsd/arm support for now
There are crossbuild errors on netbsd/arm with go1.8. Assuming there is
only a small minority of people running netbsd on ARM processors,
disabling these builds is the fastest workaround.
2017-04-11 11:46:43 -03:00
Tobias Schmidt 8aec44617a Remove Windows support
Use https://github.com/martinlindhe/wmi_exporter instead.
2017-04-10 23:27:23 -03:00
William Cooley 977aa94bd3 Added metric for overall health status check to smartmon.sh example script 2017-04-05 10:51:58 -04:00
Tobias Schmidt 41a44a4d24 Merge pull request #532 from prometheus/grobie/remove-extra-file-check
mdadm: Remove extra file existence check
2017-03-31 05:35:12 +02:00
Julius Volz 1f2099b1ef Merge pull request #534 from prometheus/bjk/systemd_scope
Blacklist systemd scope units
2017-03-23 16:55:18 +01:00
Ben Kochie 5f43211f67 Blacklist systemd scope units
Blacklist `scope` units from systemd collector by default.

These units are created with unique IDs programatically[0].  This leads to
huge cardinality problems.

[0]: https://www.freedesktop.org/software/systemd/man/systemd.scope.html
2017-03-23 14:02:46 +01:00
Johannes 'fish' Ziemke 4f59422d68 Merge pull request #533 from prometheus/grobie/fix-filesystem-error-metric
Fix export of stale device error metrics for unmounted filesystems
2017-03-23 11:39:44 +01:00
Johannes 'fish' Ziemke 7ad91b84c4 Merge pull request #531 from prometheus/grobie/update-promu-by-default
Download promu and staticcheck every time by default
2017-03-23 11:35:39 +01:00
Tobias Schmidt 31189c9507 Download promu and staticcheck every time by default
If this is not desired, copy/symlink these binaries to a different path and
set the respective environment variables. For example:

    ln -s "$(GOPATH)/bin/{promu,staticcheck}" /usr/local/bin/
    PROMU=/usr/local/bin/promu STATICCHECK=/usr/local/bin/staticcheck make
2017-03-22 22:02:21 -03:00
Tobias Schmidt dd3a681b27 Merge pull request #530 from leitzler/leitzler-patch-1
Use go env to fetch GOPATH to support Go 1.8
2017-03-23 03:00:55 +02:00
Tobias Schmidt d290ea94b8 Fix export of stale device error metrics for unmounted filesystems
Instead of maintaining a counter metric for device errors in memory,
this change exports a gauge and uses const metrics to avoid leaking
metrics for unmounted filesystems.
2017-03-22 21:48:18 -03:00
Tobias Schmidt 7b93b52010 Fix lint issues on filesystem BSD implementation 2017-03-22 21:48:12 -03:00
Pontus Leitzler 2c3a652f58 Use go env to fetch GOPATH to support Go 1.8
Go 1.8 do not require env GOPATH to be set and make will fail if it isn't set.
2017-03-22 18:20:32 +01:00
Julius Volz 6580c95305 Add info about flags to README.md 2017-03-22 17:20:34 +01:00
Tobias Schmidt 445ed44082 mdadm: Remove extra file existence check 2017-03-22 10:11:19 -03:00
Ben Kochie 840ba5dcc7 Merge pull request #521 from prometheus/bjk/0.14.0
Release v0.14.0
2017-03-21 13:09:18 +01:00
Ben Kochie 6c1a2bb092 Release v0.14.0
* Update `VERSION`.
* Update `CHANGLOG.md`.
2017-03-21 12:54:53 +01:00
Ben Kochie 57c5cab113 Merge pull request #526 from rtreffer/patch-1
Handle smart raw values >2^31
2017-03-21 11:48:59 +01:00
Johannes 'fish' Ziemke 9676f5f2dc Merge pull request #523 from roclark/support-legacy-infiniband
Add support for legacy InfiniBand drivers
2017-03-21 10:52:07 +01:00
Rene Treffer d61fef8ce6 Handle smart raw values >2^31
"%d" in awk will truncate values at 2^31. S.M.A.R.T. values can exceed that, thus use a floating point notation instead to encode larger values (at the possible cost of some precision).
2017-03-21 10:47:27 +01:00
Johannes 'fish' Ziemke 620e9937e6 Merge pull request #524 from mdlayher/wifi-expand
Expand wifi collector for more interface types
2017-03-21 10:32:44 +01:00
Tobias Schmidt 53279f2164 Merge pull request #525 from juergenhoetzel/fix-freebsd-static-link
Add missing dependency for static FreeBSD build
2017-03-21 03:18:08 +02:00
Juergen Hoetzel aef2601cf6 Add missing dependency for static FreeBSD build 2017-03-20 16:59:45 +00:00