ncabatoff / script-exporter

Prometheus exporter to invoke scripts and parse their output as metrics.
MIT License
37 stars 20 forks source link

Running multiple scripts #12

Open JayashriKK opened 5 years ago

JayashriKK commented 5 years ago

Hi .. New to Prometheus. Below is my prometheus.yml file.

global: scrape_interval: 15s

scrape_configs:

/etc/script-exporter$ sudo ./script-exporter -script.path /path/to/my/scripts -web.listen-address :9661 2019/07/12 15:39:34 error parsing output from script 'script2': Error parsing Prometheus TextFormat: text format parsing error in line 1: expected float as value, got ""

How to fix this?

ncabatoff commented 5 years ago

It sounds like script2 isn't outputting in the correct format, see https://prometheus.io/docs/instrumenting/exposition_formats/