Hi Team,
So, there's a requirement , a single prometheus server should scrape from multiple targets (in our case, that would be two containers) and they should have their individual remote writes to single cortex server.And it is because, they would like to identify different vendors on the basis on JWT tokens. The JWT tokens would be provided by the customer itself for each vendor.So, suppose 1st container generates metrics for first vender, 2nd container for another vender. Now there's our prometheus server that scrapes from these two containers. Now, first vender and second vender metrics are being written to a remote site (CORTEX) using the remote write API provided by Prometheus individually via two different scrap config in single config file.
So, do you think we can individually have different remote writes for different scrape targets? If yes, then we would like send the JWTs given by them as well
So, I saw that bearer_token is the place for mentioning the tokens. But how to achieve the above scenario? Do you think it's doable?
Please suggest any approach with sample that would be highly appriciable .