-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add guide for running the visualization (#376)
closes #375
- Loading branch information
Showing
13 changed files
with
204 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
api_key = "<randomly generate this, alphanumeric>" | ||
|
||
[discovery] | ||
method = "dns" | ||
service_port = 3002 | ||
query = "opentogethertube" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
api_key = "<randomly generate this>" | ||
|
||
[discovery] | ||
method = "manual" | ||
|
||
[[discovery.monoliths]] | ||
host = "localhost" | ||
port = 3002 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
collect_interval = "5s" | ||
balancer_api_key = "<balancer's api key>" | ||
|
||
[discovery] | ||
method = "dns" | ||
service_port = 8081 | ||
query = "balancer" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
collect_interval = "5s" | ||
balancer_api_key = "<balancer's api key>" | ||
|
||
[discovery] | ||
method = "manual" | ||
|
||
[[discovery.monoliths]] | ||
host = "localhost" | ||
port = 8081 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Terminal 0 - OTT | ||
docker-compose -f docker/with-balancer.docker-compose.yml up -d | ||
|
||
# Terminal 1 - Grafana | ||
yarn workspace ott-vis server | ||
|
||
# Terminal 2 - ott-vis-panel - only if panel has changed | ||
yarn workspace ott-vis-panel run dev | ||
|
||
# Terminal 3 - ott-vis-datasource - only if datasource has changed | ||
yarn workspace ott-vis-datasource run dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Terminal 0 - Balancer | ||
cargo run --bin ott-balancer-bin -- --config-path env/balancer.toml | ||
|
||
# Terminal 1 - Monolith | ||
yarn run start | ||
|
||
# Terminal 2 - Collector | ||
cargo run --bin ott-collector -- --config-path env/collector.toml | ||
|
||
# Terminal 3 - Grafana | ||
yarn workspace ott-vis server | ||
|
||
# Terminal 4 - ott-vis-panel - only if panel has changed | ||
yarn workspace ott-vis-panel run dev | ||
|
||
# Terminal 5 - ott-vis-datasource - only if datasource has changed | ||
yarn workspace ott-vis-datasource run dev |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@startuml | ||
node Browser { | ||
portout http | ||
} | ||
|
||
node Grafana { | ||
portin "Listens on 3500" as grafanalisten | ||
|
||
component Datasource { | ||
portout "http" as datasourcehttp | ||
} | ||
} | ||
|
||
node OTT { | ||
portin "Collector on 8000" as COLLECTOR_PORT | ||
portin "Balancer on 8080" as BALANCER_PORT | ||
} | ||
|
||
http --> grafanalisten | ||
datasourcehttp --> COLLECTOR_PORT | ||
http --> BALANCER_PORT | ||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@startuml | ||
node Browser { | ||
portout http | ||
} | ||
|
||
node Grafana { | ||
portin "Listens on 3500" as grafanalisten | ||
|
||
component Datasource { | ||
portout "http" as datasourcehttp | ||
} | ||
} | ||
|
||
folder OTT { | ||
node Collector { | ||
portin "Listens on 8000" as COLLECTOR_PORT | ||
portout "http" as collectorhttp | ||
} | ||
|
||
node Balancer { | ||
portin "BALANCER_PORT=8081" as BALANCER_PORT | ||
portout http_proxy | ||
portout monolith | ||
} | ||
|
||
node Monolith { | ||
portin "PORT=3000" as PORT | ||
portin "BALANCING_PORT=3002" as BALANCING_PORT | ||
} | ||
} | ||
|
||
http --> grafanalisten | ||
datasourcehttp --> COLLECTOR_PORT | ||
collectorhttp --> BALANCER_PORT | ||
http_proxy --> PORT | ||
monolith --> BALANCING_PORT | ||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters