Giter VIP home page Giter VIP logo

Comments (5)

brian-brazil avatar brian-brazil commented on May 22, 2024

Multiple labels is known to work, see bsnAPIfDBNoisePower in the example config file for example.

What exactly are you trying to do?

from snmp_exporter.

axinojolais avatar axinojolais commented on May 22, 2024

Yeah I just noticed that the tests now fail, so I have no idea what I'm doing. I'm trying to add an "ifAlias" label. I'm trying to do it this way which is probably wrong :

   - name: ifMtu
      oid: 1.3.6.1.2.1.2.2.1.4
      indexes:
        - labelname: ifAlias
          type: Integer32
        - labelname: ifDescr
          type: Integer32
      lookups:
        - labels: [ifAlias]
          labelname: ifAlias
          oid: 1.3.6.1.2.1.31.1.1.1.18
        - labels: [ifDescr]
          labelname: ifDescr
          oid: 1.3.6.1.2.1.2.2.1.2

Thanks for your help

from snmp_exporter.

brian-brazil avatar brian-brazil commented on May 22, 2024

The ifTable only has one index, so you want one entry in indexes and two in lookups referring to it.

from snmp_exporter.

axinojolais avatar axinojolais commented on May 22, 2024

Heh. For future travelers, that works :

    - name: ifMtu
      oid: 1.3.6.1.2.1.2.2.1.4
      indexes:
        - labelname: ifDescr
          type: Integer32
      lookups:
        - labels: [ifDescr]
          labelname: ifAlias
          oid: 1.3.6.1.2.1.31.1.1.1.18
        - labels: [ifDescr]
          labelname: ifDescr
          oid: 1.3.6.1.2.1.2.2.1.2

Thanks for your help Brian !

from snmp_exporter.

topjor avatar topjor commented on May 22, 2024

I was looking for this but had to search issues to find this, maby a little bit of documentation would be nice for a little more advanced setups

from snmp_exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.