Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
870 commits
Select commit Hold shift + click to select a range
d8a1585
Merge pull request #1834 from prometheus/fix-cpu-spelling
SuperQ Sep 4, 2020
ff2ff34
Configure 2 thresholds for NodeFilesystemAlmostOutOfSpace alert (#1835)
nlamirault Sep 18, 2020
6585e43
Fix memory gauge in mixin with multiple pods
MrFreezeex Sep 10, 2020
3b73912
Update build (#1852)
SuperQ Sep 23, 2020
a3aaf63
Add check state for mdadm arrays via node_md_state metric (#1810)
frittentheke Sep 27, 2020
306a365
Downgrade CPU counter warnings
SuperQ Sep 25, 2020
d7cbe85
docs/node-mixin/alerts: use a rate for network alerts
paulfantom Oct 7, 2020
effa4da
fix: node_md_disks state label as failed
fsschmitt Oct 7, 2020
f81747e
docs/node-mixin/alerts: add max error condition to alert about desync…
paulfantom Sep 23, 2020
9c9c636
Merge pull request #1861 from paulfantom/network-alerts
beorn7 Oct 19, 2020
77e7648
Use absolute jsonnet import paths
metalmatze Oct 20, 2020
dbf8c70
Merge pull request #1872 from metalmatze/mixin-jsonnet-absolute-impor…
brancz Oct 21, 2020
ed10485
Expose XFS inode statistics (#1869) (#1870)
obaudys Oct 22, 2020
f645d49
Mixin: Bump jsonnet requirement to 0.16 to use go-jsonnetcmd
Oct 13, 2020
519203e
Expose zfs zpool state
Oct 26, 2020
daa7303
collector/filesystem: fixing logging message
xinau Nov 12, 2020
0692791
Add more IB counters
treydock Apr 30, 2020
f8609ae
remove openbsd amd64 cgo dependecies
ston1th Jul 2, 2020
386992e
fixed build
ston1th Aug 11, 2020
26bd6bf
more build fixes
ston1th Aug 11, 2020
bdba65d
skip null bytes at the end of strings
ston1th Sep 1, 2020
1450a92
move const values to iota plus code cleanup
ston1th Sep 2, 2020
91bec7c
fixed build
ston1th Nov 12, 2020
3649251
add btrfs and powersupplyclass to list of exporters enabled by default
Nov 23, 2020
5c07b7c
add backticks to file path of powersupplyclass
Nov 23, 2020
c8d5159
readme: fix link to PSI documentation (#1864)
kragniz Nov 24, 2020
c007f01
Merge branch 'master' of https://github.com/prometheus/node_exporter
Nov 24, 2020
8b46636
Modest doc improvements (#1876)
anthonyeleven Nov 25, 2020
35f2e3d
Update install instructions in README
SuperQ Nov 25, 2020
1f58989
add network_route collector
kamijin-fanta Aug 13, 2020
67480c5
repalce to jsimonetti/rtnetlink
kamijin-fanta Dec 4, 2020
e422cda
Merge pull request #1899 from prometheus/superq/install_doc
SuperQ Dec 13, 2020
82e8db0
Merge pull request #1878 from Hexta/zfs_zpool_state
SuperQ Dec 13, 2020
1889202
Merge pull request #1897 from mrpaulmanley/master
SuperQ Dec 14, 2020
3b8a7f6
Merge pull request #1774 from ston1th/openbsd_amd64
SuperQ Dec 14, 2020
8a3cc9d
Merge pull request #1694 from treydock/ib-counters
SuperQ Dec 14, 2020
f0dea09
Convert to exporter-toolkit/https
SuperQ Dec 10, 2020
0ce1f39
Merge pull request #1907 from prometheus/superq/exporter-kit-https
SuperQ Dec 29, 2020
cfdd9dd
Change exporter-toolkit module name(https -> web) (#1931)
changmink Jan 18, 2021
809eed4
Add a warning when node exporter runs as root
Jan 22, 2021
1d03daf
Handle EPERM for syscall in timex collector
SuperQ Jan 22, 2021
dddae68
Add osusergo flag in promu-cgo
Jan 23, 2021
87993cd
Merge pull request #1938 from prometheus/superq/timex_error
SuperQ Jan 23, 2021
bf4f48a
Merge pull request #1939 from prometheus/rootmsg
SuperQ Jan 23, 2021
e785e06
Merge pull request #1884 from xinau/patch-1
SuperQ Jan 24, 2021
8536df5
Merge branch 'master' into network_route
SuperQ Jan 24, 2021
0910f1b
Merge pull request #1811 from kamijin-fanta/network_route
SuperQ Jan 24, 2021
be036cf
Fix up go.sum.
SuperQ Jan 24, 2021
4b68aeb
Merge pull request #1862 from fsschmitt/fix/alerts-label-naming
SuperQ Jan 24, 2021
825ec8c
Merge pull request #1833 from prometheus/repo_sync
SuperQ Jan 24, 2021
cb6509f
Merge pull request #1826 from digineo/device-filter
SuperQ Jan 24, 2021
eefb18d
Merge pull request #1764 from dhoppe/patch-1
SuperQ Jan 24, 2021
9fab638
Merge pull request #1753 from binjip978/entropy
SuperQ Jan 24, 2021
40ce993
Merge pull request #1816 from liiling/master
SuperQ Jan 24, 2021
7904ea4
Update netdev OpenBSD amd64 filter
SuperQ Jan 24, 2021
39f50e6
Merge pull request #1940 from prometheus/superq/fix_netdev
SuperQ Jan 24, 2021
b465bf4
Update common Prometheus files
prombot Jan 25, 2021
0900cb5
bcache: fix typo
hs0210 Jan 25, 2021
88ee427
Merge pull request #1941 from prometheus/repo_sync
SuperQ Jan 25, 2021
997a8fb
Add zoneinfo collector
kwisniewski98 Dec 23, 2020
8d14732
feat: Added an ability to pass collector.supervisord.url via SUPERVIS…
Oloremo Jan 27, 2021
b7626ec
ProcessStatCollector: continue if PID disappears between opening and …
hooten Jan 25, 2021
eecfbcd
PR feedback
hooten Jan 25, 2021
6e02d5b
invalid_tx_word_total -> invalid_tx_words_total
sparques Jan 29, 2021
1979092
update fibrechannel fixture
sparques Jan 29, 2021
0cc04d6
Mention the default listening port in the README.
SuperQ Jan 31, 2021
182d379
Merge pull request #1950 from prometheus/superq/default_port
SuperQ Feb 2, 2021
3fcccd5
Update collector/fibrechannel_linux.go
sparques Feb 2, 2021
56eba80
add fibrechannel to default list in read me; host -> fc_host to avoid…
sparques Feb 2, 2021
477a192
Merge pull request #1947 from Oloremo/supervisord_env_vars
SuperQ Feb 3, 2021
22c5aeb
Merge pull request #1943 from hs0210/work
SuperQ Feb 3, 2021
5a28930
change fc_host everywhere, update fixtures
sparques Feb 3, 2021
78682c8
Merge pull request #1786 from deusnefum/master
SuperQ Feb 3, 2021
1729558
Merge pull request #1922 from kwisniewski98/zone
SuperQ Feb 5, 2021
0b0c562
Fix network_route collector naming
SuperQ Feb 5, 2021
dc5a94c
Fix rapl collector log noise
SuperQ Feb 5, 2021
a2b556a
Merge pull request #1953 from prometheus/superq/fix_network_route
SuperQ Feb 5, 2021
43b91ac
Merge pull request #1954 from prometheus/superq/noisy_rapl
SuperQ Feb 5, 2021
a37d3f6
Release 1.1.0
SuperQ Feb 5, 2021
0e74fbc
Merge pull request #1952 from prometheus/bjk/update_build_1.1.0
SuperQ Feb 5, 2021
4109a50
Fix ineffassign issue
hs0210 Feb 8, 2021
a4dfffb
Merge pull request #1957 from hs0210/work
SuperQ Feb 8, 2021
5a6551e
Fix some noisy log lines
SuperQ Feb 9, 2021
8c40ba6
Mention `--collector.disable-defaults` in the README
nickatsegment Feb 11, 2021
9cf6a8e
Merge pull request #1966 from nickatsegment/patch-1
SuperQ Feb 12, 2021
acccda9
Merge pull request #1962 from prometheus/superq/more_quiet_logs
SuperQ Feb 12, 2021
d1a791b
Release 1.1.1
SuperQ Feb 12, 2021
41c003d
Merge pull request #1968 from prometheus/superq/1.1.1
SuperQ Feb 13, 2021
e80863f
fix formatting
frostmar Feb 24, 2021
46d0a08
Handle errors from disabled PSI subsystem
SuperQ Mar 1, 2021
dd99513
Merge pull request #1983 from prometheus/superq/ENOTSUP
SuperQ Mar 3, 2021
23e5b24
Sanitize strings from /sys/class/power_supply
SuperQ Mar 2, 2021
40e9d29
Merge pull request #1984 from prometheus/superq/power_supply_panic
SuperQ Mar 3, 2021
3b3ef73
Silence missing netclass errors
SuperQ Mar 3, 2021
d462d5c
Merge pull request #1986 from prometheus/superq/fix_netclass_error
SuperQ Mar 4, 2021
378d7b4
Release version 1.1.2
SuperQ Mar 5, 2021
e57f307
Merge pull request #1990 from prometheus/superq/1.1.2
SuperQ Mar 5, 2021
e7649ba
Fix panix when using backwards compatible flags
Mar 15, 2021
502197d
Update common Prometheus files
prombot Mar 17, 2021
a6bd720
Merge pull request #2001 from prometheus/repo_sync
SuperQ Mar 17, 2021
abc6cb2
Update common Prometheus files
prombot Mar 18, 2021
f32216f
Merge pull request #2003 from prometheus/repo_sync
SuperQ Mar 18, 2021
9893fca
Add flag to ignore network speed if it is unknown
SuperQ Mar 4, 2021
857a91c
Merge pull request #1989 from prometheus/superq/net_speed
SuperQ Mar 18, 2021
81caeb6
Merge pull request #2000 from prometheus/fixpanic-systemd-backwards-c…
SuperQ Mar 19, 2021
677406b
Update common Prometheus files
prombot Mar 22, 2021
1dfd858
Merge pull request #2010 from prometheus/repo_sync
SuperQ Mar 22, 2021
7b895d8
Update build
SuperQ Mar 18, 2021
3912462
Rename `collector.filesystem` flags to match other collectors
fhemberger Mar 23, 2021
e972957
Merge pull request #2006 from prometheus/superq/promu_filter
SuperQ Mar 26, 2021
7717702
Merge pull request #2012 from fhemberger/filesystem-flag
Mar 26, 2021
2b7aa4c
Fix wrong value for OpenBSD memory buffer cache
ston1th Apr 3, 2021
772335c
Use 5m rate in mixins
discordianfish Mar 8, 2021
a5908bf
Make interval configurable
discordianfish Apr 3, 2021
7b5cc3e
Add Darwin arm64 build
SuperQ Apr 12, 2021
46cdf61
Merge pull request #2020 from prometheus/superq/darwin-arm64
SuperQ Apr 14, 2021
504f9b7
fix interval in graphs panels of node dashboard
ravilr Apr 24, 2021
596ff45
ethtool: Add a new ethtool stats collector (metrics equivalent to "et…
Apr 29, 2021
55ffe57
feat(rules): add NodeFileDescriptorLimit kernel exhaustion alert
nerzhul Apr 30, 2021
807f3c3
ethtool: Remove end-to-end testing.
May 3, 2021
5ee2004
Fix golint issue caused by typo
hs0210 May 11, 2021
c3d8fc6
Merge pull request #2038 from hs0210/work
SuperQ May 11, 2021
0387f55
Make node_exporter print usage to STDOUT
dgl May 11, 2021
f29590e
Merge pull request #2039 from dgl/usage-stdout
dgl May 12, 2021
892893f
ethtool: Log stats collection errors.
May 14, 2021
5cf7968
ethtool: Add documentation to README.md
May 18, 2021
f91a1cc
Use rm -rf to remove fixtures
luizluca May 20, 2021
220aa5b
Merge pull request #2043 from luizluca/fixtures_readonly_files
SuperQ May 20, 2021
9eff676
fix the uncorrect word
kcx2366425574 May 26, 2021
f04d556
Merge pull request #2045 from kcx2366425574/master
SuperQ May 26, 2021
3bc9a93
Add ErrorLog plumbing to promhttp
SuperQ Nov 14, 2020
e1db354
Merge pull request #1887 from prometheus/superq/promhttp_errorlog
SuperQ Jun 3, 2021
2e20d66
Only iniate collectors once
Jun 4, 2021
99af1db
Update logic
Jun 4, 2021
5b13775
Merge pull request #2048 from prometheus/init-collectors
Jun 4, 2021
76c0e1e
Update collector/ethtool_linux.go
ventifus Jun 11, 2021
27dc754
Merge pull request #1832 from ventifus/master
SuperQ Jun 16, 2021
cc4f13b
Fix build
Jun 17, 2021
8edd27b
Merge pull request #2058 from taktv6/master
SuperQ Jun 17, 2021
02ee897
Added conntrack statistics metrics (#1155)
kozl Jun 23, 2021
90d4698
Fix Eof newline in collector/conntrack_linux.go
SuperQ Jun 23, 2021
e656b79
netclass: retrieve interface names and filter before parsing
jan--f Apr 19, 2021
13be860
Add time zone offset metric
SuperQ Jun 20, 2021
9844c14
Update Go modules
SuperQ Jul 6, 2021
839c2d5
Update go-kstat location
SuperQ Jul 6, 2021
97583ff
Use new client_golang collectors package.
SuperQ Jul 6, 2021
b23146d
Add nvme collector
bdrung Jul 6, 2021
8d99079
mod: update procfs dependency to v0.7.0
jan--f Jun 28, 2021
35a2de2
Merge pull request #2071 from prometheus/superq/bump_procfs_0.7
SuperQ Jul 6, 2021
f0b2449
Add more IB counters
treydock Apr 5, 2021
73c9a10
Handle small backwards jumps in CPU idle
SuperQ Jul 4, 2021
2510378
Merge pull request #2067 from prometheus/superq/idle_jump
SuperQ Jul 7, 2021
b673f9c
Update common Prometheus files
prombot Jul 9, 2021
00aa2f3
Add tapestats to collect tape devices statistics
luizluca May 20, 2021
59a4f3b
Merge pull request #2044 from luizluca/tapestats_master
SuperQ Jul 12, 2021
84d46c0
Merge pull request #2076 from prometheus/repo_sync
SuperQ Jul 12, 2021
a6ebe10
Merge branch 'master' into nvme
SuperQ Jul 12, 2021
c88ff9d
Merge pull request #2062 from bdrung/nvme
SuperQ Jul 12, 2021
f17a85d
Merge branch 'master' into netclass-filter-before-parsing
SuperQ Jul 13, 2021
371c8e4
Merge pull request #2033 from jan--f/netclass-filter-before-parsing
SuperQ Jul 14, 2021
40766fd
Merge pull request #2015 from ston1th/openbsd_mem_cache_fix
SuperQ Jul 14, 2021
7029c71
Merge pull request #2030 from nerzhul/patch-1
SuperQ Jul 14, 2021
6793e0e
Merge pull request #2019 from treydock/ib-counters
SuperQ Jul 14, 2021
6ac7a53
Fix conntrack collector log noise
SuperQ Jul 15, 2021
9bd8265
Merge pull request #2079 from prometheus/superq/fix_conntrack_error
SuperQ Jul 15, 2021
138d4a2
Release 1.2.0
SuperQ Jul 12, 2021
1296894
Merge pull request #2078 from prometheus/superq/release_1.2
SuperQ Jul 15, 2021
5bee84f
docs: Replace `go get` with `go install` for command installation
fhemberger Jul 18, 2021
502f287
Fix rapl collector log noise
SuperQ Jul 21, 2021
97d4b01
Bump prometheus/procfs library
SuperQ Jul 21, 2021
3849221
Merge pull request #2091 from prometheus/superq/bump_procfs_0.7.1
SuperQ Jul 22, 2021
747012c
Merge pull request #2092 from prometheus/superq/fix_energy_uj
SuperQ Jul 22, 2021
1958a77
Release 1.2.1
SuperQ Jul 23, 2021
129b5f5
Merge pull request #2098 from prometheus/superq/release-1.2.1
SuperQ Jul 23, 2021
3731f93
Refactor USE method mixin dashboards with grafonnet-lib, add multi-cl…
ArthurSens Apr 2, 2021
7fc5c60
Read config from $
discordianfish Jul 20, 2021
5d2a4cf
Fix processes collector long int parsing
SuperQ Aug 5, 2021
584972d
Merge pull request #2112 from prometheus/superq/debug_processes_errors
SuperQ Aug 6, 2021
120b9b4
Release 1.2.2
SuperQ Aug 6, 2021
4d0c165
Merge pull request #2113 from prometheus/superq/release-1.2.2
SuperQ Aug 6, 2021
3afd382
Add --collector.ethtool.ignored-devices
bdrung Jul 19, 2021
4356c09
ethtool: Use prometheus.BuildFQName
bdrung Jul 22, 2021
e6b5aaa
Add collector.ethtool.metrics-include
discordianfish Aug 10, 2021
d83d9bd
Merge pull request #2117 from prometheus/ethtool-metrics-include-flag
SuperQ Aug 16, 2021
6ac6ea2
ethtool: Sanitize metric names
bdrung Jul 21, 2021
26ca609
ethtool: Expose node_ethtool_info metric
bdrung Aug 16, 2021
832909d
docs/node-mixin/alerts: make NodeFilesystemAlmostOutOfSpace fire earlier
paulfantom Jul 29, 2021
84b36c4
Add flag to disable guest CPU metrics
SuperQ Aug 17, 2021
9956773
Merge pull request #2123 from prometheus/superq/cpuGuest
SuperQ Aug 17, 2021
31caa37
mod: update safchain/ethtool dependency. Closes #2125
Aug 18, 2021
b1bb05c
mod: removed unused safchain/ethtool version
Aug 18, 2021
aea88e4
Merge pull request #2126 from ventifus/update-safchain-ethtool
SuperQ Aug 18, 2021
b6215e6
Add os release collector
bdrung Aug 19, 2021
647e846
Update github.com/lufia/iostat to v1.1.1
VladRassokhin Sep 2, 2021
4b9d7b6
Update CHANGELOG.md
VladRassokhin Sep 2, 2021
fa9926c
mixin: Cheaper calculation for instance:node_num_cpu:sum
discordianfish Sep 2, 2021
6f1286b
mixin: Drop mode label for num cpu metric
discordianfish Sep 3, 2021
a0c20d4
add node_network_address_info collector (#2105)
Sep 8, 2021
dc68e03
Update common Prometheus files (#2137)
prombot Sep 12, 2021
d6d4c6e
Makefile: Use only tar flags that work on bsd tar (#2128)
discordianfish Sep 14, 2021
c10aa42
Disable soon to deprecated linters (#2129)
discordianfish Sep 14, 2021
60e9670
Bump promtool version in Makefile (#2151)
SuperQ Sep 22, 2021
2b490d6
add path label to rapl collector (#2146)
Sep 27, 2021
5de46c6
collect flag_info and bug_info only for one core (#2156)
Sep 28, 2021
0aec407
Refactor diskstats (#2141)
ventifus Sep 28, 2021
aeef1ed
mixin: Add fallback for MemAvailable (#2130)
SuperQ Sep 28, 2021
0e6b23c
Lnstat: expose metrics from /proc/net/stat (#1771)
AlexZzz Sep 28, 2021
186e2e7
add yamllint config, fix yamllint errors (#2088)
mwasilew2 Sep 29, 2021
68f1e95
Update common Prometheus files (#2158)
prombot Sep 30, 2021
68a6c78
Update go to 1.17 (#2159)
Oct 3, 2021
f61be48
Use include/exclude flags for ethtool filtering (#2165)
SuperQ Oct 11, 2021
5f110df
Add initial support for monitoring GPUs on Linux (#1998)
siavashs Oct 11, 2021
f67faf9
Fixup drm_linux.go build tag.
SuperQ Oct 11, 2021
5a38949
Fix up mixin tests (#2167)
SuperQ Oct 14, 2021
1721de0
collector: Unwrap glob textfile directories (#1985)
vladimiroff Oct 18, 2021
11bb2f8
support thread state
wenlxie Oct 8, 2021
9bc184d
Datasource template variable should be labelled 'Data Source'
tomwilkie Oct 20, 2021
77a3c9b
Gather additional link info from ethtool.
Sep 24, 2021
0f6c842
ethtool: minor changes to resolve review nits.
Oct 18, 2021
56e6dcb
ethtool: add newline to settings fixture.
Oct 19, 2021
d514d67
ethtool: convert updateSpeeds to a loop.
Oct 20, 2021
a59b2d8
Merge pull request #2172 from prometheus/datasource-label
tomwilkie Oct 20, 2021
4bc1c02
fix bug in #2130 (#2170)
ngc104 Oct 21, 2021
8b198ce
collector: replace fmt.Sprintf with strconv.Itoa in perfCollector (#2…
mdlayher Oct 22, 2021
863e737
Update common Prometheus files (#2177)
prombot Oct 23, 2021
fbc2354
Fix timer GC delays in the Linux filesystem collector (#2169)
jordy1024 Oct 24, 2021
0497ba7
Update common Prometheus files (#2178)
prombot Oct 27, 2021
421fc42
Replace deprecated linter (#2176)
SuperQ Oct 27, 2021
094ee24
Ignore mountpoints under /run (#2157)
ml- Oct 27, 2021
9def2f9
Add DMI collector (#2131)
bdrung Oct 27, 2021
df7ea98
feat: new collector about thermal conditions on macos (#2032)
STRRL Oct 27, 2021
ee17ba0
Fix imports when building on macos (#2180)
nolith Oct 27, 2021
6523fdf
darwin powersupply collector (#1777)
nolith Oct 28, 2021
43a46f3
Update github.com/safchain/ethtool
bdrung Oct 27, 2021
0dc82ea
Correctly disable ZFS for test cases (#2182)
bdrung Oct 28, 2021
2a28266
ethtool: Add test case with leading spaces (#2186)
bdrung Oct 29, 2021
3e6f4ce
mixin: exclude iowait and steal from CPU Utilisation (#2194)
julianwiedmann Nov 4, 2021
fda358a
Workaround LLVM/Clang 11.0 for Darwin builds (#2200)
SuperQ Nov 9, 2021
85e2023
Add clocksource metrics to time collector (#2197)
discordianfish Nov 12, 2021
58ab014
Use SysctlTimeval for boottime collector on BSD
tklauser Nov 13, 2021
d85cbaa
ethtool: Prevent duplicate metric names (#2187)
bdrung Nov 15, 2021
c861ba9
Remove redundant nil check (#2206)
computerphilosopher Nov 15, 2021
55c8623
Upgrade ethtool library to v0.1.0 (#2210)
bdrung Nov 15, 2021
1f37b35
Update README dcgm-exporter repository (#2212)
hedrox Nov 15, 2021
f5ae31a
Disable lnstat collector by default (#2188)
bdrung Nov 18, 2021
4065902
Add TCPTimeouts to netstat default filter (#2189)
martinkennelly Nov 18, 2021
c65f870
Release 1.3.0 (#2168)
SuperQ Nov 18, 2021
c4dc334
DEVOPS-7488: add Jenkinsfile
kirandark Jan 6, 2022
434da38
DEVOPS-7488: add Dockerfile with old AF changes
kirandark Jan 6, 2022
78d7730
DEVOPS-7488: add support timestamps in textfile format
kirandark Jan 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
139 changes: 139 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
---
version: 2.1

orbs:
prometheus: prometheus/prometheus@0.11.0

executors:
# Whenever the Go version is updated here, .promu.yml and .promu-cgo.yml
# should also be updated.
golang:
docker:
- image: circleci/golang:1.17

jobs:
test:
executor: golang

steps:
- prometheus/setup_environment
- run: go mod download
- run: make
- prometheus/store_artifact:
file: node_exporter

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" -L uint,packages\',uptodate

test_mixins:
executor: golang
steps:
- checkout
- run: go install github.com/google/go-jsonnet/cmd/jsonnet@latest
- run: go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest
- run: go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@latest
- run: make promtool
- run: make -C docs/node-mixin clean
- run: make -C docs/node-mixin jb_install
- run: make -C docs/node-mixin
- run: git diff --exit-code

build:
machine:
image: ubuntu-2004:202101-01

parallelism: 3

steps:
- prometheus/setup_environment
- run: docker run --privileged linuxkit/binfmt:v0.8
- 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
- persist_to_workspace:
root: .
paths:
- .build
- store_artifacts:
path: .build
destination: /build

test_docker:
machine:
image: ubuntu-2004:202101-01

environment:
DOCKER_TEST_IMAGE_NAME: quay.io/prometheus/golang-builder:1.16-base
REPO_PATH: github.com/prometheus/node_exporter

steps:
- prometheus/setup_environment
- attach_workspace:
at: .
- run:
command: |
if [ -n "$CIRCLE_TAG" ]; then
make docker DOCKER_IMAGE_TAG=$CIRCLE_TAG
else
make docker
fi
- run: docker images
- run: docker run --rm -t -v "$(pwd):/app" "${DOCKER_TEST_IMAGE_NAME}" -i "${REPO_PATH}" -T
- run:
command: |
if [ -n "$CIRCLE_TAG" ]; then
make test-docker DOCKER_IMAGE_TAG=$CIRCLE_TAG
else
make test-docker
fi

workflows:
version: 2
node_exporter:
jobs:
- test:
filters:
tags:
only: /.*/
- build:
filters:
tags:
only: /.*/
- codespell:
filters:
tags:
only: /.*/
- test_docker:
requires:
- test
- build
filters:
tags:
only: /.*/
- test_mixins:
filters:
tags:
only: /.*/
- prometheus/publish_master:
context: org-context
requires:
- test
- build
filters:
branches:
only: master
- prometheus/publish_release:
context: org-context
requires:
- test
- build
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
.tarballs/

!.build/linux-amd64
!.build/linux-armv7
!.build/linux-arm64
!.build/linux-ppc64le
!.build/linux-s390x
31 changes: 31 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: golangci-lint
on:
push:
paths:
- "go.sum"
- "go.mod"
- "**.go"
- "scripts/errcheck_excludes.txt"
- ".github/workflows/golangci-lint.yml"
- ".golangci.yml"
pull_request:
paths:
- "go.sum"
- "go.mod"
- "**.go"
- "scripts/errcheck_excludes.txt"
- ".github/workflows/golangci-lint.yml"
- ".golangci.yml"

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.42.0
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ dependencies-stamp

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

/vendor
22 changes: 22 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
linters:
enable:
- revive
disable:
# Disable soon to deprecated[1] linters that lead to false
# positives when build tags disable certain files[2]
# 1: https://github.com/golangci/golangci-lint/issues/1841
# 2: https://github.com/prometheus/node_exporter/issues/1545
- deadcode
- unused
- structcheck
- varcheck

issues:
exclude-rules:
- path: _test.go
linters:
- errcheck

linters-settings:
errcheck:
exclude: scripts/errcheck_excludes.txt
27 changes: 27 additions & 0 deletions .promu-cgo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
go:
# Whenever the Go version is updated here, .circle/config.yml and
# .promu.yml should also be updated.
version: 1.17
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}}
-X github.com/prometheus/common/version.Branch={{.Branch}}
-X github.com/prometheus/common/version.BuildUser={{user}}@{{host}}
-X github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
tarball:
files:
- LICENSE
- NOTICE
crossbuild:
platforms:
- darwin/amd64
- darwin/arm64
- netbsd/amd64
- netbsd/386
29 changes: 11 additions & 18 deletions .promu.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,24 @@
go:
cgo: true
# Whenever the Go version is updated here, .circle/config.yml and
# .promu-cgo.yml should also be updated.
version: 1.17
repository:
path: github.com/prometheus/node_exporter
build:
binaries:
- name: node_exporter
flags: -a -tags 'netgo static_build'
flags: -a -tags 'netgo osusergo static_build'
ldflags: |
-X {{repoPath}}/vendor/github.com/prometheus/common/version.Version={{.Version}}
-X {{repoPath}}/vendor/github.com/prometheus/common/version.Revision={{.Revision}}
-X {{repoPath}}/vendor/github.com/prometheus/common/version.Branch={{.Branch}}
-X {{repoPath}}/vendor/github.com/prometheus/common/version.BuildUser={{user}}@{{host}}
-X {{repoPath}}/vendor/github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
-X github.com/prometheus/common/version.Version={{.Version}}
-X github.com/prometheus/common/version.Revision={{.Revision}}
-X github.com/prometheus/common/version.Branch={{.Branch}}
-X github.com/prometheus/common/version.BuildUser={{user}}@{{host}}
-X github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
tarball:
files:
- LICENSE
- NOTICE
crossbuild:
platforms:
- linux/amd64
- linux/386
- darwin/amd64
- darwin/386
- netbsd/amd64
- netbsd/386
- linux/arm
- linux/arm64
# Temporarily deactivated as this does not currently build with promu.
#- linux/mips64
#- linux/mips64le
- linux
- openbsd/amd64
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
extends: default

rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
commas: disable
comments: disable
comments-indentation: disable
document-start: disable
indentation:
spaces: consistent
key-duplicates:
ignore: |
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
Loading