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

I can`t add label (inorder to aggregate the data by this label ) when node_exporter 's role is endpoints #4530

Closed
jiananjiang opened this Issue Aug 23, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@jiananjiang
Copy link

jiananjiang commented Aug 23, 2018

I want add label like kubernet-nodes's type to "kubernet-service-endpoints",inorder to aggregate the data by this label ,As shown below:

a

but I according this configuration file, I can not accomplish.

ee

prometheus version
prometheus:v2.0.0

kubectl version
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0", GitCommit:"fc32d2f3698e36b93322a3465f63a14e9f0eaead", GitTreeState:"clean", BuildDate:"2018-03-26T16:55:54Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0", GitCommit:"fc32d2f3698e36b93322a3465f63a14e9f0eaead", GitTreeState:"clean", BuildDate:"2018-03-26T16:44:10Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}

please tell me what should I do ?

@jiananjiang

This comment has been minimized.

Copy link
Author

jiananjiang commented Aug 23, 2018

this label of "type" is kubernet set for each node's label, like mark this node belongs which group。

@simonpasquier

This comment has been minimized.

Copy link
Member

simonpasquier commented Aug 23, 2018

__meta_kubernetes_node_label_type is only present for role: node. For the list of labels associated to role: endpoint, see https://prometheus.io/docs/prometheus/latest/configuration/configuration/#endpoints.

I'm closing it for now. If you have further questions, please use our user mailing list, which you can also search.

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 22, 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 22, 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.