Giter Club home page Giter Club logo

lvs-metrics's Introduction

lvs-metrics lvs metrics collector for open-falcon

Build Status

lvs metrics collector for open-falcon.

Dependencies

Dependencies are handled by godep, simple install it and type godep restore to fetch them.

Install

The libnl3 needed in compile and production machine.

# sudo yum install -y libnl3.x86_64
or
# sudo apt-get install libnl-3-dev libnl-genl-3-dev

Only needed in compile machine.

$ git clone https://github.com/mesos-utility/lvs-metrics.git
$ cd lvs-metrics
$ make bin

Configuration

Edit cfg.json configuration file.

{
    "debug": false,
    "attachtags": "",
    "http": {
        "enable": false,
        "listen": "0.0.0.0:1987"
    },
    "transfer": {
        "enable": true,
        "addr": "http://127.0.0.1:1988/v1/push", # Installed falcon agent in host.
        "interval": 30,
        "timeout": 1000
    }
}

or

{
    "debug": false,
    "attachtags": "",
    "http": {
        "enable": false,
        "listen": "0.0.0.0:1987"
    },
    "transfer": {
        "enable": true,
        "addr": "127.0.0.1:8433", # Send metrics to transfer direct.
        "interval": 30,
        "timeout": 1000
    }
}

Metrics

Counters Type Notes
lvs.in.bytes GUAGE network in bytes per host
lvs.out.bytes GUAGE network out bytes per host
lvs.in.packets GUAGE network in packets per host
lvs.out.packets GUAGE network out packets per host
lvs.total.conns GUAGE lvs total connections per host
lvs.vip.active_conn GUAGE lvs active connections per vip now
lvs.vip.inact_conn GUAGE lvs inactive connections per vip now
lvs.vip.rs_num GUAGE lvs live realserver num per vip now
lvs.vip.conns COUNTER lvs conns counter from service start per vip
lvs.vip.inbytes COUNTER lvs inbytes counter from service start per vip
lvs.vip.outbytes COUNTER lvs outpkts counter from service start per vip
lvs.vip.inpkts COUNTER lvs inpkts counter from service start per vip
lvs.vip.outpkts COUNTER lvs outpkts counter from service start per vip

lvs-metrics's People

Contributors

soarpenguin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.