aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Bugfix release 0.18.1 (#1366)v0.18.1Ben Kochie2019-06-04
| | | | | | Cherry-pick two bug fixes into 0.18.1. Signed-off-by: Ben Kochie <superq@gmail.com>
* Add changelog entry for #1364Ben Kochie2019-06-04
| | | | Signed-off-by: Ben Kochie <superq@gmail.com>
* Fix rollover bug in mountstats collector (#1364)Ben Kochie2019-06-04
| | | | | | | | | * Update procfs vendor to pull in github.com/prometheus/procfs/pull/165 * Update mountstats collector to use new types. * Rollover counter automatically to avoid float64 accuracy issues. * Update e2e test. Signed-off-by: Ben Kochie <superq@gmail.com>
* fix or ignore codespell issues (#1351)Paul Gier2019-06-04
| | | | Signed-off-by: Paul Gier <pgier@redhat.com>
* meminfo: Fix the size mismatch in the swapTotal check mib for BSD. (#1345)David O'Rourke2019-06-04
| | | | Signed-off-by: David O'Rourke <david.orourke@gmail.com>
* Update for 0.18.0 release (#1337)v0.18.0Ben Kochie2019-05-09
| | | | | | | * Update CHANGELOG for release. * Bump VERSION. * Update vendoring. Signed-off-by: Ben Kochie <superq@gmail.com>
* Add perf exporter (#1274)Daniel Hodges2019-05-07
| | | Signed-off-by: Daniel Hodges <hodges.daniel.scott@gmail.com>
* makefile: update Makefile.common with newer version (#1332)PrometheusBot2019-05-07
| | | Signed-off-by: prombot <prometheus-team@googlegroups.com>
* update procfs to latest (#1335)Paul Gier2019-05-07
| | | | | Updates for procfs refactoring Signed-off-by: Paul Gier <pgier@redhat.com>
* *: enable default linters (#1334)Simon Pasquier2019-05-06
| | | Signed-off-by: Simon Pasquier <spasquie@redhat.com>
* *: bump Go version to 1.12 (#1329)Simon Pasquier2019-04-26
| | | Signed-off-by: Simon Pasquier <spasquie@redhat.com>
* Synchronize Makefile.common from prometheus/prometheus (#1328)PrometheusBot2019-04-25
| | | | | | | | | | * makefile: update Makefile.common with newer version Signed-off-by: prombot <prometheus-team@googlegroups.com> * Add .golangci.yml Signed-off-by: Simon Pasquier <spasquie@redhat.com>
* Use 64-bit Darwin netstat counters (#1319)Ben Kochie2019-04-25
| | | | | Avoid 32-bit counter rollovers. Signed-off-by: Ben Kochie <superq@gmail.com>
* textfile: use opened file's mtime as timestamp (#1326)Christian Hoffmann2019-04-18
| | | | | | | | | | | | | | Previously, the node_textfile_mtime_seconds metric was based on the Fileinfo.ModTime() of the ioutil.ReadDir() return value. This is based on lstat() and therefore has unintended consequences for symlinks (modification time of the symlink instead of the symlink target is returned). It is also racy as the lstat() is performed before reading the file. This commit changes the node_textfile_mtime_seconds metric to be based on a fresh Stat() call on the open file. This eliminates the race and works as expected for symlinks. Fixes #1324. Signed-off-by: Christian Hoffmann <mail@hoffmann-christian.info>
* README: Move pressure to enabled table (#1325)Daniele Sluijters2019-04-18
| | | | | Follow-up from #1261. Signed-off-by: Daniele Sluijters <daenney@users.noreply.github.com>
* Expose /proc/pressure (#1261)Daniele Sluijters2019-04-18
| | | | | | | | | This enables the collection of pressure stall information as exposed by the `/proc/pressure` interface added in the 4.20 release of the Linux kernel. Closes #1174 Signed-off-by: Daniele Sluijters <daenney@users.noreply.github.com>
* Docker images for ARM32v7, ARM64v8 and ppc64le (#1207)Johannes Würbach2019-04-15
| | | | | Build and publish ARM32v7, ARM64v8 and ppc64le docker images. Signed-off-by: Johannes Würbach <johannes.wuerbach@googlemail.com>
* Update vendoring (#1304)Ben Kochie2019-04-15
| | | | | Update to current vendoring. Signed-off-by: Ben Kochie <superq@gmail.com>
* Early init of procfs (#1315)Paul Gier2019-04-10
| | | | | | | | | Minor change to match naming convention in other collectors. Initialize the proc or sys FS instance once while initializing each collector instead of re-creating for each metric update. Signed-off-by: Paul Gier <pgier@redhat.com>
* Add nvme_metrics.sh text collector example (#1309)Henk2019-04-08
| | | | | | * Add nvme_metrics.sh text collector example Signed-off-by: Henk <henk@wearespindle.com>
* OpenBSD rc.d script (#1306)Shawn Craver2019-04-04
| | | | | | * OpenBSD rc.d script Signed-off-by: Shawn Craver <craversp@gmail.com>
* update github.com/godbus/dbus to latest master (#1305)Théo Brigitte2019-04-03
| | | | | | * update github.com/godbus/dbus to 271e53dc4968a0f8862f20841cc63bb5f43d6c57 Signed-off-by: Theo Brigitte <theo.brigitte@gmail.com>
* Update Makefile.common (#1288)Simon Pasquier2019-03-25
| | | Signed-off-by: Simon Pasquier <spasquie@redhat.com>
* Update smartmon.py to widen self_assessment_passed test (#1293)Edgaras Giedrė2019-03-20
| | | Signed-off-by: EdgarasG <edgaras.giedre@hostinger.com>
* Update README: Add note about ts in textfileJohannes 'fish' Ziemke2019-03-19
| | | This closes #1284
* yum.sh: yum update monitor (#1273)Slawomir Gonet2019-02-28
| | | Signed-off-by: Slawomir Gonet <slawek@otwiera.cz>
* Translate smartmon.py to Python (#1225)Julian Kornberger2019-02-27
| | | | | | * Add smartmon.py python port of the smartmon.sh bash script Signed-off-by: Arthur Skowronek <ags@digineo.de>
* upgrade promu to v0.3.0 (#1272)Paul Gier2019-02-27
| | | Signed-off-by: Paul Gier <pgier@redhat.com>
* Add the inotify-instances text collector (#1186)Saj Goonatilleke2019-02-27
| | | | | | | | | | | | | | | | | | | | | | | | This is an alternative take on the embedded inotify collector: https://github.com/prometheus/node_exporter/pull/988 The proposed embedded collector was not accepted for inclusion because it was not possible for a single unprivileged node_exporter process to detect inotify resource utilisation in other user domains. This text collector works around the problem by giving the operator a choice between the following: - Run only the text collector as root to gain visibility over all processes on the system. - Run one or more instances of the text collector as an unprivileged user to gain visibility over subsets of the system. In either case, the data generated by this collector can be useful when hunting down inotify instance leaks -- and when confirming the resolution of such leaks. Signed-off-by: Saj Goonatilleke <sg@redu.cx>
* remove "-n" flag from /usr/bin/awk (#1269)Cole White2019-02-23
| | | | | | | This flag causes no ipmi data to be emitted and an error log is generated on each invocation: "awk: not an option: -nf". I was unable to locate a "-n" flag in the mawk or gawk man pages, so I tested it by manually changing the script on a running Debian buster system. The issue was resolved and metrics were emitted. Signed-off-by: Cole White <cwhite@wikimedia.org>
* ADD Cachevault_Info.Temp, being a distinct phy component, I think it's worth ↵Nuno Tavares2019-02-21
| | | | | monitoring (#1268) Signed-off-by: Nuno Tavares <n.tavares@portavita.eu>
* collector/cpu: split cpu freq metrics into separate collector (#1253)Paul Gier2019-02-19
| | | | | | | | | | | The cpu frequency information is not always needed and/or available. This change allows the cpu frequency metrics to be enabled/disabled separately from the other cpu metrics, and also prevents a frequency metric failure (such as a parse error) from failing the main cpu collector. Fixes #1241 Signed-off-by: Paul Gier <pgier@redhat.com>
* Update systemd blacklist (#1255)Ben Kochie2019-02-17
| | | | | | Include additional unit types in the default systemd collector blacklist. Signed-off-by: Ben Kochie <superq@gmail.com>
* Update vendoring. (#1257)Ben Kochie2019-02-13
| | | | | | | | * Update vendoring. Update vendoring to latest upstream. Signed-off-by: Ben Kochie <superq@gmail.com>
* Systemd refactor (#1254)Paul Gier2019-02-11
| | | | | | | | | | This reduces the system metric collection time by using a wait group and go routines to allow the systemd metric calls happen concurrently. Also, makes the start time, restarts, tasks_max, and tasks_current metrics disabled by default because these can be time consuming to gather. Signed-off-by: Paul Gier <pgier@redhat.com>
* add md_info_detail.sh (#1204)mpursley2019-02-10
| | | Signed-off-by: Matt Pursley <mpursley@gmail.com>
* Bond: Monitor bond mii_status not link operstate (#1124)Sachi King2019-02-10
| | | | | | | | | | | | | | | | | | | | | | | | With a bond interface the state of the slave interface from the bond's point of view is reflected in `mii_status` and is independent of the link's `operstate`. When a bond is monitored with `miimon`, `mii_status` will reflect the state of the physical link as configured via the operator. When a bond is monitored via `arp_interval` the `mii_status` will reflect the results of the bond ARP checking. This means the link can be down from the bond's point of view, but up from a physical connection point of view. If a bond is not monitored via miimon or arp, the `mii_status` should likely be always `up`, however I have observed a case where this is not true and the `operstate` is `up` while `mii_status` is `down`. Kernel bond documentation stresses that a bond should not be configured without one of `mii_mon` or `arp_interval` configured however. This change results in the metric 'node_bonding_active' matching the up/down state of the bond's point of view rather than operstate. Signed-off-by: Sachi King <nakato@nakato.io>
* netclass_linux: remove varying labels from the 'up' metric (#1243)Paul Gier2019-02-07
| | | | | | | | | | | * netclass_linux: remove varying labels from the 'up' metric This moves the variable label values such as 'operstate' out of the 'network_up' metric and into a separate metric called '_info'. This allows the 'up' metric to remain continous over state changes. Fixes #1236 Signed-off-by: Paul Gier <pgier@redhat.com>
* Rename interface to device in netclass collector (#1224)Johannes 'fish' Ziemke2019-02-06
| | | | | | | | | | * Rename interface to device in netclass collector This makes it consistent with other networking metrics like node_network_receive_bytes_total This closes #1223 Signed-off-by: Johannes 'fish' Ziemke <github@freigeist.org>
* Add diskstats collector for OpenBSD (#1250)Ralf Horstmann2019-02-06
| | | | | | | | | | | | | * Add diskstats collector for OpenBSD Tested on i386 and amd64, OpenBSD 6.4 and -current. * Refactor diskstats collectors This moves common descriptors from Linux, Darwin, OpenBSD diskstats collectors into diskstats_common.go Signed-off-by: Ralf Horstmann <ralf+github@ackstorm.de>
* collector: Implement uname collector for FreeBSD (#1239)David O'Rourke2019-02-05
| | | | | * collector: Implement uname collector for FreeBSD Signed-off-by: David O'Rourke <david.orourke@gmail.com>
* collector: use path/filepath for handling file paths (#1245)Paul Gier2019-02-05
| | | | | | Similar to #1228. Update the remaining collectors to use 'path/filepath' intead of 'path' for manipulating file paths. Signed-off-by: Paul Gier <pgier@redhat.com>
* Fix staticcheck ST1003 warnings (#1249)Ralf Horstmann2019-02-05
| | | | | | This fixes a few staticcheck ST1003 warnings in OpenBSD CPU collector. No functional change. Signed-off-by: Ralf Horstmann <ralf+github@ackstorm.de>
* Fixed capitalization of linux in Makefile (#1252)James Hartig2019-02-04
| | | Signed-off-by: James Hartig <james@getadmiral.com>
* Update procfs vendor (#1248)mknapphrt2019-02-04
| | | Signed-off-by: Mark Knapp <mknapp@hudson-trading.com>
* add physical disk "state" to megaraid_pd_info metric (#1226)mpursley2019-01-31
| | | Signed-off-by: Matt Pursley <mpursley@gmail.com>
* collector/systemd: add new label "type" for systemd_unit_state (#1229)Paul Gier2019-01-29
| | | | | | | | | | Adds a new label called "type" systemd_unit_state which contains the Type field from the unit file. This applies only to the .service and .mount unit types. The other unit types do not include the optional type field. Fixes #1210 Signed-off-by: Paul Gier <pgier@redhat.com>
* cleanup makefile (#1232)Paul Gier2019-01-23
| | | | | | The recent updates to Makefile.common make some of the stuff in Makefile unnecessary. Signed-off-by: Paul Gier <pgier@redhat.com>
* collector: use path/filepath for handling file paths (#1228)Matt Layher2019-01-21
| | | Signed-off-by: Matt Layher <mdlayher@gmail.com>
* Add kstat-based Solaris metrics (#1197)Jon Davies2019-01-12
| | | | | | | | | | | | * collector/loadavg_solaris.go: Use libkstat to gather load averages. * go.mod: Added go-kstat. * boot_time_solaris.go: Added. * cpu_solaris.go: Added. * README.md: Updated entries for Solaris. * collector/zfs_solaris.go: Added. * CHANGELOG.md: Added note about kstat-based Solaris metrics. Signed-off-by: Jonathan Davies <jpds@protonmail.com>