Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMM-12155 Sync with upstream #46

Merged
merged 285 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
285 commits
Select commit Hold shift + click to select a range
22e5dd2
Fix lint issues
jalev Dec 16, 2022
b5259fe
Bump perf-utils version to 0.6.0
hodgesds Dec 22, 2022
edc33af
Merge pull request #2553 from hodgesds/perf-bump
SuperQ Dec 22, 2022
4484f18
Merge pull request #2542 from mchtech/add-perf-profiler-options
SuperQ Dec 22, 2022
efa7f24
Fix thermal_zone collector noise
SuperQ Dec 22, 2022
d647e2a
Update common Prometheus files
prombot Dec 22, 2022
b9eef57
Merge pull request #2554 from prometheus/superq/fix_thermal_missing
SuperQ Dec 29, 2022
701912b
Enable uname collector on NetBSD too
bsiegert Dec 31, 2022
a3bd2e1
Merge pull request #2559 from bsiegert/netbsd-uname
SuperQ Dec 31, 2022
feaa2a7
build(deps): bump github.com/mdlayher/netlink from 1.7.0 to 1.7.1
dependabot[bot] Jan 1, 2023
f9a4d04
build(deps): bump github.com/josharian/native from 1.0.0 to 1.1.0
dependabot[bot] Jan 1, 2023
39b4556
fix cpustat when some cpus are offline
alexjx Mar 15, 2022
93a7f70
Merge pull request #2318 from alexjx/topic/pick-up-new-procfs
SuperQ Jan 20, 2023
2739c79
Merge pull request #2564 from prometheus/dependabot/go_modules/github…
SuperQ Jan 20, 2023
2ae17ac
Merge pull request #2562 from prometheus/dependabot/go_modules/github…
SuperQ Jan 20, 2023
10a944e
build(deps): bump github.com/prometheus/common from 0.37.0 to 0.39.0
dependabot[bot] Jan 20, 2023
2d77d8c
Update e2e output for new common version.
SuperQ Jan 20, 2023
aaf7f58
Merge pull request #2563 from prometheus/dependabot/go_modules/github…
SuperQ Jan 20, 2023
ff79170
Update common Prometheus files
prombot Jan 20, 2023
5bc8e9e
Merge pull request #2580 from prometheus/repo_sync
SuperQ Jan 20, 2023
131ff8a
NetBSD support for the meminfo collector
bsiegert Jan 3, 2023
6a0598e
Merge pull request #2570 from bsiegert/meminfo_netbsd
SuperQ Jan 24, 2023
9232df7
memory_bsd: Fix a problem fetching the user wire count on FreeBSD
phyber Jan 26, 2023
3cd9b16
Optimize cpufreq collector
SuperQ Jan 28, 2023
d586562
build(deps): bump github.com/hodgesds/perf-utils from 0.6.0 to 0.7.0
dependabot[bot] Feb 1, 2023
7f05e31
Merge pull request #2584 from phyber/20230126-fix_freebsd_meminfo_use…
SuperQ Feb 13, 2023
c8705ec
Deprecate ntp collector
SuperQ Feb 16, 2023
36001d0
Update common Prometheus files
prombot Feb 20, 2023
97ceada
Merge pull request #2606 from prometheus/repo_sync
SuperQ Feb 20, 2023
591a6b2
Merge pull request #2589 from prometheus/dependabot/go_modules/github…
SuperQ Feb 25, 2023
bb0a293
build(deps): bump golang.org/x/net from 0.4.0 to 0.7.0
dependabot[bot] Feb 25, 2023
9658b87
Merge pull request #2610 from prometheus/dependabot/go_modules/golang…
SuperQ Feb 25, 2023
c914f00
Merge pull request #2587 from prometheus/superq/cpufreq_common
SuperQ Feb 25, 2023
37d4974
Remove metrics of offline CPUs in CPU collector
raptorsun Feb 17, 2023
1026cac
build(deps): bump github.com/jsimonetti/rtnetlink from 1.3.0 to 1.3.1
dependabot[bot] Mar 1, 2023
4a85756
build(deps): bump github.com/opencontainers/selinux
dependabot[bot] Mar 1, 2023
4a78012
build(deps): bump golang.org/x/sys from 0.5.0 to 0.6.0
dependabot[bot] Mar 7, 2023
c23b76b
Update exporter-toolkit
SuperQ Mar 7, 2023
c42d046
Merge pull request #2622 from prometheus/superq/update_exporter-toolkit
SuperQ Mar 7, 2023
2f20a9b
Merge pull request #2603 from prometheus/superq/deprecate_ntp
SuperQ Mar 7, 2023
b4133c2
Bump exporter-toolkit
SuperQ Mar 8, 2023
3691cb9
Update build
SuperQ Mar 7, 2023
8daf3e7
Merge pull request #2625 from prometheus/superq/update_build
SuperQ Mar 8, 2023
bb5ecb7
Merge pull request #2627 from prometheus/superq/bump_toolkit
SuperQ Mar 8, 2023
c13f808
Allow root path as metrics path. (#2590)
LamGC Mar 8, 2023
7f07462
Fix spelling issues
SuperQ Mar 10, 2023
1d86937
Merge pull request #2630 from prometheus/superq/fix_spell
SuperQ Mar 10, 2023
8d3c594
interrupts_linux: Fix fields on aarch64 (#2631)
dveeden Mar 10, 2023
fe19fdd
feat: add support for cpu freq governor metrics
Mar 8, 2023
1724b28
feat: add support for cpu freq governor metrics
Mar 8, 2023
ec8f580
Reduce priviliges needed for btrfs device stats
leth Mar 12, 2023
e608850
Merge pull request #2634 from leth/btrfs-without-root
SuperQ Mar 14, 2023
6a42c0b
Update common Prometheus files
prombot Mar 21, 2023
d8d6f32
build(deps): bump github.com/safchain/ethtool from 0.2.0 to 0.3.0
dependabot[bot] Apr 1, 2023
a347ad6
Merge pull request #2647 from prometheus/dependabot/go_modules/github…
SuperQ Apr 1, 2023
5095df7
build(deps): bump github.com/prometheus/common from 0.41.0 to 0.42.0
dependabot[bot] Apr 1, 2023
c91a8bc
Merge pull request #2646 from prometheus/dependabot/go_modules/github…
SuperQ Apr 1, 2023
b87c6a8
NetBSD support for CPU collector (#2626)
MatthiasPetermann Apr 7, 2023
d31af1d
feat: added suspended as a node_zfs_zpool_state (#2449)
kadern0 Apr 26, 2023
2e152a3
build(deps): bump github.com/mdlayher/netlink from 1.7.1 to 1.7.2
dependabot[bot] May 1, 2023
67ca103
build(deps): bump github.com/prometheus/client_golang
dependabot[bot] May 1, 2023
a7f9275
doc: added undocumented include and exclude flags (#2670)
dotdc May 2, 2023
c8129fa
Expose administrative state of network interfaces as 'adminstate'. (#…
BarbarossaTM May 2, 2023
180879e
Use go-runit fork, mark collector as deprecated
discordianfish May 2, 2023
d3a0156
build(deps): bump github.com/jsimonetti/rtnetlink from 1.3.1 to 1.3.2…
dependabot[bot] May 11, 2023
0a17e17
docs (node/mixin): fix annotation for Skew alert (#2671)
wbollock May 11, 2023
29c97c2
collector/netisr_freebsd.go: Added collector for netisr subsystem. (#…
jpds May 11, 2023
6251cc7
Do not hand define struct clockinfo here. Instead use the version fro…
cjeker May 11, 2023
184a4e0
Fix filesystem collector for OpenBSD to not print loads of zero bytes…
cjeker May 11, 2023
287414b
collector: fix comment and remove redundant parentheses (#2691)
cuishuang May 17, 2023
aa219e0
Merge tag 'v1.5.0' into PMM-12116-update-from-upstream
0leksii May 18, 2023
4116ec0
PMM-12116 Sync with upstream and update dependencies
0leksii May 18, 2023
dcb10ff
bcache: remove cache_readaheads_totals metrics #2103 (#2583)
0xack13 May 20, 2023
b36a2a3
Fix CVE-2022-41723 by upgrading x/net to v0.10.0 (#2694)
nshelke777 May 22, 2023
d2dd793
Update e2e output fixtures (#2696)
SuperQ May 22, 2023
3f64e91
Update Go modules (#2695)
SuperQ May 23, 2023
1bbb2a9
fix(zfs): add `memory_available_bytes`, fix `dbufstats` filename on L…
dongjiang1989 May 23, 2023
26c7ed5
Update Go module for ema/qdisc (#2700)
jbradleynh May 23, 2023
da0b2ca
Deprecate supervisord collector
SuperQ May 11, 2023
c05b97c
collector/diskstats: Use SCSI_IDENT_SERIAL as serial (#2612)
BenoitKnecht May 24, 2023
f0aecfa
Merge branch 'main' into PMM-12116-update-from-upstream
0leksii May 24, 2023
df1b53b
softnet: additionals metrics from softnet_data, (#2592)
remijouannet May 24, 2023
eaacb2e
exposing softirq metrics (#2294)
abbeywoodyear May 25, 2023
8c5847b
netlink: read missing attributes from sysfs (#2669)
dcbw May 25, 2023
a1ed084
Update ansible role in README.md (#2702)
jd1 May 26, 2023
ff7f9d6
Release v1.6.0 (#2701)
SuperQ May 27, 2023
386c408
build(deps): bump github.com/beevik/ntp from 0.3.0 to 1.0.0
dependabot[bot] Jun 1, 2023
fc686da
build(deps): bump github.com/prometheus/procfs from 0.10.0 to 0.10.1
dependabot[bot] Jun 1, 2023
75d951d
build(deps): bump github.com/jsimonetti/rtnetlink from 1.3.2 to 1.3.3
dependabot[bot] Jun 1, 2023
bdc430a
Parallelize stat calls in Linux filesystem collector.
Sircular Jun 2, 2023
107ca03
fix misspel in CHANGELOG.md (#2717)
juzhao Jun 13, 2023
6fb78f7
Bump wifi Go module (#2719)
SuperQ Jun 14, 2023
742ec09
Bump ethtool library (#2720)
SuperQ Jun 14, 2023
2346fd9
add missing linkspeeds (#2711)
ccope Jun 18, 2023
d1b634f
Update common Prometheus files (#2723)
prombot Jun 18, 2023
a11de2e
Update golangci-lint config (#2722)
SuperQ Jun 21, 2023
fc967aa
Add mountpoint to NodeFilesystem alerts
v-zhuravlev Mar 27, 2023
0e0399d
Decrease NodeFilesystem pending time to 15m
v-zhuravlev Mar 27, 2023
fd2d62a
Add CPU and memory alerts
v-zhuravlev Mar 27, 2023
7479418
Add failed systemd service alert
v-zhuravlev Mar 27, 2023
3d8075d
Decrease NodeNetwork*Errs pending period
v-zhuravlev Mar 27, 2023
614030b
Set 'at' everywhere as preposition for instance
v-zhuravlev Mar 27, 2023
94fc82e
Add NodeDiskIOSaturation alert
v-zhuravlev Mar 27, 2023
962de6c
Add %(nodeExporterSelector)s to Network and conntrack alerts
v-zhuravlev Mar 27, 2023
c3ec6e8
Add diskDevice selector
v-zhuravlev Mar 27, 2023
e15e7d6
Fix NodeMemoryHighUtilization alert
v-zhuravlev Mar 27, 2023
580c497
Add NodeSystemSaturation and NodeMemoryMajorPagesFaults
v-zhuravlev Mar 27, 2023
da32f8d
Decrease NodeSystemdServiceFailed severity to warning
v-zhuravlev Mar 29, 2023
e48e790
Extend alert description
v-zhuravlev Apr 5, 2023
2111e70
Add comma after 'mounted on'
v-zhuravlev Apr 5, 2023
77ae769
Add thresholds for memory alerts
v-zhuravlev Apr 5, 2023
6bdc1d9
Add thresholds for memory, disk and system alerts
v-zhuravlev Apr 5, 2023
b7dfb32
Set severity to NodeCPUHighUsage to info
v-zhuravlev Apr 5, 2023
3e250a9
Update NodeSystemSaturation severity
v-zhuravlev Apr 26, 2023
e8d7f4e
Revert alerts pending durtions
v-zhuravlev Jun 29, 2023
3e3ab17
Update common Prometheus files
prombot Jun 27, 2023
c31ebb4
Add cpu vulnerabilities reporting from sysfs (#2721)
mwasilew2 Jul 1, 2023
74da9f9
build(deps): bump github.com/beevik/ntp from 1.0.0 to 1.1.1
dependabot[bot] Jul 1, 2023
a24344d
build(deps): bump github.com/prometheus/client_golang
dependabot[bot] Jul 1, 2023
ed57c15
Merge pull request #2644 from v-zhuravlev/mixin_alerts
SuperQ Jul 4, 2023
8b4dc82
Add include and exclude filter for hwmon collector (#2699)
conallob Jul 7, 2023
f434457
Add missing ethtool flag documentation (#2743)
mindw Jul 8, 2023
c241ecf
Update all Include and Exclude variables to use the systemdUnit namin…
conallob Jul 10, 2023
7c564bc
Fixup hwmon chip include (#2739)
SuperQ Jul 10, 2023
2d80692
Release v1.6.1 (#2747)
SuperQ Jul 17, 2023
fa48131
Synchronize common files from prometheus/prometheus (#2736)
prombot Jul 18, 2023
8fb4f78
Update common Prometheus files (#2752)
prombot Jul 18, 2023
5d1b96c
Include drm collector in README
LukeLR Jul 27, 2023
3b9613c
collector/netdev_linux.go: Fallback to 32-bit stats (#2757)
BenoitKnecht Aug 1, 2023
35278b9
build(deps): bump github.com/beevik/ntp from 1.1.1 to 1.3.0 (#2762)
dependabot[bot] Aug 2, 2023
60f08e0
build(deps): bump github.com/prometheus/procfs from 0.11.0 to 0.11.1 …
dependabot[bot] Aug 2, 2023
c6c28d9
build(deps): bump github.com/jsimonetti/rtnetlink from 1.3.3 to 1.3.4…
dependabot[bot] Aug 2, 2023
3fb5f70
Drop redundant GOOS build tags if already in filename
dswarbrick Aug 3, 2023
37ce0ba
Sync build tags in *_test.go (#2767)
dswarbrick Aug 15, 2023
6225435
Upgrade github.com/ema/qdisc to v1.0.0 to improve qdisc collector (#2…
taktv6 Aug 18, 2023
223ebbd
Add CPU MHz as the value for "node_cpu_info" metric
johnkord Aug 18, 2023
e84c278
Update e2e-output.txt with new expected metric values
johnkord Aug 18, 2023
933b1c1
Add new node_cpu_frequency_hertz metric
johnkord Aug 19, 2023
e120d95
Change log message from Warn to Debug
johnkord Aug 19, 2023
f2b2743
fix(qdisc) flag naming corrected for consistency (#2782)
jbradleynh Aug 21, 2023
381f32b
btrfs: close btrfs.FS handle after use
dswarbrick Aug 18, 2023
cda1d82
Update to Go 1.21 (#2796)
SuperQ Sep 9, 2023
685b98e
Optionally fetch ARP stats via rtnetlink instead of procfs (#2777)
dswarbrick Sep 9, 2023
e590476
build(deps): bump golang.org/x/sys from 0.10.0 to 0.12.0 (#2797)
dependabot[bot] Sep 9, 2023
5ae22fa
Update common Prometheus files (#2798)
prombot Sep 9, 2023
f34aaa6
Add ZFS freebsd per dataset stats (#2753)
conallob Sep 11, 2023
e387997
Move RO status before error return
metbog Sep 19, 2023
446b3e6
Update common Prometheus files
prombot Sep 14, 2023
e8c5110
fix(zfs) zfs `arcstats.p` on FreeBSD 14.0+ (#2754)
dongjiang1989 Sep 20, 2023
db3a437
Fix promhttp_metric_handler_errors_total metric not being disabled by…
ToMe25 Sep 22, 2023
8ff3c43
build(deps): bump github.com/prometheus/client_golang (#2815)
dependabot[bot] Oct 2, 2023
60c86ab
Fix inconsistent variable name, to address compilation issue (#2820)
conallob Oct 4, 2023
7dd2f0d
Update README.md: update the 'more details' url in the section 'TLS e…
yang-stressfree Oct 7, 2023
d52c047
Update common Prometheus files
prombot Oct 2, 2023
d108e55
build(deps): bump golang.org/x/net from 0.11.0 to 0.17.0
dependabot[bot] Oct 11, 2023
fd799e4
build(deps): bump github.com/prometheus/procfs from 0.11.1 to 0.12.0
dependabot[bot] Oct 13, 2023
31a9cca
Update e2e fixtures
SuperQ Oct 16, 2023
6384499
Merge pull request #2816 from prometheus/dependabot/go_modules/github…
SuperQ Oct 16, 2023
0f6a4d8
Merge pull request #2808 from ToMe25/fix_error_total_disabling
SuperQ Oct 16, 2023
86ed8cd
NFSd: fix nfsd v4 index miss (#2824)
dongjiang1989 Oct 16, 2023
6122cee
fix readme about expose memory statistics
chengjoey Oct 16, 2023
d39e5aa
Fix typo in CHANGELOG.md (#2836)
nemobis Oct 31, 2023
47ccad5
Update common Prometheus files (#2840)
prombot Nov 6, 2023
5ffc733
build(deps): bump github.com/prometheus/common from 0.44.0 to 0.45.0 …
dependabot[bot] Nov 6, 2023
ed1b8e3
build(deps): bump github.com/prometheus/client_model (#2838)
dependabot[bot] Nov 6, 2023
74ff1c6
Release 1.7.0 (#2845)
SuperQ Nov 12, 2023
7333465
Add NodeBondingDegraded alert (#2843)
Nov 12, 2023
81fc05c
Make filesystem space prediction window configurable (#2844)
fitz123 Nov 13, 2023
78af952
NFSd: handle new wdeleg_getattr attribute in /proc/net/rpc/nfsd (#2810)
klausman Nov 14, 2023
97029a2
Update common Prometheus files (#2851)
prombot Nov 19, 2023
4abf2c9
Update containerization warnings (#2855)
SuperQ Nov 23, 2023
12f1744
Fix debug log in cpu collector (#2857)
simonpasquier Nov 24, 2023
e1724b3
build(deps): bump github.com/alecthomas/kingpin/v2 from 2.3.2 to 2.4.…
dependabot[bot] Dec 1, 2023
e508aff
build(deps): bump howett.net/plist from 1.0.0 to 1.0.1 (#2862)
dependabot[bot] Dec 1, 2023
332232c
Add new collector and metrics for XFRM (#2544) (#2866)
gavinkflam Dec 3, 2023
12d5add
build(deps): bump github.com/jsimonetti/rtnetlink from 1.3.5 to 1.4.0…
dependabot[bot] Dec 4, 2023
9666d00
build(deps): bump golang.org/x/sys from 0.13.0 to 0.15.0 (#2863)
dependabot[bot] Dec 4, 2023
0550ab3
Add TCPOFOQueue to default netstat metrics (#2867)
freedge Dec 8, 2023
c2dcc79
Update common Prometheus files (#2870)
prombot Dec 10, 2023
16f7122
Add mitigation information to the linux vulnerabilities collector (#2…
jopelima Dec 14, 2023
120c481
Update common Prometheus files (#2872)
prombot Dec 19, 2023
95d419d
build(deps): bump golang.org/x/crypto from 0.14.0 to 0.17.0 (#2877)
dependabot[bot] Dec 19, 2023
73d9530
Update common Prometheus files (#2879)
prombot Dec 19, 2023
683d2cd
build(deps): bump github.com/prometheus/exporter-toolkit (#2885)
dependabot[bot] Jan 1, 2024
bd99fb0
build(deps): bump github.com/beevik/ntp from 1.3.0 to 1.3.1 (#2886)
dependabot[bot] Jan 1, 2024
d8e2be1
build(deps): bump github.com/prometheus/client_golang (#2887)
dependabot[bot] Jan 1, 2024
f18cd07
Update common Prometheus files (#2897)
prombot Jan 8, 2024
e22174c
diskstats: ignore zram devices on linux systems by default (#2898)
DBS-ST-VIT Jan 15, 2024
4db443e
Bump golang-builder version (#2908)
gitperr Jan 27, 2024
94ddad4
exec_bsd: Fix labels for vm.stats.sys.v_syscall sysctl (#2895)
phyber Jan 29, 2024
34467b1
chore:remove constant from function (#2884)
tylitianrui Jan 29, 2024
1ae329e
build(deps): bump github.com/prometheus/common from 0.45.0 to 0.46.0 …
dependabot[bot] Feb 1, 2024
14949db
build(deps): bump github.com/jsimonetti/rtnetlink from 1.4.0 to 1.4.1…
dependabot[bot] Feb 2, 2024
fe78e7e
fix hwmon nil ptr (#2873)
yowenter Feb 3, 2024
29fca60
Fix hwmon error capture (#2915)
SuperQ Feb 7, 2024
d54744a
Update common Prometheus files (#2917)
prombot Feb 7, 2024
6d18ce7
Revert "Add ZFS freebsd per dataset stats (#2753)" (#2925)
seeplusplus Feb 14, 2024
9f1f791
filesystem: fix mountTimeout not working issue (#2903)
DongWei-4 Feb 14, 2024
9f94738
Fix description for NodeDiskIOSaturation alert (#2929)
slyt Feb 16, 2024
09014c0
Enforce no subprocess policy (#2926)
SuperQ Feb 16, 2024
1219247
filesystem: surface device errors (#2923)
PamelaMei-SAP Feb 18, 2024
3a02ab1
Revert "filesystem: fix mountTimeout not working issue (#2903)" (#2932)
SuperQ Feb 20, 2024
c371a7f
Update common Prometheus files (#2939)
prombot Feb 26, 2024
3866d2a
Update common Prometheus files (#2946)
prombot Mar 4, 2024
cdb1e4c
build(deps): bump golang.org/x/sys from 0.16.0 to 0.17.0 (#2943)
dependabot[bot] Mar 6, 2024
762f15e
build(deps): bump github.com/prometheus/client_golang (#2942)
dependabot[bot] Mar 6, 2024
d502a14
build(deps): bump github.com/prometheus/client_model from 0.5.0 to 0.…
dependabot[bot] Mar 6, 2024
4ec07ee
build(deps): bump golang.org/x/sys from 0.17.0 to 0.18.0 (#2948)
dependabot[bot] Mar 6, 2024
90c7f0f
Update common Prometheus files (#2949)
prombot Mar 8, 2024
8dbeac9
build(deps): bump github.com/prometheus/procfs from 0.12.0 to 0.13.0 …
dependabot[bot] Mar 8, 2024
cc49133
Add multi-cluster support for Nodes dashboard (#2945)
adberger Mar 8, 2024
5e412a6
disable selinux,fix end-to-end-test.sh error(#2934) (#2937)
linuxgcc Mar 8, 2024
95efb86
Add new collector and metrics for watchdog (#2309) (#2880)
gavinkflam Mar 9, 2024
94ef5cc
Enable watchdog module by default; Add no data error (#2953)
gavinkflam Mar 14, 2024
666a5d7
Update common Prometheus files (#2954)
prombot Mar 17, 2024
9d359d0
build(deps): bump google.golang.org/protobuf from 1.32.0 to 1.33.0 (#…
dependabot[bot] Mar 17, 2024
32ac7f4
Update common Prometheus files (#2959)
prombot Mar 18, 2024
274cd51
Update common Prometheus files (#2964)
prombot Mar 21, 2024
b3bbd1f
Sanitize ethtool metric name keys
SuperQ Feb 29, 2024
6425f07
Update common Prometheus files
prombot Mar 21, 2024
641cf2c
chore: fix some typos (#2974)
occupyhabit Mar 23, 2024
ebddab4
collector/textfile: Avoid inconsistent help-texts (#2962)
rexagod Mar 24, 2024
3accd4c
Update common Prometheus files (#2973)
prombot Mar 24, 2024
b6227af
os_release.go: Added support end parsing support. (#2982)
jpds Apr 3, 2024
29cdbd6
zfs: Log mib when sysctl read fails on FreeBSD
dekimsey Mar 23, 2024
7d4103c
chore: fix typo in comment
looklose Apr 10, 2024
bf67c85
fibre_channel: update procfs to take into account optional attributes…
machine424 Apr 15, 2024
0202220
refactor: Optimize code by using built-in constants in the standard l…
coderwander Apr 16, 2024
36e0d1f
os_release.go: Removed caching of modtime/filename of os-release file…
jpds Apr 17, 2024
dc5d3ca
build(deps): bump golang.org/x/net from 0.20.0 to 0.23.0 (#2996)
dependabot[bot] Apr 19, 2024
e9e2713
fix: data race of NetClassCollector metrics initialization when multi…
gqcn Apr 19, 2024
5c4f9e7
Update common Prometheus files (#2992)
prombot Apr 19, 2024
acb3676
Update build (#3000)
SuperQ Apr 20, 2024
d333366
Fix watchdog_test lint and test failures on macos. (#3003)
cleeland Apr 22, 2024
cadb1d1
Release v1.8.0 (#3002)
SuperQ Apr 24, 2024
b663d9d
Update common Prometheus files (#3009)
prombot May 2, 2024
2d4cb7a
Sign node exporter darwin binary with rcodesign (#3008)
gitperr May 2, 2024
e824cde
collector/cpu: s/cpu_ticks*/cpu_nsec* for solaris (#2963)
rexagod May 15, 2024
31e0145
Fix pressure collector nil reference (#3016)
SuperQ May 16, 2024
400c397
Release v1.8.1 (#3018)
SuperQ May 21, 2024
f1e0e83
Release v1.8.2 (#3055)
SuperQ Jul 14, 2024
65a733e
Merge tag 'refs/tags/v1.8.2' into PMM-12116-update-from-upstream
BupycHuk Aug 19, 2024
beef911
PMM-7 update imports
BupycHuk Sep 16, 2024
3fe351b
Merge branch 'main' into PMM-12116-update-from-upstream
BupycHuk Oct 10, 2024
4c4777f
PMM-12116 update imports
BupycHuk Oct 10, 2024
e31bfbd
PMM-12116 fix build
BupycHuk Oct 10, 2024
e1392b4
PMM-12116 fix CI
BupycHuk Oct 10, 2024
3e4c840
PMM-12116 fix linter.
BupycHuk Oct 10, 2024
d8a5709
Merge branch 'v3' into PMM-12116-update-from-upstream
BupycHuk Nov 8, 2024
37093b9
PMM-12116 fix go mod.
BupycHuk Nov 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 17 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
version: 2.1
orbs:
prometheus: prometheus/prometheus@0.16.0
prometheus: prometheus/prometheus@0.17.1
executors:
# Whenever the Go version is updated here, .promu.yml and .promu-cgo.yml
# should also be updated.
golang:
docker:
- image: cimg/go:1.19
- image: cimg/go:1.22
arm:
machine:
image: ubuntu-2004:current
image: ubuntu-2204:current
resource_class: arm.medium

jobs:
Expand All @@ -28,13 +28,6 @@ jobs:
- checkout
- run: uname -a
- run: make test-e2e
codespell:
docker:
- image: circleci/python
steps:
- checkout
- run: sudo pip install codespell
- run: codespell --skip=".git,./vendor,ttar,go.mod,go.sum,*pem,./collector/fixtures" -I scripts/codespell_ignore.txt
test_mixins:
executor: golang
steps:
Expand All @@ -49,13 +42,23 @@ jobs:
- run: git diff --exit-code
build:
machine:
image: ubuntu-2004:202101-01
image: ubuntu-2204:current
parallelism: 3
steps:
- prometheus/setup_environment
- run: docker run --privileged linuxkit/binfmt:v0.8
- run: docker run --privileged linuxkit/binfmt:af88a591f9cc896a52ce596b9cf7ca26a061ef97
- run: promu crossbuild -v --parallelism $CIRCLE_NODE_TOTAL --parallelism-thread $CIRCLE_NODE_INDEX
- run: promu --config .promu-cgo.yml crossbuild -v --parallelism $CIRCLE_NODE_TOTAL --parallelism-thread $CIRCLE_NODE_INDEX
# sign the darwin build so it doesn't get SIGKILLed on start, see: https://github.com/prometheus/node_exporter/issues/2539
- run:
command: |
if [[ -f "$(pwd)/.build/darwin-arm64/node_exporter" ]]; then
promu codesign "$(pwd)/.build/darwin-arm64/node_exporter"
fi

if [[ -f "$(pwd)/.build/darwin-amd64/node_exporter" ]]; then
promu codesign "$(pwd)/.build/darwin-amd64/node_exporter"
fi
- persist_to_workspace:
root: .
paths:
Expand All @@ -65,9 +68,9 @@ jobs:
destination: /build
test_docker:
machine:
image: ubuntu-2204:2022.04.2
image: ubuntu-2204:current
environment:
DOCKER_TEST_IMAGE_NAME: quay.io/prometheus/golang-builder:1.18-base
DOCKER_TEST_IMAGE_NAME: quay.io/prometheus/golang-builder:1.22-base
REPO_PATH: github.com/prometheus/node_exporter
steps:
- prometheus/setup_environment
Expand Down Expand Up @@ -105,10 +108,6 @@ workflows:
filters:
tags:
only: /.*/
- codespell:
filters:
tags:
only: /.*/
- test_docker:
requires:
- test
Expand Down
4 changes: 3 additions & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Before filing a bug report, note that running node_exporter in Docker is
not recommended, for the reasons detailed in the README:

https://github.com/prometheus/node_exporter#using-docker
https://github.com/prometheus/node_exporter#docker

Finally, also note that node_exporter is focused on *NIX kernels, and the
WMI exporter should be used instead on Windows.
Expand All @@ -23,6 +23,8 @@
### node_exporter command line flags
<!-- Please list all of the command line flags -->

### node_exporter log output

### Are you running node_exporter in Docker?
<!-- Please note the warning above. -->

Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/container_description.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
name: Push README to Docker Hub
on:
push:
paths:
- "README.md"
- ".github/workflows/container_description.yml"
branches: [ main, master ]

permissions:
contents: read

jobs:
PushDockerHubReadme:
runs-on: ubuntu-latest
name: Push README to Docker Hub
if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks.
steps:
- name: git checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Set docker hub repo name
run: echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> $GITHUB_ENV
- name: Push README to Dockerhub
uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # v1
env:
DOCKER_USER: ${{ secrets.DOCKER_HUB_LOGIN }}
DOCKER_PASS: ${{ secrets.DOCKER_HUB_PASSWORD }}
with:
destination_container_repo: ${{ env.DOCKER_REPO_NAME }}
provider: dockerhub
short_description: ${{ env.DOCKER_REPO_NAME }}
readme_file: 'README.md'

PushQuayIoReadme:
runs-on: ubuntu-latest
name: Push README to quay.io
if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks.
steps:
- name: git checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Set quay.io org name
run: echo "DOCKER_REPO=$(echo quay.io/${GITHUB_REPOSITORY_OWNER} | tr -d '-')" >> $GITHUB_ENV
- name: Set quay.io repo name
run: echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> $GITHUB_ENV
- name: Push README to quay.io
uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # v1
env:
DOCKER_APIKEY: ${{ secrets.QUAY_IO_API_TOKEN }}
with:
destination_container_repo: ${{ env.DOCKER_REPO_NAME }}
provider: quay
readme_file: 'README.md'
20 changes: 13 additions & 7 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---
# This action is synced from https://github.com/prometheus/prometheus
name: golangci-lint
on:
push:
Expand All @@ -10,24 +12,28 @@ on:
- ".golangci.yml"
pull_request:

permissions: # added using https://github.com/step-security/secure-repo
contents: read

jobs:
golangci:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: install Go
uses: actions/setup-go@v5
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: 1.18.x

go-version: 1.22.x
- name: Install snmp_exporter/generator dependencies
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
if: github.repository == 'prometheus/snmp_exporter'

- name: Lint
uses: golangci/golangci-lint-action@v6.1.1
uses: golangci/golangci-lint-action@9d1e0624a798bb64f6c3cea93db47765312263dc # v5.1.0
with:
version: v1.45.2
version: v1.56.2
7 changes: 0 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ jobs:
name: node_exporter
path: node_exporter

codespell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo pip install codespell
- run: codespell --skip=".git,ttar,go.mod,go.sum,*pem,./collector/fixtures" -I scripts/codespell_ignore.txt

test_mixins:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ dependencies-stamp

# Test files extracted from ttar
collector/fixtures/sys/
collector/fixtures/udev/

/vendor

Expand Down
22 changes: 21 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
linters:
enable:
- depguard
- misspell
- revive
disable:
# Disable soon to deprecated[1] linters that lead to false
Expand All @@ -18,5 +20,23 @@ issues:
- errcheck

linters-settings:
depguard:
rules:
no_exec_policy:
files:
- "!$test"
deny:
- pkg: "os/exec"
desc: "Using os/exec to run sub processes it not allowed by policy"
errcheck:
exclude: scripts/errcheck_excludes.txt
exclude-functions:
# Used in HTTP handlers, any error is handled by the server itself.
- (net/http.ResponseWriter).Write
# Never check for logger errors.
- (github.com/go-kit/log.Logger).Log
revive:
rules:
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unused-parameter
- name: unused-parameter
severity: warning
disabled: true
3 changes: 1 addition & 2 deletions .promu-cgo.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
go:
# Whenever the Go version is updated here, .circle/config.yml and
# .promu.yml should also be updated.
version: 1.19
version: 1.22
cgo: true
repository:
path: github.com/prometheus/node_exporter
build:
binaries:
- name: node_exporter
flags: -a -tags 'netgo osusergo static_build'
ldflags: |
-X github.com/prometheus/common/version.Version={{.Version}}
-X github.com/prometheus/common/version.Revision={{.Revision}}
Expand Down
3 changes: 1 addition & 2 deletions .promu.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
go:
# Whenever the Go version is updated here, .circle/config.yml and
# .promu-cgo.yml should also be updated.
version: 1.19
version: 1.22
repository:
path: github.com/prometheus/node_exporter
build:
binaries:
- name: node_exporter
flags: -a -tags 'netgo osusergo static_build'
ldflags: |
-X github.com/prometheus/common/version.Version={{.Version}}
-X github.com/prometheus/common/version.Revision={{.Revision}}
Expand Down
9 changes: 3 additions & 6 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
extends: default
ignore: |
ui/react-app/node_modules

rules:
braces:
Expand All @@ -20,9 +22,4 @@ rules:
config/testdata/section_key_dup.bad.yml
line-length: disable
truthy:
ignore: |
.github/workflows/codeql-analysis.yml
.github/workflows/funcbench.yml
.github/workflows/fuzzing.yml
.github/workflows/prombench.yml
.github/workflows/golangci-lint.yml
check-keys: false
Loading
Loading