Prometheus send HTTP request to get monitor values. My custom export supports variety of clients (to monitors system status). There is a general REST API to get list of monitors:
/api/v1/monitor/find
the output result depend on Accept attribute in header. The default accept value is application/json.
I add new mime type to support prometheus (e.g. application/prometheus) into the API.
But, how to config Prometheus to add a custom header (Accept: application/prometheus)?