GithubHelp home page GithubHelp 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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lvs-metrics's Issues

make bin err

when i make bin , exception happened,like :

go build -i -ldflags "-X github.com/mesos-utility/lvs-metrics/g.Version=" -o lvs-metrics .

github.com/mesos-utility/lvs-metrics/vendor/github.com/google/seesaw/netlink

could not determine kind of name for C.nl_socket_alloc
could not determine kind of name for C.nl_socket_free
make: *** [bin] Error 2

what can i do for this? thanks!

Post metrics twice when tranfer data to server

Here is my cfg.json
{ "debug": false, "attachtags": "", "http": { "enable": false, "listen": "0.0.0.0:1987" }, "transfer": { "enable": true, "addr": "http://127.0.0.1:8433", "interval": 3, "timeout": 1000 } }
127.0.0.1:8433 is a server that handle lvs-metrics data
I will get two request every tranfer,one is the collect data and another get 0 for all metrics.
Like this:
[{"endpoint":"localhost.localdomain","metric":"lvs.vip.inpkts","value":338884,"step":3,"counterType":"COUNTER","tags":"vip=192.168.65.11,port=80","timestamp":1536128359}]

[{"endpoint":"localhost.localdomain","metric":"lvs.in.packets","value":0,"step":3,"counterType":"GAUGE","tags":"","timestamp":1536128359}]

Why not collect data for each RS

Hi, One question. For the connections, bytes and packets, why not collect data for each RS?
Like the 'ipvsadm -l --rate' command, this command can outputs the metrics for each RS.

make bin fail!!!!!

github.com/google/seesaw/netlink
could not determine kind of name for C.NLM_F_DUMP_INTR
make: *** [bin] Error 2

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.