-
Notifications
You must be signed in to change notification settings - Fork 294
What is source? #652
Comments
Here's a summarization of @jcooklin's and my discussion (quoted is Joel):
That, I believe may require a new special label: collector.
(I.e., change source to collector and let a plugin author use "source" if and however they want to inside tags.) |
Agreed. Hostname for example could be a Source but is not ALWAYS a Source. |
I've never viewed source as the source of the collection, always as the source as what is being measured. It's not just a collector problem, but also a publisher problem as the definition of what the source field stands needs to be clear for both authors of collector plugins and publisher plugins. |
The term target might better describe what is being measured. |
source=justin |
To complement @lynxbat's latest comment: @jcooklin drew a nice analogy about this using heart rate. Here it is to the best of my memory's ability:
To which I reply, actually no, the doctor's oximeter has a different namespace than your watch. These represent two discreet metrics, for both of which Joel is the source (or target). |
I agree with @danielscottt and @lynxbat on this. For me it seems the most logical to have the source be where the data is actually coming from (i.e. where the plugin is running). The namespace describes what data sets are being gathered and target would be the node/thing you are measuring. So, an example from one of my use cases of measuring file server operations: source = the agent server that can access a file server So this would describe where the data was actually collected at (the source), the type of data being collected (ops_per_second in this case), and the node that was measured (the target). So I think that would be pretty unambiguous to someone who is reading the data. |
@thomastaylor312 it sounds like you agree with all of us! Your suggestion is the union of Joel's and mine, and I really like it. +1 from me on both |
@jcooklin and I were discussing a metric's Source this morning, and I wanted to open up a dialog on what we think of as the source of a metric.
I see source as either the source of the data, or the atom which we are measuring.
Take the example where we are collecting
cpu_wait_time
from vCenter on a VM called Foo.I think in most cases the measurer and the measuree are the same. However, in the example above, the measuree is VM Foo, and the measurer is vCenter. I can see this going either way: Setting source as vCenter, as it is the atom doing the measuring, or setting the source as Foo, as it is the atom we are measuring.
The text was updated successfully, but these errors were encountered: