Skip to content

Commit

Permalink
🍱 (demos) start example_01
Browse files Browse the repository at this point in the history
  • Loading branch information
davidB committed Apr 1, 2024
1 parent daaa7f0 commit c9f8157
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions demos/example_01/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cdevents/*.json
Empty file added demos/example_01/cdevents/.keep
Empty file.
14 changes: 14 additions & 0 deletions demos/example_01/cdviz-collector.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[sinks.debug]
type = "debug"

[sinks.cdviz_db]
type = "db"
url = "postgresql://cdviz:[email protected]:5432/cdviz"
pool_connections_min = 1
pool_connections_max = 10

[sources.cdevents_folder]
type = "opendal"
kind = "fs"
polling_interval = "10s"
parameters = { root = "./cdevents" }
16 changes: 16 additions & 0 deletions demos/taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,19 @@ tasks:
stack:db-admin:view:
cmds:
- open http://127.0.0.1:5499

cdviz-collector:build:
internal: true
dir: ../cdviz-collector
cmds:
- cargo build

example_01:run:
dir: example_01
deps: [ "cdviz-collector:build" ]
env:
RUST_LOG: "cdviz_collector::sinks=debug,info" # cdviz_collector::sources=debug
OTEL_TRACES_SAMPLER: always_off
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: "http://127.0.0.1:4317"
cmds:
- ../../cdviz-collector/target/debug/cdviz-collector --config ./cdviz-collector.toml

0 comments on commit c9f8157

Please sign in to comment.