Git Product home page Git Product logo

Comments (9)

thenodon avatar thenodon commented on September 23, 2024

Hi @ahmedaall. I can not recreate the problem you have. I think you have some issue with the yaml so the value_transform is not executed. Here is my configuration, with additional label section so the result is not just "one" metric.

class_queries:
  interface_info:
    class_name: l1PhysIf
    query_parameter: "?rsp-subtree=children&rsp-subtree-include=stats&rsp-subtree-class=ethpmPhysIf,eqptIngrBytes5min,eqptEgrBytes5min,eqptIngrDropPkts5min,eqptEgrDropPkts5min&query-target-filter=and(ne( l1PhysIf.adminSt, \"down\"))"
    metrics:
      - name: interface_oper_speed
        value_name: l1PhysIf.children.[ethpmPhysIf].attributes.operSpeed
        type: gauge
        help: The current operational speed of the interface, in bits per second.
        value_transform:
          'unknown': 0
          '100M': 100000000
          '1G': 1000000000
          '10G': 10000000000
          '25G': 25000000000
          '40G': 40000000000
          '100G': 100000000000
          '400G': 400000000000
    labels:
      - property_name: l1PhysIf.attributes.dn
        regex: "^topology/pod-(?P<podid>[1-9][0-9]*)/node-(?P<nodeid>[1-9][0-9].*)/sys/phys-\\[(?P<port>.+)\\]"

The above give the following output:

# HELP aci_interface_oper_speed The current operational speed of the interface, in bits per second.
# TYPE aci_interface_oper_speed gauge
aci_interface_oper_speed{aci="dc-fab",fabric="aci_1",nodeid="201",podid="1",port="eth1/35"} 1e+11
aci_interface_oper_speed{aci="dc-fab",fabric="aci_1",nodeid="201",podid="1",port="eth1/36"} 1e+11
aci_interface_oper_speed{aci="dc-fab",fabric="aci_1",nodeid="201",podid="1",port="eth1/1"} 4e+10
aci_interface_oper_speed{aci="dc-fab",fabric="aci_1",nodeid="201",podid="1",port="eth1/2"} 4e+10
aci_interface_oper_speed{aci="dc-fab",fabric="aci_1",nodeid="201",podid="1",port="eth1/3"} 1e+11
aci_interface_oper_speed{aci="dc-fab",fabric="aci_1",nodeid="201",podid="1",port="eth1/4"} 1e+11
.....

from aci-exporter.

ahmedaall avatar ahmedaall commented on September 23, 2024

Hi @thenodon. After looking carefully I don't see any yaml issue. I'll continue to check why the value transform is not executed only on this metric.

from aci-exporter.

thenodon avatar thenodon commented on September 23, 2024

Hi @ahmedaall - can you use my configuration above to verify that on your system you still have an issue. Are you running the latest version of aci-exporter? If you still have the issue please take out the full query result using aci-exporter cli option or using your favorite "curl" command

from aci-exporter.

thenodon avatar thenodon commented on September 23, 2024

@ahmedaall any update on this?

from aci-exporter.

ahmedaall avatar ahmedaall commented on September 23, 2024

I copy paste your configuration but still the same issue. I’ll continue to debug. I’ll keep you inform

from aci-exporter.

thenodon avatar thenodon commented on September 23, 2024

@ahmedaall do you still have this problem or can I close the issue?

from aci-exporter.

ahmedaall avatar ahmedaall commented on September 23, 2024

@thenodon I implemented an internal workaround. So I have don't have this issue anymore

from aci-exporter.

thenodon avatar thenodon commented on September 23, 2024

@ahmedaall great to hear that you solved it. Do you like to share what workaround you did?

from aci-exporter.

thenodon avatar thenodon commented on September 23, 2024

@ahmedaall will close this issue. I used your configuration from https://github.com/opsdis/aci-exporter/issues/41and enabled the value_transform on interface_info it worked on the ACI I tested against.

from aci-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.