.. contents::
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
_InfluxDB
_Chronograph
_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
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.
/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
/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
_
new_apps.sh
_ See info in https://github.com/influxdata/chronograf/blob/master/canned/README.mdSRC=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
at server's "/docs" endpoint http://$server:$port/docs
.. _new_apps.sh : https://github.com/influxdata/chronograf/blob/master/canned/new_apps.sh
.. _Tstat : http://tstat.polito.it .. _Tstat logs files structure: http://tstat.polito.it/measure.shtml#LOG .. _Tstat logs post processing: https://github.com/straverso/tstat-post-processing .. _Fast Data Transfer - FDT: http://monalisa.cern.ch/FDT .. _FDT examples: http://monalisa.cern.ch/FDT/documentation_examples.html .. _InfluxData products: https://www.influxdata.com/products/ .. _InfluxDB : https://www.influxdata.com/time-series-platform/influxdb/ .. _Chronograph : https://www.influxdata.com/time-series-platform/chronograf/ .. _Kapacitor : https://docs.influxdata.com/kapacitor/v1.4/introduction/getting_started/ .. _influxdb-python : https://github.com/influxdata/influxdb-python .. _Influxdata chronograf docs : https://docs.influxdata.com/chronograf/v1.4/introduction/getting-started/ .. _Using InfluxDB with Grafana: http://docs.grafana.org/features/datasources/influxdb/
See jq website
_ for jq info
.. _jq website : https://stedolan.github.io/jq/download/