Updated main.go to register the postgres and NATS sinks in addition to the stdout sink.
All checks were successful
ci/woodpecker/push/build-image Pipeline was successful
All checks were successful
ci/woodpecker/push/build-image Pipeline was successful
This commit is contained in:
@@ -69,6 +69,12 @@ sinks:
|
||||
driver: stdout
|
||||
params: {}
|
||||
|
||||
- name: nats_weatherfeeder
|
||||
driver: nats
|
||||
params:
|
||||
url: nats://nats:4222
|
||||
exchange: weatherfeeder
|
||||
|
||||
# - name: logfile
|
||||
# driver: file
|
||||
# params:
|
||||
@@ -78,5 +84,8 @@ routes:
|
||||
- sink: stdout
|
||||
kinds: ["observation", "forecast", "alert"]
|
||||
|
||||
- sink: nats_weatherfeeder
|
||||
kinds: ["observation", "forecast", "alert"]
|
||||
|
||||
# - sink: logfile
|
||||
# kinds: ["observation", "alert", "forecast"]
|
||||
|
||||
Reference in New Issue
Block a user