Skip to content
Snippets Groups Projects
Verified Commit 78a45370 authored by David Hoese's avatar David Hoese
Browse files

Add missing --influxdb-token flag in README

parent 16e1075b
No related branches found
No related tags found
No related merge requests found
...@@ -133,14 +133,14 @@ Install averaging tasks to create average fields in the metobs_realtime bucket: ...@@ -133,14 +133,14 @@ Install averaging tasks to create average fields in the metobs_realtime bucket:
.. code-block:: bash .. code-block:: bash
python -m metobscommon.influxdb create_tasks python -m metobscommon.influxdb create_tasks --token <READ_WRITE_TOKEN>
Backfill InfluxDB Database Backfill InfluxDB Database
-------------------------- --------------------------
Insert data from an old tower file: Insert data from an old tower file:
python -m aosstower.level_00.influxdb -vvv --bulk 5000 /data1/raw/aoss/tower/2018/05/08/aoss_tower.2018-05-08.ascii python -m aosstower.level_00.influxdb -vvv --bulk 5000 --influxdb-token <READ_WRITE_TOKEN> /data1/raw/aoss/tower/2018/05/08/aoss_tower.2018-05-08.ascii
The above command sends data in blocks of 5000 records. This is to improve The above command sends data in blocks of 5000 records. This is to improve
performance of sending data to the InfluxDB instead of sending one record performance of sending data to the InfluxDB instead of sending one record
...@@ -148,7 +148,7 @@ at a time. A bulk value of 5000-10000 is preferred. ...@@ -148,7 +148,7 @@ at a time. A bulk value of 5000-10000 is preferred.
Compute the averages for 5 second tower and data: Compute the averages for 5 second tower and data:
python -m metobscommon.influxdb -vvv run_manual_average --stations aoss.tower -s 2018-05-07T00:00:00 -e 2018-05-08T22:00:00 -d 1m 5m 1h python -m metobscommon.influxdb -vvv run_manual_average --stations aoss.tower -s 2018-05-07T00:00:00 -e 2018-05-08T22:00:00 -d 1m 5m 1h --influxdb-token <READ_WRITE_TOKEN>
Note the above computes the 1m, 5m, and 1h averages. The time range (-s/-e) Note the above computes the 1m, 5m, and 1h averages. The time range (-s/-e)
must be at whole intervals for the average intervals specified otherwise must be at whole intervals for the average intervals specified otherwise
...@@ -159,7 +159,7 @@ use a large amount of memory. ...@@ -159,7 +159,7 @@ use a large amount of memory.
To insert a series of tower files: To insert a series of tower files:
find /data1/raw/mendota/buoy/2018/ -name "*.ascii" -print0 | sort -z | xargs -r0 -n1 python -m aosstower.level_00.influxdb -vvv --bulk 5000 find /data1/raw/mendota/buoy/2018/ -name "*.ascii" -print0 | sort -z | xargs -r0 -n1 python -m aosstower.level_00.influxdb -vvv --bulk 5000 --influxdb-token <READ_WRITE_TOKEN>
The above command sorts the files by name which is important for the best The above command sorts the files by name which is important for the best
performance. performance.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment