collectd-haproxy-collectd的HAProxy stats插件。-William Glass
發佈:2020-12-23 14:18:41.566342
做者:William Glass
做者郵箱:william.glass@gmail.com
首頁:http://github.com/wglass/collectd-haproxy
文檔:None
下載連接
HAProxy stats for Collectd
.. image:: https://img.shields.io/pypi/v/collectd-haproxy.svg :target: PyPI_ :alt: Python Package Version .. image:: https://readthedocs.org/projects/collectd-haproxy/badge/?version=latest :target: https://collectd-haproxy.readthedocs.org/en/latest :alt: Documentation Status .. image:: https://travis-ci.org/wglass/collectd-haproxy.svg?branch=master :alt: Build Status :target: https://travis-ci.org/wglass/collectd-haproxy .. image:: https://codeclimate.com/github/wglass/collectd-haproxy/badges/gpa.svg :alt: Code Climate :target: https://codeclimate.com/github/wglass/collectd-haproxy .. image:: https://codeclimate.com/github/wglass/collectd-haproxy/badges/coverage.svg :alt: Test Coverage :target: https://codeclimate.com/github/wglass/collectd-haproxy/coveragehtml
A plugin for collectd_ to gather metrics for a local HAProxy_ instance, with a focus on easy installation and configuration.python
.. image:: http://collectd-haproxy.readthedocs.org/en/latest/_images/graphs.png :alt: Graphs made with HAProxy stats :align: centergit
(graphs made with Grafana_)github
Installation
The project is on PyPI_ so installation is a simple pip
command::socket
pip install collectd-haproxy
.. note::svg
If collectd is running with a virtualenv activated (under an isolated supervisord_ setup, for instance) make sure the collectd-haproxy
package is installed and available in the virtualenv's module path or collectd will run into an ImportError
.ui
In order to function properly, the local HAProxy instance will need to have the "stats socket" enabled, details about how to do that can be found here
_.spa
Configuration
The most basic configuration is to specify where the HAProxy socket file is located::.net
LoadPlugin "python" <Plugin python> Import "collectd_haproxy" <Module haproxy> Socket "/var/run/haproxy.sock" </Module> </Plugin>
For details on all of the options available, read the docs
_!插件
Development ~~~~~~~~~~~
The code is hosted on GitHub_
To file a bug or possible enhancement see the Issue Tracker
_, also found on GitHub.
License ~~~~~~~ (c) 2015-2016 William Glass
collectd-haproxy is licensed under the terms of the MIT license. See the LICENSE_ file for more details.
.. _collectd: https://collectd.org .. _HAProxy: http://www.haproxy.org .. _Grafana: http://grafana.org .. _PyPI: http://pypi.python.org/pypi/collectd-haproxy .. _here: https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#9.2 .. _supervisord: http://supervisord.org .. _read the docs
: http://collectd-haproxy.readthedocs.org/ .. _GitHub: https://github.com/wglass/collectd-haproxy .. _Issue Tracker
: https://github.com/wglass/collectd-haproxy/issues .. _LICENSE: https://github.com/wglass/collectd-haproxy/blob/master/LICENSE
Copy from pypi.org
查詢時間:7.974ms
渲染時間:8.108ms
本文同步分享在 博客「zhenruyan」(other)。
若有侵權,請聯繫 support@oschina.cn 刪除。
本文參與「OSC源創計劃」,歡迎正在閱讀的你也加入,一塊兒分享。