script-exporter

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

  • 所有者: ncabatoff/script-exporter
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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

主要指標

概覽
名稱與所有者ncabatoff/script-exporter
主編程語言Go
編程語言Go (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2017-05-19 02:05:00
推送於2019-07-27 16:22:21
最后一次提交2019-07-27 12:22:12
發布數4
最新版本名稱v0.1.3 (發布於 )
第一版名稱v0.1.0 (發布於 )
用户参与
星數37
關注者數3
派生數20
提交數15
已啟用問題?
問題數14
打開的問題數7
拉請求數1
打開的拉請求數1
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?