Skip to content

Add support for armv7l#404

Open
lgmu wants to merge 2 commits into
ConSol-Monitoring:mainfrom
lgmu:main
Open

Add support for armv7l#404
lgmu wants to merge 2 commits into
ConSol-Monitoring:mainfrom
lgmu:main

Conversation

@lgmu

@lgmu lgmu commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Tested the binary itself + installing the .deb package (node_exporter works aswell)

Architecture:              armv7l
Byte Order:                Little Endian
Vendor ID:                 ARM
Model name:                Cortex-A53

PRETTY_NAME="Raspbian GNU/Linux 12 (bookworm)"
NAME="Raspbian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=raspbian
ID_LIKE=debian
$ curl http://127.77.1.1:5758/metrics
# HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 0
go_gc_duration_seconds{quantile="0.25"} 0
...

Comment thread Makefile
ifeq ($(GOARCH),aarch64)
export GOARCH := arm64
endif
ifeq ($(GOARCH),armv7l)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

first you set GOARCH to arm and because of that, you need to set it back later by NODE_EXPORTER_ARCH. This doesn't make sense to me. Why not keep GOARCH as it is.
The only variable different from GOARCH is DEB_ARCH.

Comment thread Makefile
ifeq ($(DEB_ARCH),386)
DEB_ARCH := i386
endif
ifeq ($(DEB_ARCH),arm)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simply check for armv7l here, then you don't have to copy multiple variables back and forth.

Comment thread Makefile

NODE_EXPORTER_VERSION=1.11.1
NODE_EXPORTER_FILE=node_exporter-$(NODE_EXPORTER_VERSION).$(GOOS)-$(GOARCH).tar.gz
NODE_EXPORTER_FILE=node_exporter-$(NODE_EXPORTER_VERSION).$(GOOS)-$(NODE_EXPORTER_ARCH).tar.gz

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all this changes are not required.

Comment thread packaging/sha256sums.txt
4df4ec0dca5bc061c59181cfedcd8887cb5df9c710db3c4038bc51923414bc5d node_exporter-1.11.1.linux-386.tar.gz
9f5ea48e5bc7b656f8a91a32e7d7deb89f70f73dabd0d974418aca15f37d6810 node_exporter-1.11.1.linux-amd64.tar.gz
ba1886efbd76cb96b0087c695ea8d1b9cb6e8aa946c996d744e9ee16c8e3591a node_exporter-1.11.1.linux-arm64.tar.gz
661c662e566d5c68950d63f7dfd1ec46ba28858f91aeba220c32baa1d3ad7b33 node_exporter-1.11.1.linux-armv7.tar.gz

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have you changed this file manually? Because it is auto-generated by make updatenodeexportersums
This make target should be adjusted as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants