huksley / prometheus-remote-write

Send samples to prometheus via remote_write from NodeJS
MIT License
20 stars 6 forks source link

X-Scope-OrgID header #4

Closed ShazotiHashimoto closed 1 year ago

ShazotiHashimoto commented 1 year ago

Hi This package is great, thanks for sharing.. I have one query regarding the X-Scope-OrgID header thats required when pushing to Grafana Mimir Prometheus. Would it be possible to cater for additional header fields when calling the pushTimeseries function.

I could suggest that the options var has a headers tag that you could add that would cater for any additional headers

huksley commented 1 year ago

Check it out npm i prometheus-remote-write^0.4.0

ShazotiHashimoto commented 1 year ago

Oh wow thanks man you are awesome