artillery
artillery copied to clipboard
Cannot comunicate to prometheus behind a proxy
Version info: 2.0.0-27
Running this command:
- $env:HTTP_PROXY="http:XXXX"
- npx artillery some.yaml
with:
plugins: publish-metrics: - type: prometheus pushgateway: "https://prometheus-us-central1.grafana.net/api/prom"
I expected to see this happen:
The metrics are at prometheus
Instead, this happened:
\ Error pushing metrics to push gateway Error: getaddrinfo ENOTFOUND prometheus-us-central1.grafana.net at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: 'prometheus-us-central1.grafana.net' }
hi @joaormouta 👋 could you try setting HTTPS_PROXY
instead to see if that works?