Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Jun 2023 00:57:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 271833] snmp_exporter generator is broken with provided generator.yml
Message-ID:  <bug-271833-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271833

            Bug ID: 271833
           Summary: snmp_exporter generator is broken with provided
                    generator.yml
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: shatilov18@gmail.com

https://cgit.freebsd.org/ports/commit/sysutils/snmp_exporter

Provided generator.yml generator.yml.sample have old syntax and don't compi=
le
into snmp.yml when running

 `snmp_exporter_generator generate -o "/usr/local/etc/snmp_exporter/snmp.ym=
l"`


I was able to resolve it locally by changing fields.=20

old_index must become `source_indexes: [...]`.=20
new_index must be changed to `lookup:`.

However it's probably best just to copy example generator.yml from upstream
git:
https://github.com/prometheus/snmp_exporter/blob/v0.20.0/generator/generato=
r.yml

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271833-7788>