ricoberger / script_exporter

Prometheus exporter to execute scripts and collect metrics from the output or the exit status.
MIT License
354 stars 82 forks source link

Script parameter is missing #25

Closed hopik007 closed 4 years ago

hopik007 commented 4 years ago

Hi I have tried your script exporter but after call http://localhost:9469/ I can see

Script Exporter Metrics

Probe

version: v2.2.0 branch: master revision: b698e33ad6c7d5f32c43de163e7ef43f970c9c1d go version: go1.13.7 build user: build date:

After click to Probe I see "Script parameter is missing". I am only testing you testing solution: ./bin/script_exporter -config.file ./examples/config.yaml

Could you pls me advise me where can be a problem ?

Thanks a lot

Vojtech

hopik007 commented 4 years ago

Issue was that url have to be in URL format : ie. http://localhost:9469/probe?script=test