This roll installs TCP statistical and analysis tool tstat
wget http://tstat.polito.it/download/tstat_rrd.cgi wget http://tstat.polito.it/download/tstat-3.1.1.tar.gz wget http://monalisa.cern.ch/FDT/lib/fdt.jar wget https://dl.influxdata.com/influxdb/releases/influxdb-1.4.2.x86_64.rpm wget https://dl.influxdata.com/chronograf/releases/chronograf-1.4.0.1.x86_64.rpm wget https://dl.influxdata.com/kapacitor/releases/kapacitor-1.4.0.x86_64.rpm wget https://dl.influxdata.com/telegraf/releases/telegraf-1.5.1-1.x86_64.rpm wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-1.5.tar.gz
Github repo for a python client for influxdb ias available at influxdb-python. Get latest release v.5.0.0 (as of Jan 2018)
wget https://github.com/influxdata/influxdb-python/archive/v5.0.0.tar.gz
influxdb-python dependencies
for influxdb pytz: https://pypi.python.org/pypi/pytz dateutil: https://pypi.python.org/pypi/python-dateutil requests: wget https://github.com/requests/requests/archive/v2.18.4.tar.gz for requests: urllib3: https://pypi.python.org/pypi/urllib3 chardet: https://pypi.python.org/pypi/chardet certifi: https://pypi.python.org/pypi/certifi idna: https://pypi.python.org/pypi/certifi
for chronograf dashboard import/export use jq.
NOTE: influxdb-python may not work with influxdb RPM version 1.4.2 but is stateds to work with version 1.2.4. Both RPMs are available in the roll.
- Tstat
- Tstat logs post processing
- Tstat logs files structure
- Fast Data Transfer - FDT
- FDT examples
- InfluxData products
- store data with InfluxDB
- graph and visualize data with Chronograph
- use custom logic with Kapacitor
- Using InfluxDB with Grafana
To build the roll, execute :
# ./bootstarp.sh # make roll
The fisrt command downloads source distribution from doogle drive.
A successful build will create tstat-*.x86_64*.iso
file.
To add this roll to the existing cluster, execute these instructions on a Rocks frontend:
# rocks add roll tstat-*.x86_64.disk1.iso # rocks enable roll tstat # (cd /export/rocks/install; rocks create distro) # rocks run roll tstat > add-roll.sh # bash add-roll.sh
- The tstat software is installed in /opt/tstat
- A usersguide is provided with the distribution and the files names are modified
to fit the rocks roll documentation, otherwise all ithe info is intact.
Roll usersguide is installed in
/var/www/html/roll-documentation/tstat
Read the original users guide for inforation on how to create config files and run tstat.
To run with histogram for public interface on eth5 and save output in traces/ :
/opt/tstat/bin/tstat -N l.conf -l -i eth5 -H tcp-histo.conf -s traces
File l.conf
10.1.1.0/24 67.58.51.191/255.255.255.224
File tcp-histo.conf
include profile_tcpdata include profile_flows include profile_cpu include L7_TCP_num_in include L7_TCP_num_out include tcp_thru_lf_s2c include tcp_thru_lf_c2s include tcp_thru_s2c include tcp_thru_c2s include tcp_tot_time include tcp_opts_MPTCP include tcp_opts_TS include tcp_opts_WS include tcp_opts_SACK include tcp_port_src_loc include tcp_port_src_out include tcp_port_src_in include ip_protocol_loc include ip_protocol_out include ip_protocol_in
To Run with RRD :
/opt/tstat/bin/tstat -R -l -N l.conf -H histo.conf -i eth5 -s traces2 -r traces2
File histo.conf
include ip_len_loc include ip_bitrate_loc include udp_bitrate_loc include udp_bitrate_out include udp_bitrate_in include L7_UDP_num_loc include L7_UDP_num_in include L7_UDP_num_out
See Influxdata chronograf docs
to create new canned measurent layout use new_apps.sh See info in https://github.com/influxdata/chronograf/blob/master/canned/README.md
export dashboards (from google search results)
SRC=http://your-src-server:8888/chronograf/v1/dashboards DST=http://your-dst-server:8888/chronograf/v1/dashboards curl -Ss $SRC|jq -r '.dashboards[]|@json' |while IFS= read -r dashboard; \ do echo $dashboard > f; curl -X POST -H "Accept: application/json" -d @f $DST; done
the server's REST API documentation is in swagger as a swagger.json file that is at server's "/docs" endpoint http://$server:$port/docs
see all API endpoints at http://$server:$port/chronograf/v1/
See jq website for jq info