Comments (9)
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.
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.
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.
@ahmedaall any update on this?
from aci-exporter.
I copy paste your configuration but still the same issue. I’ll continue to debug. I’ll keep you inform
from aci-exporter.
@ahmedaall do you still have this problem or can I close the issue?
from aci-exporter.
@thenodon I implemented an internal workaround. So I have don't have this issue anymore
from aci-exporter.
@ahmedaall great to hear that you solved it. Do you like to share what workaround you did?
from aci-exporter.
@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)
- Scrape timestamp metrics as value HOT 7
- ACI 5.2: Update login/logout API endpoints HOT 2
- Regex in value_transform HOT 10
- The prefix is not reflected in the # HELP and # TYPE lines HOT 2
- A way to convert the systemUpTime to seconds HOT 13
- Add a aci_up metric HOT 1
- It is possible to generate a metric file with empty # HELP and / or # TYPE lines HOT 2
- Labels should alway be lowercase HOT 5
- value transformation do not work HOT 3
- static_binding_info: value_regex_transformation not working HOT 3
- label regex not executed on child class HOT 4
- Add static label in metrics HOT 6
- Implement Pagination Support HOT 32
- auth fails for some passwords containing special characters HOT 3
- reduce scrapping time HOT 8
- Reuse client login cookie data between api calls
- Support configuration directory
- Exclude/include queries by fabric configuration
- Issue with query including an array of children HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aci-exporter.