Is it possible to either add templated labels, or ...
# ask-metaflow
i
Is it possible to either add templated labels, or to add some of the existing annotations as labels when launching flows? There are k8s annotations like
metaflow/flow_name
,
metaflow/user
, etc that I would like to have populated as k8s labels so I can use them in a grafana dashboard.
h
We have done this by leveraging this argument in the
kubernetes
decorator https://github.com/Netflix/metaflow/blob/master/metaflow/plugins/kubernetes/kubernetes_decorator.py#L96
i
Are you manually setting the labels like this?
@kubernetes(labels={"metaflow/user": "myusername"})
I'm hoping to have these annotations automatically applied as labels
h
We are setting our own labels that are leveraged throughout our system. Not sure how you would get the standard annotations to show up as labels.