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

Export more metric labels #231

Open
nambrot opened this issue Apr 29, 2020 · 6 comments
Open

Export more metric labels #231

nambrot opened this issue Apr 29, 2020 · 6 comments
Assignees

Comments

@nambrot
Copy link

nambrot commented Apr 29, 2020

Howdy, I was wondering if it is possible to configure the sidecar to export some specific labels of our metrics? Or are we constrained to the generic task resource labels in Stackdriver?

@igorpeshansky igorpeshansky self-assigned this Apr 30, 2020
@igorpeshansky
Copy link
Member

The sidecar supports a number of resources, all of which are listed in resource_map.go. Most of the other labels are attached to the timeseries, except for the target labels and __name__ (see series_cache.go).
Does this answer your question?

@nambrot
Copy link
Author

nambrot commented Apr 30, 2020

Thank you for your prompt response! I'm not entirely sure I understand the Resource Map. When we have run it on our cluster, it's been translated to a Generic Task. If I understand correctly, if I have some application specific metrics, that will be my best shot and using job and task_id as the only free labels I could use for my purposes?

@nambrot
Copy link
Author

nambrot commented Apr 30, 2020

The reason I ask is that with prometheus-to-sd I was able to get all the labels from my prometheus metrics into stackdriver as well

@nambrot
Copy link
Author

nambrot commented May 7, 2020

@igorpeshansky Just wondering if you had any updates/tips here?

@WaterKnight1998
Copy link

@nambrot Same happening here. If I mount prometheus-to-sd I get metrics (kube-state-metrics & Node exporter) from all namespaces in GCP Monitoring. However, If I use this sidecar I don´t get them from all namespaces.

How did you solve this error?

@clguo-tw
Copy link

same problem, can't get metrics from all namespaces
only get metrics from namespace which has prometheus

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

No branches or pull requests

4 participants