Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to run publicly and making OTel optional #106

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@ Learn more by following this sequence of Katas:
1. Third Kata: [Importing Pre-Existing Event Data](katas/003_import_preexisting_event_data.md)
1. Fourth Kata: [Build a Basic Dashboard](katas/004_build_a_basic_dashboard.md)

# Ports

These are the ports that Chorus uses:

* `4000` - Chorus UI
* `9090` - Search "middleware" that handles queries and User Behavior Insights (UBI) data.
* `2021` - Data Prepper - HTTP source for UBI events
* `4900` - Data Prepper
* `21890` - Data Prepper - OTEL trace source for UBI events
* `9200` - OpenSearch
* `5601` - OpenSearch Dashboards

# Useful Commands for Chorus

To start your environment, but still run each command to set up the integrations manually, run:
Expand Down
1 change: 0 additions & 1 deletion chorus_ui/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ var UbiPosition = require('./ts/UbiEvent.ts').UbiPosition;
//######################################
// global variables
const event_server = "http://127.0.0.1:9090"; // Middleware
//const event_server = "http://localhost:2021"; //data prepper
const search_server = "http://localhost:9200"; //open search
const search_credentials = "*:*";
const search_index = 'ecommerce'
Expand Down
12 changes: 8 additions & 4 deletions quickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ offline_lab=false
local_deploy=true
stop=false

hostname_or_public_ip="chorus-opensearch-edition.dev.o19s.com"

while [ ! $# -eq 0 ]
do
case "$1" in
Expand All @@ -53,7 +55,7 @@ do
;;
--online-deployment | -online)
local_deploy=false
echo -e "${MAJOR}Configuring Chorus for chorus-opensearch-edition.dev.o19s.com environment\n${RESET}"
echo -e "${MAJOR}Configuring Chorus for ${hostname_or_public_ip} environment\n${RESET}"
;;
esac
shift
Expand All @@ -67,9 +69,11 @@ fi

if ! $local_deploy; then
echo -e "${MAJOR}Updating configuration files for online deploy${RESET}"
sed -i.bu 's/localhost/chorus-opensearch-edition.dev.o19s.com/g' ./chorus_ui/src/Logs.js
sed -i.bu 's/localhost/chorus-opensearch-edition.dev.o19s.com/g' ./chorus_ui/src/App.js
sed -i.bu 's/localhost/chorus-opensearch-edition.dev.o19s.com/g' ./opensearch/wait-for-os.sh
sed -i.bu "s/localhost/${hostname_or_public_ip}/g" ./chorus_ui/src/Logs.js
sed -i.bu "s/localhost/${hostname_or_public_ip}/g" ./chorus_ui/src/App.js
sed -i.bu "s/127.0.0.1/${hostname_or_public_ip}/g" ./chorus_ui/src/App.js
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we still need the 127.0.01? Or was that the werid case in cors land? Feels like we should just use localhost everywhere IF we can..

sed -i.bu "s/localhost/${hostname_or_public_ip}/g" ./opensearch/wait-for-os.sh
sed -i.bu "s/localhost/${hostname_or_public_ip}/g" ./middleware/app.py
fi

if $stop; then
Expand Down