-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Ethtool collector: panic: "node_ethtool_Queue[0] AllocFails" is not a valid metric name #2083
Comments
Suspicion confirmed: I tried on another system with a single-queue NIC and there it works. |
@ventifus wanna look into fixing this? |
Yes I'll take care of this. Please give me a few days I'm on vacation. Thanks! |
@ventifus Thanks! Enjoy your vacation! |
We ran into the same issue for different values:
port.VF_admin_queue_requests:
|
I ran into the same issue for different values: level=debug ts=2021-08-11T07:06:40.325Z caller=node_exporter.go:76 msg="collect query:" filters="unsupported value type" |
OpenMetrics and the Prometheus exposition format require the metric name to consist only of alphanumericals and "_", ":" and they must not start with digits. The metric names from the ethtool stats might contain spaces, brackets, and dots. Converting them directly to metric names will produce invalid metric names. Therefore sanitize the metric names and convert them to lower case. Fixes: prometheus#2083 Signed-off-by: Benjamin Drung <benjamin.drung@ionos.com>
OpenMetrics and the Prometheus exposition format require the metric name to consist only of alphanumericals and "_", ":" and they must not start with digits. The metric names from the ethtool stats might contain spaces, brackets, and dots. Converting them directly to metric names will produce invalid metric names. Therefore sanitize the metric names and convert them to lower case. Fixes: #2083 Signed-off-by: Benjamin Drung <benjamin.drung@ionos.com>
OpenMetrics and the Prometheus exposition format require the metric name to consist only of alphanumericals and "_", ":" and they must not start with digits. The metric names from the ethtool stats might contain spaces, brackets, and dots. Converting them directly to metric names will produce invalid metric names. Therefore sanitize the metric names and convert them to lower case. Fixes: prometheus#2083 Signed-off-by: Benjamin Drung <benjamin.drung@ionos.com>
OpenMetrics and the Prometheus exposition format require the metric name to consist only of alphanumericals and "_", ":" and they must not start with digits. The metric names from the ethtool stats might contain spaces, brackets, and dots. Converting them directly to metric names will produce invalid metric names. Therefore sanitize the metric names and convert them to lower case. Fixes: prometheus#2083 Signed-off-by: Benjamin Drung <benjamin.drung@ionos.com>
Host operating system: output of
uname -a
Linux tux 5.10.51 #1 SMP Thu Jul 15 22:19:10 CEST 2021 x86_64 Intel(R) Core(TM) i5-2400S CPU @ 2.50GHz GenuineIntel GNU/Linux
node_exporter version: output of
node_exporter --version
node_exporter, version 1.2.0 (branch: non-git, revision: b597c12)
build user: portage@localhost
build date: 20210716-16:36:09
go version: go1.16.6
platform: linux/amd64
node_exporter command line flags
--collector.ethtool
Are you running node_exporter in Docker?
No
What did you do that produced an error?
I was excited to try the new ethtool collector in 1.2 and enabled it.
What did you expect to see?
ethtool metrics
What did you see instead?
ethtool -S eth0
says:I suspect this collector was not tested with a Multi-Queue NIC.
The text was updated successfully, but these errors were encountered: