Skip to content

Commit

Permalink
fix csv2bufr, fix stack
Browse files Browse the repository at this point in the history
  • Loading branch information
maaikelimper committed Sep 13, 2023
1 parent efc00ca commit 22b359a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 21 deletions.
26 changes: 13 additions & 13 deletions docker-compose.monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ services:
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.retention.time=10d'
# cadvisor to monitor our containers!
cadvisor:
image: gcr.io/cadvisor/cadvisor:v0.45.0
container_name: cadvisor
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /dev/disk:/dev/disk/:ro
depends_on:
- wis2box-management
# uncomment cadvisor to monitor our containers
# cadvisor:
# image: gcr.io/cadvisor/cadvisor:v0.45.0
# container_name: cadvisor
# volumes:
# - /:/rootfs:ro
# - /var/run:/var/run:ro
# - /var/run/docker.sock:/var/run/docker.sock:ro
# - /sys:/sys:ro
# - /var/lib/docker/:/var/lib/docker:ro
# - /dev/disk:/dev/disk/:ro
# depends_on:
# - wis2box-management
# Grafana, graphical monitoring dashboards for wis2box using data from loki and prometheus
grafana:
<<: *logging
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ services:

wis2box-api:
container_name: wis2box-api
image: ghcr.io/wmo-im/wis2box-api:1.0b5
image: wmoim/wis2box-api:wis2box-1.0b5
restart: always
env_file:
- default.env
Expand Down
7 changes: 1 addition & 6 deletions tests/data/data-mappings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ data:
file-pattern: '^.*\.bufr4$'
rou.rnimh.data.core.weather.surface-based-observations.synop:
plugins:
csv:
- plugin: wis2box.data.csv2bufr.ObservationDataCSV2BUFR
template: /data/wis2box/aws_default_mappings.json
notify: true
file-pattern: '^.*.csv$'
txt:
- plugin: wis2box.data.synop2bufr.ObservationDataSYNOP2BUFR
notify: true
Expand All @@ -34,7 +29,7 @@ data:
plugins:
csv:
- plugin: wis2box.data.csv2bufr.ObservationDataCSV2BUFR
template: synop_bufr.json
template: synop_bufr
notify: true
file-pattern: '^WIGOS_(\d-\d+-\d+-\w+)_.*\.csv$'
bufr4:
Expand Down
2 changes: 1 addition & 1 deletion wis2box-management/wis2box/data/csv2bufr.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def transform(self, input_data: Union[Path, bytes],
# execute process
inputs = {
"data": input_bytes.decode(),
"mapping": self.mappings['bufr4'],
"template": self.template,
"channel": self.topic_hierarchy,
"notify": self.enable_notification
}
Expand Down

0 comments on commit 22b359a

Please sign in to comment.