aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Merge pull request #1751 from prometheus/superq/release-1.0.1v1.0.1Ben Kochie2020-06-16
|\ | | | | Release 1.0.1
| * Update for 1.0.1 releaseBen Kochie2020-06-15
| | | | | | | | | | | | Update changelog and version for 1.0.1 release. Signed-off-by: Ben Kochie <superq@gmail.com>
| * Fix up powersupplyclass errorBen Kochie2020-06-15
| | | | | | | | | | | | Switch to go `%w` error verb and errors.Is(). Signed-off-by: Ben Kochie <superq@gmail.com>
| * Update prometheus/procfsBen Kochie2020-06-15
| | | | | | | | | | | | Fixes: https://github.com/prometheus/node_exporter/issues/1721 Signed-off-by: Ben Kochie <superq@gmail.com>
| * Handle no data from powersupplyclassBen Kochie2020-06-15
| | | | | | | | | | | | | | | | | | Handle the case when /sys/class/power_supply doesn't exist. Fixes logging error spam. Requires https://github.com/prometheus/procfs/pull/308 Signed-off-by: Ben Kochie <superq@gmail.com>
| * Fix collectors' build tagsJeffrey Stoke2020-06-15
| | | | | | | | Signed-off-by: Jeffrey Stoke <me@arhat.dev>
| * helper_test: Fix copyright yearDavid O'Rourke2020-06-15
| | | | | | | | Signed-off-by: David O'Rourke <david.orourke@gmail.com>
| * filesystem_freebsd: Use bytesToString to get label valuesDavid O'Rourke2020-06-15
| | | | | | | | Signed-off-by: David O'Rourke <david.orourke@gmail.com>
| * helper: Add new bytesToString function and testsDavid O'Rourke2020-06-15
| | | | | | | | Signed-off-by: David O'Rourke <david.orourke@gmail.com>
| * filesystem_freebsd: Fix label valuesDavid O'Rourke2020-06-15
|/ | | | | | | | We must know the length of the various filesystem C strings before turning them from a byte array into a Go string, otherwise our Go strings could contain null bytes, corrupting the label values. Signed-off-by: David O'Rourke <david.orourke@gmail.com>
* Merge pull request #1714 from prometheus/superq/1.0v1.0.0Ben Kochie2020-05-26
|\ | | | | Release 1.0.0
| * Release 1.0.0Ben Kochie2020-05-25
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * The netdev collector CLI argument `--collector.netdev.ignored-devices` was renamed to `--collector.netdev.device-blacklist` in order to conform with the systemd collector. #1279 * The label named `state` on `node_systemd_service_restart_total` metrics was changed to `name` to better describe the metric. #1393 * Refactoring of the mdadm collector changes several metrics - `node_md_disks_active` is removed - `node_md_disks` now has a `state` label for "fail", "spare", "active" disks. - `node_md_is_active` is replaced by `node_md_state` with a state set of "active", "inactive", "recovering", "resync". * Additional label `mountaddr` added to NFS device metrics to distinguish mounts from the same URL, but different IP addresses. #1417 * Metrics node_cpu_scaling_frequency_min_hrts and node_cpu_scaling_frequency_max_hrts of the cpufreq collector were renamed to node_cpu_scaling_frequency_min_hertz and node_cpu_scaling_frequency_max_hertz. #1510 * Collectors that are enabled, but are unable to find data to collect, now return 0 for `node_scrape_collector_success`. * [CHANGE] Add `--collector.netdev.device-whitelist`. #1279 * [CHANGE] Ignore iso9600 filesystem on Linux #1355 * [CHANGE] Refactor mdadm collector #1403 * [CHANGE] Add `mountaddr` label to NFS metrics. #1417 * [CHANGE] Don't count empty collectors as success. #1613 * [FEATURE] New flag to disable default collectors #1276 * [FEATURE] Add experimental TLS support #1277, #1687, #1695 * [FEATURE] Add collector for Power Supply Class #1280 * [FEATURE] Add new schedstat collector #1389 * [FEATURE] Add FreeBSD zfs support #1394 * [FEATURE] Add uname support for Darwin and OpenBSD #1433 * [FEATURE] Add new metric node_cpu_info #1489 * [FEATURE] Add new thermal_zone collector #1425 * [FEATURE] Add new cooling_device metrics to thermal zone collector #1445 * [FEATURE] Add swap usage on darwin #1508 * [FEATURE] Add Btrfs collector #1512 * [FEATURE] Add RAPL collector #1523 * [FEATURE] Add new softnet collector #1576 * [FEATURE] Add new udp_queues collector #1503 * [FEATURE] Add basic authentication #1673 * [ENHANCEMENT] Log pid when there is a problem reading the process stats #1341 * [ENHANCEMENT] Collect InfiniBand port state and physical state #1357 * [ENHANCEMENT] Include additional XFS runtime statistics. #1423 * [ENHANCEMENT] Report non-fatal collection errors in the exporter metric. #1439 * [ENHANCEMENT] Expose IPVS firewall mark as a label #1455 * [ENHANCEMENT] Add check for systemd version before attempting to query certain metrics. #1413 * [ENHANCEMENT] Add a flag to adjust mount timeout #1486 * [ENHANCEMENT] Add new counters for flush requests in Linux 5.5 #1548 * [ENHANCEMENT] Add metrics and tests for UDP receive and send buffer errors #1534 * [ENHANCEMENT] The sockstat collector now exposes IPv6 statistics in addition to the existing IPv4 support. #1552 * [ENHANCEMENT] Add infiniband info metric #1563 * [ENHANCEMENT] Add unix socket support for supervisord collector #1592 * [ENHANCEMENT] Implement loadavg on all BSDs without cgo #1584 * [ENHANCEMENT] Add model_name and stepping to node_cpu_info metric #1617 * [ENHANCEMENT] Add `--collector.perf.cpus` to allow setting the CPU list for perf stats. #1561 * [ENHANCEMENT] Add metrics for IO errors and retires on Darwin. #1636 * [ENHANCEMENT] Add perf tracepoint collection flag #1664 * [ENHANCEMENT] ZFS: read contents of objset file #1632 * [ENHANCEMENT] Linux CPU: Cache CPU metrics to make them monotonically increasing #1711 * [BUGFIX] Read /proc/net files with a single read syscall #1380 * [BUGFIX] Renamed label `state` to `name` on `node_systemd_service_restart_total`. #1393 * [BUGFIX] Fix netdev nil reference on Darwin #1414 * [BUGFIX] Strip path.rootfs from mountpoint labels #1421 * [BUGFIX] Fix seconds reported by schedstat #1426 * [BUGFIX] Fix empty string in path.rootfs #1464 * [BUGFIX] Fix typo in cpufreq metric names #1510 * [BUGFIX] Read /proc/stat in one syscall #1538 * [BUGFIX] Fix OpenBSD cache memory information #1542 * [BUGFIX] Refactor textfile collector to avoid looping defer #1549 * [BUGFIX] Fix network speed math #1580 * [BUGFIX] collector/systemd: use regexp to extract systemd version #1647 * [BUGFIX] Fix initialization in perf collector when using multiple CPUs #1665 * [BUGFIX] Fix accidentally empty lines in meminfo_linux #1671 Signed-off-by: Ben Kochie <superq@gmail.com>
* Merge pull request #1679 from alexnoz/ntp-usage-str-fixBen Kochie2020-05-25
|\ | | | | Use clearer usage string for `collector.ntp.server-is-local` option
| * Use clearer usage string for `collector.ntp.server-is-local` optionAlex Nozdriukhin2020-04-18
| | | | | | | | | | Signed-off-by: Alex Nozdriukhin <alex-nozzz@mail.ru> fixes #1662
* | Merge pull request #1690 from shapor/patch-1Ben Kochie2020-05-25
|\ \ | | | | | | Move regexp to global in meminfo_linux.go
| * | Move regexp to global in meminfo_linux.goShapor Naghibzadeh2020-04-26
| | | | | | | | | | | | | | | | | | Compile regexp outside of parsing function in meminfo_linux.go Signed-off-by: Shapor Naghibzadeh <shapor@google.com>
* | | Merge pull request #1711 from prometheus/superq/cpu_cacheBen Kochie2020-05-25
|\ \ \ | | | | | | | | Linux CPU: Cache CPU metrics
| * | | Linux CPU: Cache CPU metricsBen Kochie2020-05-24
|/ / / | | | | | | | | | | | | | | | | | | | | | Cache CPU metrics to avoid counters (ie iowait) jumping backwards. Fixes: https://github.com/prometheus/node_exporter/issues/1686 Signed-off-by: Ben Kochie <superq@gmail.com>
* | | Merge pull request #1707 from roidelapluie/docBen Kochie2020-05-18
|\ \ \ | | | | | | | | https: Fix htpasswd command
| * | | https: Fix htpasswd commandJulien Pivotto2020-05-18
|/ / / | | | | | | | | | Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
* | | Merge pull request #1705 from prometheus/bjk/update_modBen Kochie2020-05-15
|\ \ \ | | | | | | | | Update Go modules
| * | | Update filesystem freebsdBen Kochie2020-05-14
| | | | | | | | | | | | | | | | | | | | | | | | Upstream x/sys/unix changed types. Signed-off-by: Ben Kochie <superq@gmail.com>
| * | | Update vendor/Ben Kochie2020-05-14
| | | | | | | | | | | | | | | | Signed-off-by: Ben Kochie <superq@gmail.com>
| * | | Update Go modulesBen Kochie2020-05-14
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | * Bump to Go 1.14 minimum version. * Update vendoring Fixes: https://github.com/prometheus/node_exporter/issues/1704 Signed-off-by: Ben Kochie <superq@gmail.com>
* | | Release 1.0.0-rc.1v1.0.0-rc.1Ben Kochie2020-05-14
| | | | | | | | | | | | | | | | | | | | | * Update CHANGELOG with fixes and improvements from rc.0 Signed-off-by: Ben Kochie <superq@gmail.com> Signed-off-by: Richard Hartmann <richih@richih.org>
* | | read contents of objset file (#1632)Sudhar2872020-05-13
| | | | | | | | | | | | | | | * added objread functionality Signed-off-by: Sudharshann D <sudhar287@gmail.com>
* | | tls: enable the selection of more TLS settings (#1695)Julien Pivotto2020-05-13
| | | | | | | | | | | | | | | | | | | | | tls: enable the selection of more TLS settings * Rename `tls_config` to `tls_server_config`. * Add new http server config with HTTP/2 enabled by default. Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
* | | Finish the update to go 1.14 (#1696)Julien Pivotto2020-05-03
| | | | | | | | | | | | | | | * Finish the update to go 1.14 Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
* | | Add basic authentication (#1683)Julien Pivotto2020-05-01
| | | | | | | | | | | | | | | * Add basic authentication Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
* | | Merge pull request #1657 from povilasv/NodeTextFileCollectorScrapeErrorFrederic Branczyk2020-04-30
|\ \ \ | | | | | | | | Add NodeTextFileCollectorScrapeError alert to mixin
| * | | Add NodeTextFileCollectorScrapeError alert to mixinPovilas Versockas2020-03-31
| | | | | | | | | | | | | | | | Signed-off-by: Povilas Versockas <p.versockas@gmail.com>
* | | | Add init.d script for OpenWrt.Tom Wilkie2020-04-28
| | | | | | | | | | | | | | | | Signed-off-by: Tom Wilkie <tom@grafana.com>
* | | | Update go to 1.14 (#1692)Julien Pivotto2020-04-28
| | | | | | | | | | | | Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
* | | | Add tls versionsJulien Pivotto2020-04-28
| | | | | | | | | | | | | | | | Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
* | | | TLS: only support TLS 1.2Julien Pivotto2020-04-28
| |/ / |/| | | | | | | | | | | | | | TLS 1.0 and 1.1 are deprecated by major vendors (e.g. browsers). Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
* | | Make TLS config consistent with Prometheus (#1685)Julien Pivotto2020-04-25
| |/ |/| | | Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
* | Fix accidently empty lines in meminfo_linux (#1671)alpaca2020-04-17
| | | | | | | | | | * Fix accidently empty lines in meminfo_linux Signed-off-by: qwertysun <qwertysun@tencent.com>
* | Expose the function to generate tls.ConfigGoutham Veeramachaneni2020-04-17
| | | | | | | | | | | | | | | | We're looking to reuse this in Cortex to client side encrypt our connections and not having this exposed is making us copy this entire function. Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
* | Add perf tracepoint collection flag (#1664)Daniel Hodges2020-04-17
| | | | | | | | | | * Add tracepoint collector option for perf collector Signed-off-by: Daniel Hodges <hodges.daniel.scott@gmail.com>
* | Fix initialization in perf collector when using multiple CPUs (#1665)Daniel Hodges2020-04-17
| | | | | | | | | | * Fix initialization in perf collector when using multiple CPUs Signed-off-by: Daniel Hodges <hodges.daniel.scott@gmail.com>
* | minor README doc fix re. collector.perf.cpusMichael Vorburger ⛑️2020-04-17
| | | | | | | | Signed-off-by: Michael Vorburger <mike@vorburger.ch>
* | fix typo in TIME.md (#1670)jangdm2020-04-09
| | | | | | | | | | fix typo in TIME.md Signed-off-by: jangdm <jamin4@naver.com>
* | Add more compatible rulesWOO CHANG HO2020-04-08
| | | | | | | | Signed-off-by: zodiac12k <zodiac12k@gmail.com>
* | Fix typo in README.mdJ0WI2020-04-08
| | | | | | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* | Update systemd example readme file (#1663)Fatih Degirmenci2020-04-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The readme file does not mention the need to create a folder named /var/lib/node_exporter/textfile_collector as a step. Lack of this folder results errors for node_exporter service which is visible in systemd status output. These errors possibly harmless but it is not good to have them still. $ sudo systemctl status node_exporter --- snipped --- Apr 04 14:51:35 ubuntu node_exporter[14713]: level=info ts=2020-04-04T14:51:35.584Z caller=node_exporter.go:190 msg="Listening on" address=:9100 Apr 04 15:05:34 ubuntu node_exporter[14876]: level=error ts=2020-04-04T15:05:34.464Z caller=textfile.go:197 collector=textfile msg="failed to read textfile collector directory" path=/var/lib/node_exporter/textfile_collector=textfile msg="failed to read textfile collector directory" path=/var/lib/node_exporter/textfile_collector err="open /var/lib/node_exporter/textfile_collector: no such file or directory" --- snipped --- Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
* | Add gauges for allocated memory for queued UDP and TCP packages (#1503)Peter Bueschel2020-03-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Two new states will be added to the tcpstat collector called rx_queued_bytes and tx_queued_bytes. For UDP datagrams an additional collector 'udp_queues' can be used to expose the total lengths of the tx_queue and rx_queue. @SuperQ and @discordianfish this changes gives us the option to check for overloaded UDP + TCP processing. The names of the new TCP states and the UDP metric can be discussed. The current reasons are just: I don't want to add another collector for the same exposed file, so I just added the new states to the tcpstat collector. I chose the name 'udp_queue' instead of 'udpstat' as UDP has no state. Signed-off-by: Peter Bueschel <peter.bueschel@logmein.com>
* | Add changelog entry for #1647Ben Kochie2020-03-27
| | | | | | | | Signed-off-by: Ben Kochie <superq@gmail.com>
* | collector/systemd: use regexp to extract systemd version (#1647)Paweł Krupa2020-03-27
| | | | | | Signed-off-by: paulfantom <pawel@krupa.net.pl>
* | Merge pull request #1649 from prometheus/beorn7/mixinBjörn Rabenstein2020-03-25
|\ \ | | | | | | Fix sign error in `NodeClockSkewDetected`
| * | Fix sign error in `NodeClockSkewDetected`beorn72020-03-25
|/ / | | | | | | Signed-off-by: beorn7 <beorn@grafana.com>