gitlab-ci-pipelines-exporter icon indicating copy to clipboard operation
gitlab-ci-pipelines-exporter copied to clipboard

failed to build resolver: invalid (non-empty) authority: gcpe-monitor.sock

Open patsevanton opened this issue 2 years ago • 1 comments

Hello! Thanks for I run in first terminal

gitlab-ci-pipelines-exporter -m 'unix://gcpe-monitor.sock' run --config config.yml

and run in second terminal on same directory

gitlab-ci-pipelines-exporter -m 'unix://gcpe-monitor.sock'  monitor

Get error

FATA[0000] could not connect to the server               endpoint="unix://gcpe-monitor.sock" error="failed to build resolver: invalid (non-empty) authority: gcpe-monitor.sock"

How fix it ?

patsevanton avatar Jan 29 '24 14:01 patsevanton

I had the same problem, I solved it by specifying a real path in the system:

gitlab-ci-pipelines-exporter -m 'unix:///var/run/gcpe-monitor.sock' run --config config.yml

then you export that same path and it works:

export GCPE_INTERNAL_MONITORING_LISTENER_ADDRESS='unix:///var/run/gcpe-monitor.sock'

gitlab-ci-pipelines-exporter monitor

jose-sky avatar Oct 14 '24 14:10 jose-sky