-
Notifications
You must be signed in to change notification settings - Fork 17
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
label regex not executed on child class #34
Comments
Hi @camrossi. I have some problem running the query, only have the cisco sandbox and it does not return any data on this query, but I would say that is the expected. The metrics you ask for |
Hi @thenodon, I see what you mean. Let me explain what is the goal here and how I make it work for now At times understanding what EPG/VLAN is deployed on which leaf and port is not super easy and also tracking the deployment over time might be a challenge.
So from the above I know that is on So my idea is to build a table to summarise this information and I thought a smart metric to use for this would have been the pcTAG that identify the EPG within a VRF/Scope as the Metric. But clearly this seems not to be working.
And it works pretty well:
Hope this make sense, do you think the way I run the query now is correct then ? |
Hi @camrossi and thanks for your detailed answer. Learned a lot more about epg's and vlans. And yes I think you now have the right query as long as it give you the response you expect :). When using the array notation the value_name should be in the child data, but labels can come from the parent, exactly as you have done it. I'm happy that you with your deep knowledge of ACI is exploring the capability of aci-exporter. It would be cool to try to start collect different queries or query groups related to use cases and ACI areas. May be we should add some more configuration options so not all queries has to be in one big configuration file, but enable some include option of directories and/or files. |
I will try to add some guidelines to the README related to queries, value_name and labels when using children. |
I am trying to extract the EPG to Port mapping with this code
But it seems the
vlanCktEp.children.[l2RsPathDomAtt].attributes.tDn
label is not processed.I found a way to make it work by passing the child in the metric.
For example if I use this in the metrics value_name
vlanCktEp.children.[l2RsPathDomAtt].attributes.parentSKey
then thevlanCktEp.children.[l2RsPathDomAtt].attributes.tDn
label is added as well asvlanCktEp.attributes.epgDn
Is this expected?
The text was updated successfully, but these errors were encountered: