From caed45086b2cb34a69aa4cb26cb1929165b26b7f Mon Sep 17 00:00:00 2001 From: Ben Greear Date: Sun, 18 Apr 2021 21:54:23 -0700 Subject: [PATCH] cv-dataplane: Support putting kpi into influxdb. Signed-off-by: Ben Greear --- py-scripts/lf_dataplane_test.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/py-scripts/lf_dataplane_test.py b/py-scripts/lf_dataplane_test.py index 084c3a8c..111fc33b 100755 --- a/py-scripts/lf_dataplane_test.py +++ b/py-scripts/lf_dataplane_test.py @@ -19,7 +19,11 @@ the options and how best to input data. --raw_line 'cust_pkt_sz: 88 1200' \ --raw_line 'directions: DUT Transmit;DUT Receive' \ --raw_line 'traffic_types: UDP;TCP' \ - --test_rig Testbed-01 + --test_rig Testbed-01 --pull_report \ + --influx_host c7-graphana --influx_port 8086 --influx_org Candela \ + --influx_token=-u_Wd-L8o992701QF0c5UmqEp7w7Z7YOMaWLxOMgmHfATJGnQbbmYyNxHBR9PgD6taM_tcxqJl6U8DjU1xINFQ== \ + --influx_bucket ben \ + --influx_tag testbed Ferndale-01 Note: --raw_line 'line contents' will add any setting to the test config. This is @@ -219,7 +223,11 @@ def main(): --raw_line 'cust_pkt_sz: 88 1200' \ --raw_line 'directions: DUT Transmit;DUT Receive' \ --raw_line 'traffic_types: UDP;TCP' \ - --test_rig Testbed-01 + --test_rig Testbed-01 --pull_report \ + --influx_host c7-graphana --influx_port 8086 --influx_org Candela \ + --influx_token=-u_Wd-L8o992701QF0c5UmqEp7w7Z7YOMaWLxOMgmHfATJGnQbbmYyNxHBR9PgD6taM_tcxqJl6U8DjU1xINFQ== \ + --influx_bucket ben \ + --influx_tag testbed Ferndale-01 """ ) @@ -267,6 +275,7 @@ def main(): CV_Test.setup() CV_Test.run() + CV_Test.check_influx_kpi(args) if __name__ == "__main__": main()