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

field scale not found in type config.Metric #1062

Closed
arcanatigris opened this issue Dec 6, 2023 · 4 comments
Closed

field scale not found in type config.Metric #1062

arcanatigris opened this issue Dec 6, 2023 · 4 comments

Comments

@arcanatigris
Copy link

Host operating system: output of uname -a

Debian GNU/Linux 12 (bookworm)
Linux monitor2 6.1.0-13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1 (2023-09-29) x86_64 GNU/Linux

snmp_exporter version: output of snmp_exporter -version

docker: prom/snmp-exporter 0.24.1

What device/snmpwalk OID are you using?

If this is a new device, please link to the MIB(s).

What did you do that produced an error?

What did you expect to see?

snmp_exporter running with default config
https://raw.githubusercontent.com/prometheus/snmp_exporter/main/snmp.yml

What did you see instead?

ts=2023-12-06T12:54:21.682Z caller=main.go:195 level=info build_context="(go=go1.21.0, platform=linux/amd64, user=root@6206907e6947, date=20230901-07:37:50, tags=netgo)"
ts=2023-12-06T12:54:21.775Z caller=main.go:202 level=error msg="Error parsing config file" err="yaml: unmarshal errors:\n  line 23324: field scale not found in type config.Metric"
ts=2023-12-06T12:54:21.775Z caller=main.go:203 level=error msg="Possible old config file, see https://github.com/prometheus/snmp_exporter/blob/main/auth-split-migration.md"

It seems to choke on the scale setting on line 23224 of the default config, which is the only place scale is used.

@SuperQ
Copy link
Member

SuperQ commented Dec 6, 2023

This is not released yet. Will be available in v0.25.0.

@dg1sek
Copy link

dg1sek commented Dec 7, 2023

I have the exact same issue on standard Ubuntu running in Virtualbox. Make like above fails and so does a docker build...

### dg1sek@dg1sek-vb:~/snmp_exporter/snmp_exporter$ docker build -t snmp-generator .
[+] Building 0.6s (6/7)                                          docker:default
 => [internal] load build definition from Dockerfile                       0.0s
 => => transferring dockerfile: 463B                                       0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 143B                                          0.0s
 => [internal] load metadata for quay.io/prometheus/busybox-linux-amd64:l  0.4s
 => CANCELED [1/3] FROM quay.io/prometheus/busybox-linux-amd64:latest@sha  0.1s
 => => resolve quay.io/prometheus/busybox-linux-amd64:latest@sha256:393d1  0.0s
 => => sha256:393d14abb68b8b2d88304c72ac25b5ce130aa3a1d57ba73 737B / 737B  0.0s
 => [internal] load build context                                          0.0s
 => => transferring context: 31B                                           0.0s
 => ERROR [2/3] COPY .build/linux-amd64/snmp_exporter  /bin/snmp_exporter  0.0s
------
 > [2/3] COPY .build/linux-amd64/snmp_exporter  /bin/snmp_exporter:
------
Dockerfile:8
--------------------
   6 |     ARG ARCH="amd64"
   7 |     ARG OS="linux"
   8 | >>> COPY .build/${OS}-${ARCH}/snmp_exporter  /bin/snmp_exporter
   9 |     COPY snmp.yml       /etc/snmp_exporter/snmp.yml
  10 |     
--------------------
**ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref a5710d0c-9269-4062-b3f6-526a33faa9ab::x8f4z8dg378fyix7erujglyb9: "/.build/linux-amd64/snmp_exporter": not found**

dg1sek@dg1sek-vb:~/snmp_exporter/snmp_exporter$ 

@SuperQ
Copy link
Member

SuperQ commented Dec 7, 2023

That is a different issue.

@SuperQ
Copy link
Member

SuperQ commented Dec 7, 2023

For questions/help/support please use our community channels. There are more people available to potentially respond to your request and the whole community can benefit from the answers provided.

@SuperQ SuperQ closed this as completed Dec 7, 2023
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

No branches or pull requests

3 participants