artillery icon indicating copy to clipboard operation
artillery copied to clipboard

Cannot comunicate to prometheus behind a proxy

Open joaormouta opened this issue 2 years ago • 1 comments

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' }

joaormouta avatar Jan 03 '23 17:01 joaormouta

hi @joaormouta 👋 could you try setting HTTPS_PROXY instead to see if that works?

hassy avatar Jan 12 '23 20:01 hassy