HUB
Sign inSign up
script_exporter logo

matrixdotorg/script_exporter

By matrixdotorg

•Updated almost 7 years ago

Image
0

965

matrixdotorg/script_exporter repository overview

⁠script-exporter

Prometheus exporter to invoke scripts and parse their output as metrics.

Release Build Status Powered By: GoReleaser

⁠Usage

script-exporter -script.path /path/to/my/scripts -web.listen-address :9661

Create e.g. /path/to/my/scripts/script1, an executable which emits on stdout metrics in the Prometheus text exposision format⁠.

Then configure your prometheus.yml to add a target like

  - job_name: 'script1'
    metrics_path: /metrics/script1
    static_configs:
      - targets: ['localhost:9661']

If you add another script, you'll need another job, because the metrics path will be different.

You also want to add a job for the script_exporter internal metrics (errors, process stats, etc) as the above job will only yield metrics emitted by script1 itself:

  - job_name: 'script-exporter'
    metrics_path: /metrics
    static_configs:
      - targets: ['localhost:9661']

⁠Docker

Build the image running: docker build . Or just run

docker pull ncabatoff/script-exporter

Tag summary

Content type

Image

Digest

Size

94.6 MB

Last updated

almost 7 years ago

docker pull matrixdotorg/script_exporter:debian0.0.1