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

Joshua Greenhalgh

05/27/2022, 9:53 AM
Does anyone know of a way to apply some kind of tagging to the k8s jobs the agent starts so that I can easily use gcp metric explorer to see resource usage per flow_id? Everything is just
prefect-job-foo
not sure how I can isolate one flow from another?
k

Kevin Kho

05/27/2022, 1:56 PM
This one I don’t have anything ready and yes I agree it’s hard. In prefect 2.0, the pod name matches the flow run name which makes things so much easier. For 1.0, I don’t think there is any feature to help with this
j

Joshua Greenhalgh

05/27/2022, 2:11 PM
Ok so the only way to go about it is to construct the whole job spec and add for each run config and specify tags in that?
k

Kevin Kho

05/27/2022, 2:59 PM
I think so yeah. I’ve seen people use Kubernetes annotations specifically
2 Views