VictoriaMetrics / metrics

Lightweight alternative to github.com/prometheus/client_golang
MIT License
543 stars 63 forks source link

add header parameters for push metrics #55

Closed bubunyo closed 11 months ago

bubunyo commented 1 year ago

This pull request adds the ability to set header fields for pushing metrics. this does not break backwards compatibility

resolve #36 , #52

hagen1778 commented 11 months ago

Hello @bubunyo! Thank you for the pull request and implementation idea!

I'm closing this PR in favor of https://github.com/VictoriaMetrics/metrics/pull/53.

valyala commented 11 months ago

The githut.com/VictoriaMetrics/metrics package supports specifying arbitrary http headers for metrics push requests starting from the tag v1.26.0 - see this comment for details.