> Is it possible to drop a set of metrics based on the output of another 
metric  in the metric_relabeling phase

No.

> or using any recording rule ?

Yes. Write a PromQL query which filters the metrics in the way that you 
want, and when it's working (in the web UI), put it in a recording rule. 
You haven't given exact examples of any of the metrics in question (with 
complete label sets), but a starting point might look like this:

    kube_pod_status_phase unless on (uid, pod) 
kube_pod_info{created_by_kind="<none>"}

That will drop any entries in the kube_pod_status_phase vector which match 
on both the uid and pod labels with the expression on the RHS. 
Documentation for logical/set binary operators is 
here: 
https://prometheus.io/docs/prometheus/latest/querying/operators/#logical-set-binary-operators

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/ef2aa598-bbe0-4aee-9bb8-8320f12d8da1n%40googlegroups.com.

Reply via email to