Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

Rancher Label in rancher_host_state metrics #38

Open
Taffarel opened this issue Dec 4, 2017 · 2 comments
Open

Rancher Label in rancher_host_state metrics #38

Taffarel opened this issue Dec 4, 2017 · 2 comments

Comments

@Taffarel
Copy link

Taffarel commented Dec 4, 2017

Hi, nice work that you guys are doing with this project.

I'm not a Go developer but I'm want to suggest to add the label data to rancher_host_state something like that:

"labels": {
"io.rancher.host.zone": "us-east-1e",
"io.rancher.host.docker_version": "17.06",
"io.rancher.host.region": "us-east-1",
"io.rancher.host.agent_image": "rancher/agent:v1.2.5",
"Project": "My Project",
"io.rancher.host.linux_kernel_version": "4.4",
"io.rancher.host.provider": "aws",
"Machine": "01"
}

If I can grab this data with something else let me know.

@Rucknar
Copy link
Contributor

Rucknar commented Dec 4, 2017

@Taffarel Is the above available in the API? It could be added but it would add a lot of cardinality to the metrics pulled back. It's possibly only available when used through docker machine, would need some testing. Not a huge amount of work though.

@Taffarel
Copy link
Author

Taffarel commented Dec 4, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants