Skip to content
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

Labels Query #1689

Closed
Rucknar opened this Issue May 29, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@Rucknar
Copy link
Contributor

Rucknar commented May 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

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented May 30, 2016

@Rucknar

This comment has been minimized.

Copy link
Contributor Author

Rucknar commented Jun 1, 2016

I do indeed, thanks for the heads up @brian-brazil

@Rucknar Rucknar closed this Jun 1, 2016

@lock

This comment has been minimized.

Copy link

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 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.
You can’t perform that action at this time.