Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAutomatically include `node` label for every `instance` #1217
Comments
This comment has been minimized.
This comment has been minimized.
|
This is the sort of thing that's going to vary a lot between sites, and not going to work if you've things like an overlay network or multiple DNS names for a given machine in play. As with all cases where you're trying to add labels to targets that are site specific, relabelling is the way to go. |
This comment has been minimized.
This comment has been minimized.
|
Except that a node is a very common labeling method for a lot of network designs. Even in something like kubernetes/docker where you have per-container IP address, you may have multiple targets that have relevant metrics to share with each other. Forcing the |
This comment has been minimized.
This comment has been minimized.
|
I think you're confusing This is something that's only make sense in some deployments, and adding in labels like this will cause problems for users as it'll require additional special handling by users to strip off as we improve label handling in promql. This is not something we can safely do by default due to both safety, and because it's not sane from a maintenance/usability standpoint to offer options, let alone defaults, for the multitude of common scenarios. |
This comment has been minimized.
This comment has been minimized.
|
How about a global relabel section in the config so I don't have to repeat
the relabel for every job?
|
This comment has been minimized.
This comment has been minimized.
|
Hmm, I can see that working in some cases but not working in most cases when you consider things like the blackbox exporter which require different handling. In general I'd also expect the node exporter and applications to have different relabel rules. I think this is probably better handled by a for loop in configuration management, as there's likely lots of other aspects that are similar if relabelling is. |
This comment has been minimized.
This comment has been minimized.
|
I agree here. This requires a single relabeling rule – way less than needed for other tweaks to the standard behavior. Relabeling is not trivial in itself, layering it will make configuration unnecessarily complicated. |
This comment has been minimized.
This comment has been minimized.
|
Closing since we solved this accordingly for our use case. |
fabxc
closed this
Dec 11, 2015
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
SuperQ commentedNov 13, 2015
It's highly useful to be able to metrics comparisons between targets on the same node. For example getting the rate of disk IO from the
node_exporterand normalizing that with request counters frommysqld_exporter.Creating a
nodelabel frominstanceworks via metrics relabeling, but it can be very messy. It would be nice to just have this be a default option.