-
Notifications
You must be signed in to change notification settings - Fork 15
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
A way to convert the systemUpTime to seconds #22
Comments
Can you send me the complete configuration for the query including the config query type you are doing. The time format looks really strange |
Configuration look like this (ignore the wrong naming it was a dirty test):
uptime goes to a label because the value is incompatible with a value. You also have a description in the Nexus documentation: https://pubhub.devnetcloud.com/media/dme-docs-9-3-5/docs/System/top:System/
So the format is probably |
@JDA88 thanks for the feedback. That was a horrible time format, why not just use seconds. Maybe a feature request to Cisco. Do you know if this time format is used only in this object or if its a common time "type" in ACI universe? |
I kind of agree with the format been horrible for an API. They should at least expose it in both formats. The |
@JDA88 I think its easier to fix it in the exporter than to ask for a change request from ACI. I also think this is functionality can be valuable for other use cases. I did not want to create some new specific transformation for this specific format, but instead build on the functionality that already exists related to
In the
|
@JDA88 you can test the branch issue_22 to test the new feature. Please read the README.md and give feedback if anything is unclear. |
With the above commit it's now possible to use named regex groups like this:
|
Thank you very much for this. I'll let you know when we get the opportunity to test this! |
@JDA88 just so you know with latest commit on this branch golang is updated to 1.20 |
@JDA88 would really like your feedback from your test on this before merging :) |
I'll do my best but our team are very busy this week and we won't probably be able to test before at the very least next week |
@JDA88 I understand. I think I merge with master and continue on the other issues you made. Can create a beta for testing instead. |
Merged in #27 |
Is your feature request related to a problem? Please describe.
We are trying to retrieve the property
topSystem.attributes.systemUpTime
which works (as a label) but unfortunately we didn’t find a way to convert the format (ie.210:20:16:20.000
) to a correct value (seconds)Describe the solution you'd like
Ideally we would want a metric like this :
aci_node_uptime_duration_seconds{aci="GVA_DC_FABRIC",nodeid="1",podid="1"} 4320000
with the value been the number of second since last reboot
Describe alternatives you've considered
Unfortunately I don’t see any other alternative as we didn’t find another property which would store the value in a raw format.
From what I understand if a calculation does not already exist it would require a custom one, correct ?
The text was updated successfully, but these errors were encountered: