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?
已存档?
是复刻?
已锁定?
是镜像?
是私有?