| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
Cherry-pick two bug fixes into 0.18.1.
Signed-off-by: Ben Kochie <superq@gmail.com>
|
|
|
|
| |
Signed-off-by: Ben Kochie <superq@gmail.com>
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
| |
Signed-off-by: Paul Gier <pgier@redhat.com>
|
|
|
|
| |
Signed-off-by: David O'Rourke <david.orourke@gmail.com>
|
|
|
|
|
|
|
| |
* Update CHANGELOG for release.
* Bump VERSION.
* Update vendoring.
Signed-off-by: Ben Kochie <superq@gmail.com>
|
|
|
| |
Signed-off-by: Daniel Hodges <hodges.daniel.scott@gmail.com>
|
|
|
| |
Signed-off-by: prombot <prometheus-team@googlegroups.com>
|
|
|
|
|
| |
Updates for procfs refactoring
Signed-off-by: Paul Gier <pgier@redhat.com>
|
|
|
| |
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
|
|
|
| |
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
| |
Avoid 32-bit counter rollovers.
Signed-off-by: Ben Kochie <superq@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Follow-up from #1261.
Signed-off-by: Daniele Sluijters <daenney@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Build and publish ARM32v7, ARM64v8 and ppc64le docker images.
Signed-off-by: Johannes Würbach <johannes.wuerbach@googlemail.com>
|
|
|
|
|
| |
Update to current vendoring.
Signed-off-by: Ben Kochie <superq@gmail.com>
|
|
|
|
|
|
|
|
|
| |
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
Signed-off-by: Henk <henk@wearespindle.com>
|
|
|
|
|
|
| |
* OpenBSD rc.d script
Signed-off-by: Shawn Craver <craversp@gmail.com>
|
|
|
|
|
|
| |
* update github.com/godbus/dbus to 271e53dc4968a0f8862f20841cc63bb5f43d6c57
Signed-off-by: Theo Brigitte <theo.brigitte@gmail.com>
|
|
|
| |
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
|
|
|
| |
Signed-off-by: EdgarasG <edgaras.giedre@hostinger.com>
|
|
|
| |
This closes #1284
|
|
|
| |
Signed-off-by: Slawomir Gonet <slawek@otwiera.cz>
|
|
|
|
|
|
| |
* Add smartmon.py python port of the smartmon.sh bash script
Signed-off-by: Arthur Skowronek <ags@digineo.de>
|
|
|
| |
Signed-off-by: Paul Gier <pgier@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
monitoring (#1268)
Signed-off-by: Nuno Tavares <n.tavares@portavita.eu>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Include additional unit types in the default systemd collector
blacklist.
Signed-off-by: Ben Kochie <superq@gmail.com>
|
|
|
|
|
|
|
|
| |
* Update vendoring.
Update vendoring to latest upstream.
Signed-off-by: Ben Kochie <superq@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
| |
Signed-off-by: Matt Pursley <mpursley@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
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
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
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
Signed-off-by: David O'Rourke <david.orourke@gmail.com>
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
This fixes a few staticcheck ST1003 warnings in OpenBSD CPU
collector. No functional change.
Signed-off-by: Ralf Horstmann <ralf+github@ackstorm.de>
|
|
|
| |
Signed-off-by: James Hartig <james@getadmiral.com>
|
|
|
| |
Signed-off-by: Mark Knapp <mknapp@hudson-trading.com>
|
|
|
| |
Signed-off-by: Matt Pursley <mpursley@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
The recent updates to Makefile.common make some of the stuff in
Makefile unnecessary.
Signed-off-by: Paul Gier <pgier@redhat.com>
|
|
|
| |
Signed-off-by: Matt Layher <mdlayher@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|