Urbo watcher module. This module automatically sends a warning or error message when the data is not saved in our databases (Geographic and Carto ones). When the information is not saved in a logic amount of time (that depends on the provider and should be configured) warnings (first) and errors (after when the time configured is exceeded) are sent.
Standard mode:
$ npm run-script start
Debug (live-reload) mode:
$ npm run-script start-dev
Docker:
$ docker build -t geographica/urbo_watcher .
$ docker run -d --name='urbo_watcher' geographica/urbo_watcher npm run-script start
Config file use YAML format.
Preparing file:
$ cp config.example.yml config.yml
Set config params (example):
logging: # Logging configuration parameters
level: DEBUG # Level options: INFO|ERROR|DEBUG. Default: INFO
output: console # Output options: console|file. Default: console
activeServices:
aws: false
email: true
email: # Email Service parameters
server_address: smtp.xxxxxxx.xxxxxxx
port: 587 # example port
secure: false # true for 465, false for other ports
user: [email protected]
password: xxxxxxxxxxxxxx
receivers: [
[email protected],
[email protected],
[email protected],
[email protected],
[email protected]
]
aws: # AWS configuration parameters
aws_key: xxxxxxxxxxxxxxxx
aws_secret: xxxxxxxxxx
sns_region: xxxxxxxxxxx
sns_arn: xxxxxxxxx
pgsql: # Historical Database configuration
host: postgis
user: urbo_admin
password: urbo
database: urbo
port: 5432
carto: # Carto connection configuration
active: true
api_key: XXXXXXXXXX
user: XXXXX
notifications: # Messages Prefix and Sender Mail Address
subj_prefix: Urbo-Watcher
email_address: [email protected]
watcherSchedule: # Watchers configurations. Could be as many as necessary.
- id_watcher: myidwatcher
table: mytable
schema: myschema
column: TimeInstant
update_freq: '*/30 * * * *'
environment: carto|pgsql|both
threshold:
warning: 15
error: 30
Maybe configuring localhost at pgsql using Docker in conjuntion with MAC you could find a problem. In that case, use docker.for.mac.localhost as host of the pgsql configuration.
Content type
Image
Digest
Size
30 MB
Last updated
almost 8 years ago
docker pull geographica/urbo-watcher:production-da12a5b