Yet another collector for Mesos. Aiming to be as robust and platform (Mesos version) independent as possible.
- InfluxDB 0.8.X
- Python 2.7.X (
requests
library)
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...
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