Jay Taylor's notes

back to listing index

nqn/nibbler

[web search]
Original source (github.com)
Tags: mesos statistics influxdb marathon github.com
Clipped on: 2016-02-28

Skip to content
Yet another collector for Mesos. Aiming to be as robust and platform (Mesos version) independent as possible.
Python
Image (Asset 3/4) alt=

File uploading is now available

You can now drag and drop files into your repositories. Learn more

README.md

Nibbler

Image (Asset 4/4) alt=

Yet another collector for Mesos. Aiming to be as robust and platform (Mesos version) independent as possible.

Dependencies

  • InfluxDB 0.8.X
  • Python 2.7.X ( requests  library)

Usage

usage: slave-collect.py [-h] [--slave SLAVE] [--influxdb-host INFLUXDB_HOST]
                        --influxdb-name INFLUXDB_NAME
                        [--influxdb-user INFLUXDB_USER]
                        [--influxdb-password INFLUXDB_PASSWORD]
Flag Description
slave hostname and port for mesos slave
influxdb-name hostname and port for influxdb admin server (default: localhost:8086)
influxdb-name database name to use
influxdb-user user for influxdb admin server
influxdb-password password for influxdb admin server

Example:

$ python slave-collect.py --influxdb-name=mesos --slave=localhost:5050
<Response [200]>
Sent sample...
<Response [200]>
Sent sample...
<Response [200]>
Sent sample...

Service setup

To run nibbler slave agent with systemd:

git clone https://github.com/nqn/nibbler.git /usr/local/share/applications/nibbler/
cd /usr/local/share/applications/nibbler/

cp nibbler-slave.service.template nibbler-slave.service
# Change addresses in nibbler-slave.service

mv nibbler-slave.service /usr/lib/systemd/system/nibbler-slave.service
systemctl enable nibbler-slave
systemctl start nibbler-slave

To run nibbler master agent with systemd:

git clone https://github.com/nqn/nibbler.git /usr/local/share/applications/nibbler/
cd /usr/local/share/applications/nibbler/

cp nibbler-master.service.template nibbler-master.service
# Change addresses in nibbler-master.service

mv nibbler-master.service /usr/lib/systemd/system/nibbler-master.service
systemctl enable nibbler-master
systemctl start nibbler-master