Hello all, what's the best/recommended practice on...
# ask-metaflow
m
Hello all, what's the best/recommended practice on programmatically querying the pod names/ids involved in the execution of a workflow. Our metaflow set-up uses EKS + Argo running on top of on-demand and spot instances. We recently started looking into workflow cost tracking with OpenCost (w\ Prometheus) and wanted to validate the cost calculations programmatically. So far, I can query the pod names/ids via each Task.metadata attribute by filtering the list of metadata objects by 'field_name'. Also played around with making GET requests directly to the client API. Any idea where I can find documentation for making more sophisticated queries to the client API to apply the field_name filters? Or should I get the information through the Argo-workflows DB? (Any advice is welcomed) (Also super excited for the event-triggered workflows release over here 🤩 )