Kube-state-metrics: Feature request: include pod annotations

Created on 17 Jul 2019  Â·  4Comments  Â·  Source: kubernetes/kube-state-metrics

Is this a BUG REPORT or FEATURE REQUEST?:

/kind feature

What happened:

Hi

There have been a few requests in the past to add annotations, they seem to have been left to rotten and were closed. Are there any current plans to add pod annotations? Alternatively, would you be supportive of a PR to optionally enable annotations on pods.

Found these issues with similar requests: https://github.com/kubernetes/kube-state-metrics/issues/574, https://github.com/kubernetes/kube-state-metrics/issues/250

kinfeature

Most helpful comment

hi @tariq1890 no worries. how about enabling only for selected annotations? in the config you'd need to opt in the exact annotations you wish to report, to avoid the scale issue and specifically the annotation that is used to keep trail of pod changes.

All 4 comments

See this comment by @brancz in PR #770. The pod annotations were excluded because of a potential high cardinality.

Hi @tariq1890 will it be supported? I had a notification about a comment from you that it is part of 1.7 and is in the rc, but I don't see the comment. Or have you decided to not include pod in the annotation feature?

@sayarg I commented that by mistake (sorry :() which is why I had deleted it. It will not be supported.

hi @tariq1890 no worries. how about enabling only for selected annotations? in the config you'd need to opt in the exact annotations you wish to report, to avoid the scale issue and specifically the annotation that is used to keep trail of pod changes.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

natalysheinin picture natalysheinin  Â·  6Comments

loveyang2012 picture loveyang2012  Â·  7Comments

jackzampolin picture jackzampolin  Â·  8Comments

mrueg picture mrueg  Â·  3Comments

derekwaynecarr picture derekwaynecarr  Â·  4Comments