script-exporter

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

  • Owner: ncabatoff/script-exporter
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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

Main metrics

Overview
Name With Ownerncabatoff/script-exporter
Primary LanguageGo
Program languageGo (Language Count: 3)
Platform
License:MIT License
所有者活动
Created At2017-05-19 02:05:00
Pushed At2019-07-27 16:22:21
Last Commit At2019-07-27 12:22:12
Release Count4
Last Release Namev0.1.3 (Posted on )
First Release Namev0.1.0 (Posted on )
用户参与
Stargazers Count37
Watchers Count3
Fork Count20
Commits Count15
Has Issues Enabled
Issues Count14
Issue Open Count7
Pull Requests Count1
Pull Requests Open Count1
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private