grafana / xk6-output-prometheus-remote

k6 extension to output real-time test metrics using Prometheus Remote Write.
GNU Affero General Public License v3.0
159 stars 72 forks source link

Support for AWS SigV4 proxy, setting `K6_PROMETHEUS_RW_HEADERS_HOST` has no effect on `host` header. #123

Closed Dogacel closed 1 year ago

Dogacel commented 1 year ago

We are trying to use Prometheus export to an AWS-managed Prometheus instance. But this extension is currently not supporting AWS SigV4 signing.

To overcome this issue, we are trying to set aws-sigv4-proxy GitHub Repo

This proxy uses host header to redirect request to. But unfortunately K6_PROMETHEUS_RW_HEADERS_HOST parameter is not setting any header.

I tested this both on Beeceptor and a local proxy server I wrote, I don't see the host header being overridden.

codebien commented 1 year ago

Hey! I'm closing this new issue as you linked another is already available for the same topic. We may pick it up soon considering the upvotes.