Commit Graph

1006 Commits

Author SHA1 Message Date
Ben Kochie
a528966dcd Fix parsing of interface aliases in netdev linux
Very old kernels expose interface aliases as `foo0:0`, adjust the line
parsing to handle these names.

Signed-off-by: Ben Kochie <superq@gmail.com>
2018-04-17 13:15:02 +02:00
Ben Kochie
768be139be
Merge pull request #884 from prometheus/fish-add-dco-contributing
Document DCO in CONTRIBUTING.md
2018-04-16 12:59:14 +02:00
Johannes 'fish' Ziemke
66d81119ea Document DCO in CONTRIBUTING.md
This closes #879

Signed-off-by: Johannes 'fish' Ziemke <github@freigeist.org>
2018-04-16 12:51:12 +02:00
Jürgen Hötzel
de0632c2e9 Fix memory corruption when number of filesystems > 16 (#900)
Signed-off-by: Juergen Hoetzel <juergen@archlinux.org>
2018-04-16 12:39:15 +02:00
Ben Kochie
6025dc207d
Merge pull request #898 from prometheus/superq/fmt
Fix formatting.
2018-04-15 08:13:20 +02:00
Ben Kochie
015b86670a
Update ppc64le e2e output.
Signed-off-by: Ben Kochie <superq@gmail.com>
2018-04-14 15:28:06 +02:00
Ben Kochie
0507b0c9a2
Fix formatting.
Signed-off-by: Ben Kochie <superq@gmail.com>
2018-04-14 15:02:20 +02:00
Ben Kochie
4c863f3b5d
Merge pull request #894 from prometheus/superq/ttar_cleanup
Cleanup sys fixtures before unpacking
2018-04-14 15:00:39 +02:00
Dmitriy Lukyanchikov
eddd1b9357 Fix netdev collector for linux (#890)
fix variable name, fix transmitHeader extracting
modify fixtures to run tests with updated netdev_linux collector

Signed-off-by: dmitriy-lukyanchikov <d.lukyanchikov@anchorfree.com>
2018-04-14 13:58:56 +02:00
Ben Kochie
4a94ed180c
Merge pull request #896 from derekmarcotte/dm-ppc64-fixtures
Update ppc64 fixtures to unbreak end-to-end.
2018-04-13 17:28:02 +02:00
Derek Marcotte
fe86e908da Update ppc64 fixtures to unbreak end-to-end.
efc1fdb added new labels.

Signed-off-by: Derek Marcotte <554b8425@razorfever.net>
2018-04-13 06:33:38 -04:00
Ben Kochie
b675a7c0a9
Merge pull request #891 from prometheus/grobie/fix-tests
Fix code style check in "all" make target
2018-04-11 12:35:35 +02:00
Ben Kochie
1bdfe77315 Cleanup sys fixtures before unpacking
Make sure we cleanup the sys fixtures before unpacking to avoid obsolete
files and conflicts from sticking around.

Signed-off-by: Ben Kochie <superq@gmail.com>
2018-04-11 12:08:00 +02:00
Tobias Schmidt
22e79102e6 Fix code style check in "all" make target
The all target should abort on incorrectly formatted code, instead of
formatting it. The CI pipeline should fail and not silently accept
wrong code.

Signed-off-by: Tobias Schmidt <tobidt@gmail.com>
2018-04-10 18:34:48 +02:00
Ben Kochie
9e485f1157
Merge pull request #889 from prometheus/superq/codespell
Add codespell to circleci.
2018-04-10 15:34:34 +02:00
Ben Kochie
178c62d022
Merge pull request #861 from muellerbe/additional-smartmonattrs
added additional smartmonattrs
2018-04-10 11:37:22 +02:00
Ben Kochie
ec6421e595
Skip vendor'd ttar.
Signed-off-by: Ben Kochie <superq@gmail.com>
2018-04-09 20:38:24 +02:00
Ben Kochie
64484cc254
Add codespell to circleci.
Signed-off-by: Ben Kochie <superq@gmail.com>
2018-04-09 20:37:54 +02:00
Ben Kochie
bde511b521
Merge pull request #888 from knweiss/typos
Fix spelling mistakes found by codespell
2018-04-09 20:32:43 +02:00
Karsten Weiss
7e392e6634 Fix spelling mistakes found by codespell
Signed-off-by: Karsten Weiss <knweiss@gmail.com>
2018-04-09 18:27:17 +02:00
Karsten Weiss
efc1fdb6d0 cpu: Add a 2nd label 'package' to metric node_cpu_core_throttles_total (#871)
* cpu: Add a 2nd label 'package' to metric node_cpu_core_throttles_total

This commit fixes the node_cpu_core_throttles_total metrics on
multi-socket systems as the core_ids are the same for each package.
I.e. we need to count them seperately.

Rename the node_package_throttles_total metric label `node` to `package`.

Reorganize the sys.ttar archive and use the same symlinks as the Linux
kernel. Also, the new fixtures now use a dual-socket dual-core cpu w/o
HT/SMT (node0: cpu0+1, node1: cpu2+3) as well as processor-less
(memory-only) NUMA node 'node2' (this is a very rare case).

Signed-off-by: Karsten Weiss <knweiss@gmail.com>

* cpu: Use the direct /sys path to the cpu files.

Use the direct path /sys/devices/system/cpu/cpu[0-9]* (without symlinks)
instead of /sys/bus/cpu/devices/cpu[0-9]*.

The latter path also does not exist e.g. on RHEL 6.9's kernel.

Signed-off-by: Karsten Weiss <knweiss@gmail.com>

* cpu: Reverse core+package throttle processing order

Signed-off-by: Karsten Weiss <knweiss@gmail.com>

* cpu: Add documentation URLs

Signed-off-by: Karsten Weiss <knweiss@gmail.com>
2018-04-09 18:01:52 +02:00
Ben Kochie
f32ec245a3
Merge pull request #887 from prometheus/fish-push-image-tags
Push docker images tagged with git tag
2018-04-09 16:41:02 +02:00
Johannes 'fish' Ziemke
3c4a4aec64 Push docker images tagged with git tag
Signed-off-by: Johannes 'fish' Ziemke <github@freigeist.org>
2018-04-09 16:29:20 +02:00
Zach Leslie
6b1301fb24 Remove -race test flag to build on OpenBSD (#883)
Without this change, running 'gmake' as the documentation does not finish the
build process to produce the binary.

Signed-off-by: Zach Leslie <xaque208@gmail.com>
2018-04-06 18:50:26 +02:00
Ben Kochie
f3ff44fcca
Merge pull request #882 from prometheus/superq/0.16.0-rc.1
Update for 0.16.0-rc.1
2018-04-04 19:43:27 +02:00
Ben Kochie
b8f25c87f1
Update for 0.16.0-rc.1
* Update VERSION.
* Update CHANGELOG.

Signed-off-by: Ben Kochie <superq@gmail.com>
2018-04-04 18:40:46 +02:00
Ben Kochie
eef9ffbdad
Merge pull request #878 from prometheus/grobie/update-common
Update github.com/prometheus/common dependencies
2018-03-31 23:53:19 +02:00
Tobias Schmidt
04d663029d Update github.com/prometheus/common dependencies
Signed-off-by: Tobias Schmidt <tobidt@gmail.com>
2018-03-31 22:20:45 +02:00
Brian Brazil
31ce32f1fe
Greatly trim what netstat collector exposes by default (#876)
Netstat is 40% of the metrics on my laptop, many of which
are highly detailed information about IP internals in the kernel.
~300 such metrics on every machine in your fleet is excessive,
so focus on key metrics by default, overridable by the user.

Fixes #515

Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
2018-03-30 19:28:08 +01:00
Ben Kochie
cf3edadcbb Update fixtures
* Add oom_kill to fixture.
* Update e2e outputs.
* Put regexp in order.

Signed-off-by: Ben Kochie <superq@gmail.com>
2018-03-29 22:00:02 +01:00
Brian Brazil
499c342fed Greatly reduce the metrics vmstat returns by default.
Vmstat has over 100 fields, most of which are highly
detailed debug information. Trim this down to only
essential fields by default, configurable by flag.

Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
2018-03-29 22:00:02 +01:00
Brian Brazil
c8c144587e
Enable bonding collector by default. (#872)
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
2018-03-29 15:18:12 +01:00
Brian Brazil
be9d82b66e
Sort collector names in startup logs (#857)
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
2018-03-29 13:42:44 +01:00
Ben Kochie
779090db7e
Update ppc64le fixture (#867)
Update to match standard e2e output.

Signed-off-by: Ben Kochie <superq@gmail.com>
2018-03-27 17:05:20 +02:00
Mario Trangoni
1f11a86d59 Fix nfs golint issues (#863)
* procfs: update vendoring

Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>

* procfs: fix e2e tests after nfs changes

Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
2018-03-22 22:25:37 +01:00
Morten Siebuhr
a310029890 Add example launchctl-file for MacOS (#856)
* Add example LaunchCtl-file for MacOS

Signed-off-by: Morten Siebuhr <sbhr@sbhr.dk>

* Rewrite program location in launctctl file

This seem to be the way most plist files does it.

Signed-off-by: Morten Siebuhr <sbhr@sbhr.dk>

* Make launct-agent run as nobody/nobody

Signed-off-by: Morten Siebuhr <sbhr@sbhr.dk>

* Rename plist per general naming scheme

Signed-off-by: Morten Siebuhr <sbhr@sbhr.dk>

* Pass arguments-file when launched through launchctl

Signed-off-by: Morten Siebuhr <sbhr@sbhr.dk>
2018-03-22 15:31:53 +01:00
mueller
770f420066 added additional smartmonattrs
Signed-off-by: mueller <mueller@b1-systems.de>
2018-03-22 11:14:25 +01:00
Tobias Schmidt
a8fc71334b
Merge pull request #843 from prometheus/grobie/vendor-ttar
Update vendored procfs packages and tools
2018-03-10 15:29:55 +01:00
Tobias Schmidt
a5bd651888 Update vendored github.com/prometheus/procfs packages 2018-03-10 15:20:20 +01:00
Tobias Schmidt
7a1a512c8a Vendor ttar from github.com/ideaship/ttar 2018-03-10 15:19:44 +01:00
Ben Kochie
002c1ca029 Fix release tag build. 2018-03-09 16:05:49 +01:00
Ben Kochie
d6a172bb2a Add tag filter to build per documentation[0].
[0]: https://circleci.com/docs/2.0/workflows/#git-tag-job-execution
2018-03-09 14:34:24 +01:00
Ben Kochie
423a7588c8 Fix tag release filter in circleci. 2018-03-09 14:18:13 +01:00
Ben Kochie
7fc2489a59 Bump the release date for 0.16.0-rc.0 2018-03-09 14:04:33 +01:00
Ben Kochie
16e1bf7993
Update for v0.16.0-rc.0 (#848)
* Update CHANGELOG.
* Update VERSION.
2018-03-09 14:03:07 +01:00
Ben Kochie
7b720df1c5
Use lowercase cpu label name in interrupts (#849)
To match other CPU related metric labels, use a lowercase named label.
2018-03-08 15:04:49 +01:00
Johannes 'fish' Ziemke
424ca8e322 Drop exec_ in boot_timestamp_seconds on *bsd (#839)
This closes #827.
2018-03-08 12:59:48 +01:00
Ben Kochie
65e485c4e9
Convert circleci config to 2.0. (#844) 2018-03-08 12:43:49 +01:00
colmbuckley
098f975b48 Correct the ClocksPerSec scaling factor on Darwin (#846)
* Update cpu_darwin.go

Change the definition of ClocksPerSec to read from limits.h

* Update cpu_darwin.go
2018-03-07 11:56:57 +01:00
Dan Fredell
84719ef59a On SunOS/ solaris/ SmartOS the go test flag of -rance isn't supported. (#762) 2018-02-28 18:05:35 +01:00