Commit graph

1822 commits

Author SHA1 Message Date
Kobe Biello 45c75f1dbc
Add cgroup summary collector (#2408)
* add cgroups summary collector

Signed-off-by: biello <bellusa@qq.com>
Co-authored-by: bielu <bielu@zuoyebang.com>
2022-06-24 12:05:13 +02:00
Ben Kochie 279ac3ada2
Merge pull request #2406 from prometheus/superq/1.18
Update build
2022-06-24 12:03:41 +02:00
Ben Kochie 9354e37203
Update build
* Update build to Go 1.18.
* Update minimum version to 1.17.
* Update machine image to latest.
* Enable dependabot.
* Simplify build in readme.

Signed-off-by: Ben Kochie <superq@gmail.com>
2022-06-19 11:16:20 +02:00
Ben Kochie 98889b3705
Merge pull request #2245 from prometheus/fish-fix-e2e-64k-page-output
Check 64k-page e2e fixtures
2022-06-19 11:01:44 +02:00
PrometheusBot 2192e2a144
Update common Prometheus files (#2402)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-06-14 00:19:23 +02:00
Björn Rabenstein e5128e83f2
Merge pull request #2364 from grafana/vzhuravlev/fs_table
mixin: Change disk graph to disk table
2022-06-08 20:46:47 +02:00
Jan Fajerski cec414df78 node-mixins/config: Switch fsAvailable warning and critical thresholds
Problem: In 0b50eb7294 the usage of the
threshold variables was adjusted. The values had been switched as well
resulting in reversed thresholds after the commit above. Warnings now
have a smaller threshold than critical alerts.

Solution: Adjust thresholds to reflect that warnings should be alerted
on before critical alerts.

Issues: https://github.com/prometheus/node_exporter/pull/2352

Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
2022-06-07 12:10:48 +02:00
Ben Kochie 3999866a36
Merge pull request #2368 from mrueg/update-go-systemd
go.mod: Update coreos/go-systemd
2022-06-05 11:20:46 +02:00
Ben Kochie 0ba6178e01
Merge pull request #2391 from prometheus/repo_sync
Synchronize common files from prometheus/prometheus
2022-06-05 11:14:25 +02:00
Ben Kochie ea85bfcc23
Merge pull request #2378 from prometheus/superq/devfilter
Rename netDevFilter helper
2022-06-05 10:01:50 +02:00
prombot bd5b9c687d Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-06-03 19:50:24 +00:00
Ben Kochie 58af1cc8df
Merge pull request #2370 from prometheus/repo_sync
Synchronize common files from prometheus/prometheus
2022-06-03 13:40:23 +02:00
Ben Kochie e22382c5ec
Merge pull request #2372 from aneagoe/master
rapl_collector: fix issue with invalid metric name (#2299)
2022-05-31 21:42:50 +02:00
Ben Kochie c6e1a5b742
Merge pull request #2381 from tklauser/unix-byteslicetostring
collector: use ByteSliceToString from golang.org/x/sys/unix
2022-05-23 16:21:55 +02:00
Tobias Klauser a8ebe3519e
collector: use ByteSliceToString from golang.org/x/sys/unix
Use unix.ByteSliceToString to convert Utsname []byte fields to strings.

This also allows to drop the bytesToString helper which serves the same
purpose and matches ByteSliceToString's implementation.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2022-05-23 15:44:16 +02:00
Ben Kochie 1b6aaeb2e8
Rename netDevFilter helper
Rename the network device filter to a more generic device filter.

Signed-off-by: Ben Kochie <superq@gmail.com>
2022-05-19 10:36:50 +02:00
Andrei Neagoe 0e320e725b rapl_collector: fix issue with invalid metric name (#2299)
Signed-off-by: Andrei Neagoe <3854672+aneagoe@users.noreply.github.com>
2022-05-09 15:42:46 +02:00
prombot fa6e6dfb7f Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-05-06 19:50:27 +00:00
Ben Kochie da8b0f694c
Merge pull request #2369 from prometheus/repo_sync
Synchronize common files from prometheus/prometheus
2022-05-05 22:24:02 +02:00
prombot 4f8bc10b00 Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-05-05 19:50:31 +00:00
Manuel Rüger 21f9ce2c49 go.mod: Update coreos/go-systemd
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-05-04 22:19:30 +02:00
Ben Kochie 66d9d7ded4
Merge pull request #2366 from prometheus/repo_sync
Synchronize common files from prometheus/prometheus
2022-05-03 22:16:46 +02:00
prombot fd8177a029 Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-05-03 19:50:29 +00:00
Björn Rabenstein b5a2ad46e3
Merge pull request #2351 from grafana/vzhuravlev/macos
Add darwin dashboard
2022-05-03 12:59:29 +02:00
Vitaly Zhuravlev eef827006a Change disk graph to disk table
Signed-off-by: Vitaly Zhuravlev <zhuravlev.vitaly@gmail.com>
2022-04-27 19:15:50 +04:00
Ben Kochie 5ea0a936cb
Merge pull request #2322 from babiel/tcpstat-netlink
refactor: Use netlink for tcpstat collector
2022-04-25 13:13:07 +02:00
Fionera 9ece38fca9 refactor: Use netlink for tcpstat collector
Signed-off-by: Tim Windelschmidt <t.windelschmidt@babiel.com>
2022-04-25 10:13:06 +02:00
Ben Kochie 19e4a2352f
Merge pull request #2334 from prometheus/repo_sync
Synchronize common files from prometheus/prometheus
2022-04-22 12:39:20 +02:00
Ben Kochie 0852c22cc3
Merge pull request #2352 from danlenar/master
Reverse fsSpaceAvailableCriticalThreshold and fsSpaceAvailableWarningThreshold
2022-04-22 12:35:01 +02:00
Daniel Lenar 0b50eb7294 Reverse fsSpaceAvailableCriticalThreshold and fsSpaceAvailableWarningThreshold
Currently critical alert for space available alerts on warning and
warning alert for space available alerts on critical.

Signed-off-by: Daniel Lenar <dlenar@vailsys.com>
2022-04-21 11:34:54 -05:00
Gabriel Amaral Antunes 410e069471 Add darwin dashboard to mixin
Signed-off-by: Vitaly Zhuravlev <zhuravlev.vitaly@gmail.com>
2022-04-20 15:18:43 +04:00
Ben Kochie 3d9ee5d9cc
Merge pull request #2343 from binjip978/staticcheck-linux
Fix staticcheck warnings on linux
2022-04-09 10:10:55 -05:00
binjip978 e5f384dfe6 Fix staticcheck warnings on linux
Signed-off-by: binjip978 <pdp.eleven11@gmail.com>
2022-04-09 05:36:59 +00:00
Ben Kochie 6a5a238da3
Merge pull request #2340 from grafana/vzhuravlev/alerts
Fix NodeFileDescriptorLimit alerts
2022-04-07 09:34:01 -05:00
Vitaly Zhuravlev 8823605f12 Fix NodeFileDescriptorLimit alerts
Signed-off-by: Vitaly Zhuravlev <zhuravlev.vitaly@gmail.com>
2022-04-07 16:25:17 +04:00
prombot e6df2dab07 Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-03-31 19:50:40 +00:00
Ben Kochie b52bf958f8
Merge pull request #2327 from pjjw/pjjw/powersupplyclass-darwin-old-sdk-fixes
powersupplyclass_darwin: extra includes to build against older macOS SDK
2022-03-30 12:08:52 +02:00
Ben Kochie aa3bce3be3
Merge pull request #2332 from prometheus/superq/bump_mods
Update Go modues
2022-03-30 12:07:46 +02:00
Ben Kochie 9155971e07
Update Go modues
Update to latest releases.
* Fix up perf collector syntax.

Signed-off-by: Ben Kochie <superq@gmail.com>
2022-03-30 11:47:09 +02:00
Peter Woodman 2370cccc1f
powersupplyclass_darwin: enable builds against older macOS SDK
This is necessary to build on darwin using nix, as nix-darwin uses an
older macOS SDK, built from Apple's open source releases.

Signed-off-by: Peter Woodman <peter@shortbus.org>
2022-03-23 22:41:31 -04:00
Ben Kochie 9aae303a46
Merge pull request #2289 from tanguyfalconnet/ethtool-lock
ethtool_linux: add mutex around entries access
2022-03-22 04:34:19 -07:00
Ben Kochie 086fdfed24
Merge pull request #2267 from bison/netdev-lock
netdev_common: Add mutex around metricDescs access
2022-03-22 04:27:37 -07:00
W. Andrew Denton 402a00932d Add a reference to the Linux kernel's documentation for block stat.
Signed-off-by: W. Andrew Denton <git@flying-snail.net>
2022-03-22 11:36:00 +01:00
W. Andrew Denton 84ce3a0103 diskstats_linux: always scale reads and writes by 512 bytes, not by device units.
Signed-off-by: W. Andrew Denton <git@flying-snail.net>
2022-03-22 11:36:00 +01:00
prombot e9feae971a Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-03-22 11:33:58 +01:00
Brad Ison cb7b5a755b
netdev_common: Add mutex around metricDescs access
In certain instances on heavily loaded nodes with many network
devices, there may be concurrent access to the netdev collector's
`metricDescs` map, resulting in a panic.  This adds a mutex to prevent
concurrent reads and writes to the map.

Signed-off-by: Brad Ison <bison@xvdf.io>
2022-03-16 11:46:24 +01:00
Simon Pasquier 4917e1a451
Merge pull request #2307 from prometheus/repo_sync
Synchronize common files from prometheus/prometheus
2022-03-16 11:11:50 +01:00
prombot dee7e7d678 Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-03-03 19:50:32 +00:00
Ben Kochie e3a18fdd37
Merge pull request #2283 from prometheus/superq/fix_systemd_version
Refactor systemd version
2022-02-22 14:33:05 +01:00
Ben Kochie 0c14f4aede
Merge pull request #2281 from sev3ryn/patch-1
[node-mixin] change current datasource to grafana's default
2022-02-22 14:23:55 +01:00