普罗米修斯的zabbix度量

zabbix_exporter的Python项目详细描述


Zabbix_出口商

https://img.shields.io/badge/python-2.7,%203.6-blue.svghttps://travis-ci.org/MyBook/zabbix-exporter.svg?branch=masterhttps://codecov.io/gh/MyBook/zabbix-exporter/branch/master/graph/badge.svg

用法

Usage: zabbix_exporter [OPTIONS]

  Zabbix metrics exporter for Prometheus

  Use config file to map zabbix metrics names/labels into prometheus. Config
  below transfroms this:

      local.metric[uwsgi,workers,myapp,busy] = 8
      local.metric[uwsgi,workers,myapp,idle] = 6

  into familiar Prometheus gauges:

      uwsgi_workers{instance="host1",app="myapp",status="busy"} 8
      uwsgi_workers{instance="host1",app="myapp",status="idle"} 6

  YAML:

      metrics:
        - key: 'local.metric[uwsgi,workers,*,*]'
          name: 'uwsgi_workers'
          labels:
            app: $1
            status: $2
          reject:
            - 'total'

Options:
  --config PATH               Path to exporter config
  --port INTEGER              Port to serve prometheus stats [default: 9224]
  --url TEXT                  HTTP URL for zabbix instance
  --login TEXT                Zabbix username
  --password TEXT             Zabbix password
  --verify-tls / --no-verify  Enable TLS cert verification [default: true]
  --timeout INTEGER           API read/connect timeout
  --verbose
  --dump-metrics              Output all metrics for human to write yaml
                              config
  --version
  --help                      Show this message and exit.

使用Docker部署

docker run -d --name zabbix_exporter -v /path/to/your/config.yml:/zabbix_exporter/zabbix_exporter.yml --env=ZABBIX_URL="https://zabbix.example.com/" --env="ZABBIX_LOGIN=username" --env="ZABBIX_PASSWORD=secret" mybook/zabbix-exporter

历史

1.0.2(2017-02-25)

  • 修复生成脚本

1.0.1(2017-02-25)

  • 添加Docker图像mybook/zabbix-exporter

1.0.0(2017-01-20)

  • 初始PYPI版本

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Clojure关键字在内存中的大小是多少?   Java中有固定长度的通用数组对象吗?   PostgreSQL:通过Java更新我的用户表   错误:使用java解析xml   java Json显示列表中对象的名称   java比较JodaTime时区   与JAVA中的API和包的区别?   java的int值在for循环中不改变   谷歌应用引擎中的java RSA   迁移到spring 5后出现java非法字符错误   java Websphere管理控制台不工作   JavaGSON如何始终在json中包含毫秒?   带有空格和双引号的windows Java ProcessBuilder命令参数失败   java错误:重复的zip条目[43.jar:org/apache/http/annotation/NotThreadSafe.class]