Skip to content
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

Issue 12 #13

Merged
merged 4 commits into from
Jan 14, 2022
Merged

Issue 12 #13

merged 4 commits into from
Jan 14, 2022

Conversation

thenodon
Copy link
Member

Fix issue #12
Uppgrade github.com/tidwall/gjson to v1.9.3 - CVE-2021-42836

… to a timestamp.

This is done in the aci-api toFloat function. Additional automated conversations could be added.
The following config can be used to test:
class_queries:
  interface_lastlink_st_chg_to_date:
    class_name: ethpmPhysIf
    metrics:
      - name: lastLinkStChg
        value_name: ethpmPhysIf.attributes.lastLinkStChg
        type: counter
    labels:
      # The field in the json used to parse the labels from
      - property_name: ethpmPhysIf.attributes.dn
        # The regex where the string enclosed in the P<xyz> is the label name
        regex: "^topology/pod-(?P<podid>[1-9][0-9]*)/node-(?P<nodeid>[1-9][0-9]*)/sys/phys-\\[(?P<interface>[^\\]]+)\\]/"
@thenodon thenodon merged commit 77cd065 into master Jan 14, 2022
@thenodon thenodon deleted the issue_12 branch January 14, 2022 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant