-
Notifications
You must be signed in to change notification settings - Fork 82
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
Documentation or examples could demonstrate TargetLabels FromPod #875
Labels
help wanted
Extra attention is needed
Comments
Thanks! Some of it is explained in field comment (e.g. readable via kubectl explain), but that nuance when
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
None of the examples or documentation beyond the API reference demonstrate how to scrape the pod labels as metric labels. This makes it harder than necessary to get going.
For my future reference, and the reference of anyone else:
Specify
from
as the name of the pod label you wish to have added to the metric labels. You may also need to specifyto
to provide the name the label should be on the metric - this is necessary if the pod label is not compatible with the metric labels (e.g contains characters such as /)The text was updated successfully, but these errors were encountered: