CSH-85 Attach node_name label to Victoria Metrics metrics#63
CSH-85 Attach node_name label to Victoria Metrics metrics#63kivkiv12345 wants to merge 3 commits into
node_name label to Victoria Metrics metrics#63Conversation
node_name label to Victoria Metrics metricsnode_name label to Victoria Metrics metrics
|
Note that this will break some queries where we use the ignoring(...) operator. |
|
We need another name for this. "node_name" sounds like an extension to the existing "node" label. I intend the new label to be the standard approach when pointing towards a specific module. Some suggestions, which I am not satisfied with myself:
Out of curiousity, can you point me to an example in our Grafanas? |
|
Well it's the I've created a dashboard here, where I've done some pulls from my own CSH: |
|
JB also just showed me that the @johandc Do we use the |
|
I suggest renaming "node_name" to "host" |
|
Okay, so if its a derived value from the hostname ident string. We should be cautious as there is no real standard for what is emitted as hostnames. Thomas and i was discussing to add a check in csh program command to ensure the hostname og the running system would match the hostname shown in the firmware. As such it seems likely the field is getting more and more used like a product name or category, not its intended use which is a unique named identify like sttc0, fss-xp, and so on. Perhaps we should revise the use of the field. Another thing i would like to add to victoria metrics is the asset / serial number. |
|
Missions is indeed using the hostname information to identify the module, like sttc0, fss-xp etc. This is enforced by using node add to predefine all module identities when loading the mission config. @johandc Lets continue the serial number discussion in Jira PLT-4 |
|
So what about calling the field hostname, and using the one provided in node list, or the ident one, if available. |
|
|
I've changed the label to |
We are not done if you do not agree :-) |
|
If the label is essentially just filled out with the csh stored hostname of the system, should we not just keep that name? Nodename is kind of new to me and i dont see any differences to a hostname in the above descriptions. I like the fact that it would essentially read the nodes configuration file from the init scripts, and then grafana will be filled with descriptive hostnames. That differs a little from the product name, or kind, where all pdus will remain with the exact same name, which i guess was the initial idea? |
|
Right now it's just called "host", Both Troels and myself are fine with "hostname" as well, so I will change it to that. Reading the hostname from the ops-scripts, while still falling back to the ident name has always been my intended interaction. |


In the hope that we can create far more generic Grafana dashboards.