Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MetObsCommon
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MetObs
MetObsCommon
Commits
78a45370
Verified
Commit
78a45370
authored
2 years ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Add missing --influxdb-token flag in README
parent
16e1075b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.rst
+4
-4
4 additions, 4 deletions
README.rst
with
4 additions
and
4 deletions
README.rst
+
4
−
4
View file @
78a45370
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment