Giter VIP home page Giter VIP logo

3par-performance's Introduction

3par-Performance

Performance Scripts for parsing 3par statistics See https://wordpress.com/post/allanmcaleavy.com/956 You will need to have influxdb and Grafana installed

You will need a datasource created in grafana for your influxdb named after your array

Once you have this then import the json files and select this as your datasource.

This is the same process as for the XIV scripts - https://wordpress.com/post/allanmcaleavy.com/16

3par_hosts.py

Script to parse statvlun aggregate host data into influx batch format.


./3par_hosts.py statvlun.out > batch
/usr/bin/curl -i -XPOST 'http://<influx_db>:8086/write?db=<3PAR DBNAME>&precision=s' --data-binary @batch

## Eaxample data.. 
$ grep -i SERVERA batch
HostIO,HostIO=servera,type=iops value=1990 1505502061
HostBW,HostBW=servera,type=mb value=48 1505502061
HostRT,HostRT=servera,type=ms value=3.34 1505502061
HostIOSZ,HostIOSZ=servera,type=iosz value=228.0 1505502061
HostQ,HostQ=servera,type=qls value=32 1505502061
HostIO,HostIO=servera,type=riops value=1856 1505502061
HostBW,HostBW=servera,type=rmb value=40 1505502061
HostRT,HostRT=servera,type=rms value=2.94 1505502061
HostIOSZ,HostIOSZ=servera,type=riosz value=228.1 1505502061
HostIO,HostIO=servera,type=wiops value=134 1505502061
HostBW,HostBW=servera,type=wmb value=8 1505502061
HostRT,HostRT=servera,type=wms value=4.13 1505502061
HostIOSZ,HostIOSZ=servera,type=wiosz value=67.3 1505502061

3par_vols.py

Script to parse statvlun aggregate volume data into influx batch format.


./3par_vols.py statvlun.out > batch
/usr/bin/curl -i -XPOST 'http://<influx_db>:8086/write?db=<3PAR DBNAME>&precision=s' --data-binary @batch

## Eaxample data.. 
$ grep -i VOLA batch
VolIO,VolIO=vola,type=iops value=150 1505502061
VolBW,VolBW=vola,type=mb value=6 1505502061
VolRT,VolRT=vola,type=ms value=11.94 1505502061
VolIOSZ,VolIOSZ=vola,type=iosz value=308.1 1505502061
VolQ,VolQ=vola,type=qls value=0 1505502061
VolIO,VolIO=vola,type=riops value=6 1505502061
VolBW,VolBW=vola,type=rmb value=1 1505502061
VolRT,VolRT=vola,type=rms value=4.96 1505502061
VolIOSZ,VolIOSZ=vola,type=riosz value=430.5 1505502061
VolIO,VolIO=vola,type=wiops value=140 1505502061
VolBW,VolBW=vola,type=wmb value=4 1505502061
VolRT,VolRT=vola,type=wms value=11.94 1505502061
VolIOSZ,VolIOSZ=vola,type=wiosz value=38.2 1505502061

3par_ports_cpu.py

requires files named stacpu.out statcmp.out and statport-host.out to be in the local directory.

./3par_ports_cpu.py > batch
/usr/bin/curl -i -XPOST 'http://<influx_db>:8086/write?db=<3PAR DBNAME>&precision=s' --data-binary @batch

3par-performance's People

Contributors

mcaleavya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

3par-performance's Issues

3par_hosts.py KeyError

Hi There,

Getting this issue when trying to run the 3par_hosts.py script against the statvlun.out file

Traceback (most recent call last):
File "./3par_hosts.py", line 152, in
(k.lower(), result[k]['r_curio'], ts))
KeyError: 'r_curio'

Thanks in Advance

Some Questions:

  1. The Readme url about wordpress can not access, could you please update it ?

  2. Could you please add prometheus support ?

  3. Could you please explain how do you get the file like statvlun.out ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.