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 upLabels Query #1689
Comments
This comment has been minimized.
This comment has been minimized.
|
It sounds like you're looking for http://www.robustperception.io/how-to-have-labels-for-machine-roles/ |
This comment has been minimized.
This comment has been minimized.
|
I do indeed, thanks for the heads up @brian-brazil |
Rucknar
closed this
Jun 1, 2016
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. |
lock
bot
locked and limited conversation to collaborators
Mar 24, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Rucknar commentedMay 29, 2016
Aim - I wish to be able to query for host metrics based upon a server's role easily.
Challenge - I’m doing this within a container orchestration platform that supports DNS service discovery. I’m using this platform to schedule the running of our node-exporter globally. Prometheus then retrieves the list of node-exporters through DNS service discovery. This works well and our results are filterable on ‘instance’ (IP/Port).
What i’ve tried
I’ve tried Adding a textile collector to node-exporter, can now see ‘role’ metric returned, i figured once my data is all in the same place, it should be easy... But I couldn’t see a way of manipulating this returned data into something i could use in other metrics. I attempted relabel configs to try map the values but i don’t think it's possible to re-map a metric result to a label like that?
I think the usual way here is to split up the jobs so that each group has a label, that’s not something i can easily do here, there isn't a config management platform behind this deployment. I guess fundamentally i shouldn't need one as all the data is there, I can obtain the servers role within a container, how can i easily either replace an existing label with this data, or add a new label from it?
Think i’ve just gotten confused with labels in general, apologies if this is covered, i have searched around a lot.
Any help appreciated,
Thanks
Ed