Commit Graph

26 Commits

Author SHA1 Message Date
shivam
08d7f3dd52 Fixed the csv_to_influx : no attribute RecordInflux error and InfluxRequest needs time in utc format and not in string format
Signed-off-by: shivam <shivam.thakur@candelatech.com>
2022-03-21 23:17:48 +05:30
Matthew Stidham
4e7e8b9360 1. Updating argparse commands so they include flags
2. Create check_argparse which allows us to check which flags are or are not included in argparse statements.

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-09-21 16:13:07 -07:00
Matthew Stidham
36400e003d Making it so that lanforge-scripts can work if the repository isn't named exactly the same way
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-09-17 15:29:15 -07:00
erinnerim
1d7578251c Updates to import statements:
- Import importlib, os, and sys to each python script.
 - Append "lanforge-scripts" root directory to the system path, allowing each script to be called from an antecedent directory. e.g.
if 'lanforge-scripts' not in sys.path:
    sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../../../")))
 - All statements of the form 'from <module> import <class>' replace with:
<module> = importlib.import_module("lanforge-scripts.<directory>.<module>")
<class> = <module>.<class>
2021-09-15 16:17:16 -07:00
Matthew Stidham
fe861156cc Refactoring code so that it refers to the new RecordInflux script
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-09-01 10:42:14 -07:00
Matthew Stidham
40fde97861 Major Grafana Dashboard script restructuring
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-08-31 15:55:36 -07:00
Matthew Stidham
d44d87fce2 Check to make sure that column variables exist in table before grabbing data
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-07-23 09:36:06 -07:00
Matthew Stidham
53015a5501 Updating to make better Ghost posts, with more details in the first table, and enabling reading test_tags from the kpi.csv files.
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-07-22 15:27:20 -07:00
Matthew Stidham
2828bd077b Add failure message when a KPI is not found in a folder for GhostRequest
Automatic script to run influx, grafana, and ghost from wifi capacity and dataplane.

Minor fix in csv_to_influx for correcting missing values

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-07-21 14:19:21 -07:00
Chuck SmileyRekiere
8bb4e74b77 csv_to_influx.py : replace 'NaN' with '0' , NaN not accepted
Not a Number by influx.

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-07-17 16:31:36 -06:00
Matthew Stidham
ae2e95723c CSVReader splits on tabs, not commas, and replace NaN with 0x0 in csv file swhen reporting to influx
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-07-14 16:05:56 -07:00
Matthew Stidham
7e3575b481 Removing LFClibase from influx2 script
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-07-08 11:47:17 -07:00
Matthew Stidham
f95bcf3948 correct csv file naming in csv_to_influx.py
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-06-25 13:53:26 -07:00
Matthew Stidham
23bafa7b34 additional variables for csv to influx parsing
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-05-13 15:10:36 -07:00
Matthew Stidham
7913b22096 Better csv reading funciton
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-05-12 20:07:44 -07:00
Matthew Stidham
79fb905fd7 Building Grafana automation
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-05-07 16:59:04 -07:00
Matthew Stidham
c2cc40708a Properly load scenario, run wifi capacity test, scp kpi file to localhost, and save to grafana.
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-05-06 10:43:09 -07:00
Matthew Stidham
a0d7e2d523 Create new Influx dashboards from a CSV
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-05-04 16:05:41 -07:00
Matthew Stidham
6e7f4e1fb1 Create csv_to_grafana.py and build dependencies
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-04-22 16:54:58 -07:00
Matthew Stidham
2790c42a7a influx variables need to have a default value of None
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-04-20 12:39:40 -07:00
Ben Greear
280099b8b2 cv-capacity: Support importing kpi.csv directly into influxdb
And update example command to what works for me on the c7-graphana
instance.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-17 16:18:04 -07:00
Matthew Stidham
a9fb064002 CSV to influx uses a while loop to write data to Influx
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-04-16 15:00:26 -07:00
Matthew Stidham
aeb638d91b Used seconds instead of milliseconds on first commit
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-04-15 17:06:48 -07:00
Matthew Stidham
c3b3f8a161 make csv_to_influx work and make test_ipv4_variable_time work properly
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-04-15 16:58:49 -07:00
Matthew Stidham
6a0dd64c33 Correct scriptname variable in csvtoinflux
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-04-15 10:20:59 -07:00
Matthew Stidham
7f1800fb55 create csv_to_influx.py
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-04-15 10:20:59 -07:00