-
Notifications
You must be signed in to change notification settings - Fork 6.1k
SNMP profiles units and description generation #20163
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
Conversation
- OID: 1.3.6.1.4.1.14823.2.2.1.2.1.15.1.3 | ||
# core check only | ||
name: memory.used | ||
scale_factor: 1000 | ||
description: used memory in kilobytes | ||
unit: "kBy" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kBy
, units it braces (e.g. {packet}
). I don't think our UI supports (understands) auto-scaling for such units.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ralphm can you elaborate here? Do we prefer no auto-scaling for the units to favor the UCUM way of having them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ancairon, I assumed that these units do not work. Based on the fact that I have never seen them 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ancairon, I assumed that these units do not work. Based on the fact that I have never seen them 😄
If they don't work, then this is a bug. We did work in the frontend as part of this effort: https://github.com/netdata/product/issues/3136.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So @ralphm in this case should it be kBy or By?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know where scale_factor
comes from. Do we use it? I know that DataDog uses this to consume the value in bytes instead of the original kilobytes that is provided by the source. So if we do apply it, the unit should be By
. If we don't kBy
.
I am also wondering if kilobyte
actually means 1000 bytes here, or really 1024 bytes. If the latter, the proper unit with prefix would be kiBy
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(but I think SI-prefixes are more common in SNMP)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested {packet}
and I see that the scaling works. And we keep the braces... @ralphm is that expected?

src/go/plugin/go.d/config/go.d/snmp.profiles/default/_arista-queue.yaml
Outdated
Show resolved
Hide resolved
I see a lot of inconsistencies. I want to use resources from https://mibbrowser.online/mibdb_search.php?mib=TCP-MIB too, and provide the model with the mib, but that will be more complex. PR will stay draft and I will work on it. |
@Ancairon There are 347 TBD units
What do we need to discuss to change them? |
we need to review them, "to be determined" |
they are all the units the model could not fill in |
I see many of them are very clear if you just read them. I see:
|
when I review them I guess these will be the easy ones to change, for now I think it is okay to move to the next step |
Summary
After some trial and error with the prompt, I have the first batch of files ready.
@netdata/product and @ilyam8 I think merging these in this fashion will make easier to quickly have a glance and see if something needs manual editing, wdyt?
I will take a look myself on the units, and if I find something off I will add some commits.