1
0
Fork 0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-05-27 21:26:18 +02:00

Add docs about Graphite integration

This commit is contained in:
Pavel Odintsov 2015-05-10 21:50:41 +03:00
parent 2f8bf8d365
commit d52e121799
2 changed files with 47 additions and 0 deletions

View File

@ -33,6 +33,7 @@ Features:
- Can process incoming and outgoing traffic
- Can trigger block script if certain IP loads network with a large amount of packets/bytes/flows per second
- Could [announce blocked IPs](docs/EXABGP_INTEGRATION.md) to BGP router with [ExaBGP](https://github.com/Exa-Networks/exabgp)
- Have integration with [Graphite](docs/GRAPHITE_INTEGRATION.md)
- netmap support (open source; wire speed processing; only Intel hardware NICs or any hypervisor VM type)
- Supports L2TP decapsulation, VLAN untagging and MPLS processing in mirror mode
- Can work on server/soft-router

View File

@ -0,0 +1,46 @@
### Graphite integration
Example screen: ![Graphite](docs/images/fastnetmon_graphite.png)
We could store pps/bps/flow number for top 7 (could be configured) host in incoming and outgoung directions. In addition to this we export total pps/bps/flow number which flow over FastNetMon.
Configuration from FastNetMon side is very simple, please put following fields to /etc/fastnetmon.conf:
```bash
graphite = off
graphite_host = 127.0.0.1
graphite_port = 2003
```
### Install Graphite Debian 8 Jessie
First of all, please install all packages:
```apt-get install python-whisper graphite-carbon```
Whisper - it's database for data. Graphite - service for storing and retrieving data from database.
Install web frontend: ```apt-get install: graphite-web```
Create database, specify login/password and email here: ```graphite-manage syncdb```
Change owner:
```chown _graphite:_graphite /var/lib/graphite/graphite.db```
Run it with apache:
```bash
apt-get install libapache2-mod-wsgi
cp /usr/share/graphite-web/apache2-graphite.conf /etc/apache2/sites-available/graphite-web.conf
a2dissite 000-default.conf
a2ensite graphite-web
```
Enable load on startup:
```bash
systemctl enable apache2.service
systemctl restart apache2.service
```
Open site:
http://10.0.3.114
Put test data to Graphite:
```echo "test.bash.stats 42 `date +%s`" | nc 127.0.0.1 2003```