Metadata labels from k8s annotations

I want to scrape logs from files in a container (not from stdout / stderr)
I was thinking of using ‘relabeling’ to rewrite the path label (with pod annotations) It’s possible?

I am trying to do something similar. Did you find a solution?