https://prefect.io logo
#prefect-community
Title
# prefect-community
c

Chris Martinez

04/11/2022, 2:59 PM
Hi Good morning, is anyone familiar with dropping the following labels from a job/task in a kubernetes agent:
Copy code
<http://prefect.io/flow_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx|prefect.io/flow_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx>                                                                                                                                                            
<http://prefect.io/flow_run_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxx|prefect.io/flow_run_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxx>                                                                                                                                                         <http://prefect.io/identifier=xxxxxxxx|prefect.io/identifier=xxxxxxxx>
discourse 1
k

Kevin Kho

04/11/2022, 3:18 PM
Looking into this, but why are you trying to drop them?
c

Chris Martinez

04/11/2022, 3:19 PM
looking to trim some labels or possibly even join them into a single label due to constraints from grafana allowing us a max amount of labels
k

Kevin Kho

04/11/2022, 3:25 PM
The agent uses them to manage jobs though so I don’t think you can remove them
c

Chris Martinez

04/11/2022, 3:28 PM
I would be fine using that specific label if that is used for removal but the other two seem as though they could either be combined or removed.
k

Kevin Kho

04/11/2022, 3:36 PM
So we surely need
flow_run_id
. I don’t know about
flow_id
. We could open an issue. You can’t do this at the moment because it’s hardcoded. You could remove
flow_id
from here and re-deploy your agent, but then you’d need to change your image of course.
c

Chris Martinez

04/11/2022, 3:37 PM
Okay makes sense, I appreciate the help with this
k

Kevin Kho

04/11/2022, 3:45 PM
you can chime in here . we’ll see what the core team says.
4 Views