Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
Read_from_Kairos_Component
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dasharatha.vamshi
Read_from_Kairos_Component
Commits
6b814467
Commit
6b814467
authored
Feb 12, 2021
by
Akshay G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug Fix
parent
4f7c01a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
README.md
README.md
+11
-1
scripts/common/config_parser.py
scripts/common/config_parser.py
+6
-4
No files found.
README.md
View file @
6b814467
# Multipipeline Kairos Read Component for Batch Pipelines
## Pass in the configurations:
##
#
Pass in the configurations:
```
python
{
"kairosdb_url"
:
"http://192.168.0.207:8080"
,
...
...
@@ -10,4 +10,14 @@
"end_absolute"
:
"30/11/2020 00:00:00"
,
"shared_volume"
:
"/mnt"
}
```
### Run Docker Container mounting the same directory to which the csv file is to be written
```
docker run -v /mnt:/mnt -e config='{"kairosdb_url": "http://192.168.0.207:8080",' \
'"metric_name": "ilens.live_data.raw",' \
'"tag_hierarchy": "site_153$dept_1006$line_220$equipment_1258$tag_5790",' \
'"start_absolute": "01/10/2020 00:00:00",' \
'"end_absolute": "30/11/2020 00:00:00",' \
'"shared_volume": "/mnt"}' batch-multi-karios-read-component:v0.1
```
\ No newline at end of file
scripts/common/config_parser.py
View file @
6b814467
...
...
@@ -4,10 +4,12 @@ import sys
import
json
import
yaml
# os.environ['config'] = '{"kairosdb_url": "http://192.168.0.207:8080","metric_name": "ilens.live_data.raw",' \
# '"tag_hierarchy": "site_153$dept_1006$line_220$equipment_1258$tag_5790", "start_absolute": ' \
# '"01/10/2020 ' \
# '00:00:00","end_absolute": "30/11/2020 00:00:00","shared_volume": "/mnt"}'
# os.environ['config'] = '{"kairosdb_url": "http://192.168.0.207:8080",' \
# '"metric_name": "ilens.live_data.raw",' \
# '"tag_hierarchy": "site_153$dept_1006$line_220$equipment_1258$tag_5790",' \
# '"start_absolute": "01/10/2020 00:00:00",' \
# '"end_absolute": "30/11/2020 00:00:00",' \
# '"shared_volume": "/mnt"}'
config_path
=
os
.
path
.
join
(
os
.
getcwd
(),
"conf"
,
"configuration.yml"
)
if
os
.
path
.
exists
(
config_path
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment