webdriver_exporter icon indicating copy to clipboard operation
webdriver_exporter copied to clipboard

What flags do we need to pass while building

Open ravikumar2000 opened this issue 3 years ago • 3 comments

We are getting the below issues while building NFO[0000] Starting webdriver_exporter (version=0.0.2, branch=, revision=) source=main.go:50 INFO[0000] Build context (go=go1.6.3, user=, date=) source=main.go:51 INFO[0000] Starting webdriver source=main.go:69 FATA[0000] failed to start webdriver: failed to start service: failed to run command: exec: "chromedriver": executable file not found in $PATH source=main.go:72

Appreciate your help on this.

ravikumar2000 avatar Aug 27 '20 05:08 ravikumar2000

Seems like you just need to have the 'chromedriver' executable in your $PATH. Have you installed chromedriver @ravikumar2000?

benridley avatar Mar 21 '21 23:03 benridley

Hi, We tried with chrome driver and facing issues like this when we run the curl -bash-4.2$ curl http://localhost:9156/probe?target=https://google.com probe_duration_seconds 0.031578 probe_success 0

-bash-4.2$ ./webdriver_exporter INFO[0000] Starting webdriver_exporter (version=0.0.2, branch=, revision=) sour ce=main.go:50 INFO[0000] Build context (go=go1.6.3, user=, date=) source=main.go:51 INFO[0000] Starting webdriver source=main.go:69 INFO[0000] Listening on localhost:9156 source=main.go:76 ERRO[0272] failed to retrieve URL: unexpected response: {"sessionId":"8b2eebfced 6859a6d36d1c49c5a4ee99","status":6,"value":{"message":"no such session\n (Drive r info: chromedriver=2.40.565383 (76257d1ab79276b2d53ee976b2c3e3b9f335cde7),plat form=Linux 4.14.35-1911.el7uek.x86_64 x86_64)"}} source=probe.go:71

ravikumar2000 avatar Apr 09 '21 12:04 ravikumar2000

Hmm, at least now you appear to have the exporter working. I'd suggest opening a separate issue for this

benridley avatar Apr 12 '21 03:04 benridley