You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Today the processor allows configuring which specific labels and annotations should be added as resource attributes. For users who want all the labels and/or annotations, this requires them to:
Know all the possible keys
List all the possible keys in the configuration
In my opinion this is a poor user experience.
Describe the solution you'd like
As a quality of life improvement I'd like to be able to specify the "Add all the labels from the pod" or "Add all the annotations from the namespace" and so on. I think the configuration API would look something like:
k8sattributes/:
extract:
allAnnotationsFrom:
- pod
- namespaceallLabelsFrom:
- pod
I also don't believe this needs to be mutually exclusive from annotations and labels configuration option. Users should be allowed to use allAnnotationsFrom and annotations so that they can specify regexp extractions to get even more attributes. I does sound like a good idea to validate that if both options are used (allAnnotationsFrom and annotations or allLabelsFrom and labels) that each extraction in annotations/labels uses regexp.
The text was updated successfully, but these errors were encountered:
It is a little more difficult than the config I proposed, but is a useable solution. Based on the ongoing filtering config work (#25128, #25135) I think we hold on this proposal for now.
Component(s)
processor/k8sattributes
Is your feature request related to a problem? Please describe.
Today the processor allows configuring which specific labels and annotations should be added as resource attributes. For users who want all the labels and/or annotations, this requires them to:
In my opinion this is a poor user experience.
Describe the solution you'd like
As a quality of life improvement I'd like to be able to specify the "Add all the labels from the pod" or "Add all the annotations from the namespace" and so on. I think the configuration API would look something like:
I also don't believe this needs to be mutually exclusive from
annotations
andlabels
configuration option. Users should be allowed to useallAnnotationsFrom
andannotations
so that they can specify regexp extractions to get even more attributes. I does sound like a good idea to validate that if both options are used (allAnnotationsFrom
andannotations
orallLabelsFrom
andlabels
) that each extraction inannotations
/labels
uses regexp.The text was updated successfully, but these errors were encountered: