-
Notifications
You must be signed in to change notification settings - Fork 241
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
fix: multi-node metrics working #9486
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
e08989f
x
ludamad 03ff27b
x
ludamad fc40b0d
small ci fix; get load balancer url helper function ; allow otel inje…
ludamad 380713d
.
ludamad 11b41b7
.
ludamad c6ddaf3
.
ludamad 92d1e4b
-
ludamad 1ebfe9b
lead
ludamad 1960d6b
Merge remote-tracking branch 'origin/master'
ludamad 0738e89
deploy_spartan.sh prod changes
ludamad 35e2a98
validator.sh
ludamad f477cd3
telemetry for winston
ludamad f83ed70
negative patterns in core logger
ludamad 739acc7
negative patterns in core logger
ludamad 45be95d
yarn project working
ludamad 137b324
yarn project working
ludamad 8fe411c
metrics
ludamad 50b9c7a
revert
ludamad 48067cf
missing file
ludamad 9b7215d
missing file
ludamad 7efb469
metrics in native testnet script
ludamad 5fb0973
telemetry for winston
ludamad 6cb4b46
fix metrics
ludamad fc299f3
Update install.sh
ludamad 587a58e
updates
ludamad 8638eb7
Merge remote-tracking branch 'origin/ad/metrics-working' into ad/metr…
ludamad ef41a4d
rev
ludamad 0b9baed
-
ludamad 4c138ed
Merge branch 'master' into ad/metrics-working
ludamad 734c205
formatting
ludamad ec0a3d6
Merge remote-tracking branch 'origin/ad/metrics-working' into ad/metr…
ludamad 90bf69d
cleaner
ludamad c900476
Update logger.ts
ludamad d6787cf
Update post_deploy_spartan.sh
ludamad d862ba4
Update post_deploy_spartan.sh
ludamad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,25 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
NAMESPACE=${1:-staging} | ||
|
||
echo "Trying to port forward. NOTE: Must be using a production k8s context with metrics chart." | ||
|
||
# Helper function to get load balancer URL based on namespace and service name | ||
function get_load_balancer_url() { | ||
local namespace=$1 | ||
local service_name=$2 | ||
kubectl get svc -n $namespace -o jsonpath="{.items[?(@.metadata.name=='$service_name')].status.loadBalancer.ingress[0].hostname}" | ||
} | ||
|
||
# Fetch the service URLs based on the namespace for injection in the test-transfer.sh | ||
OTEL_URL=http://$(get_load_balancer_url metrics metrics-opentelemetry-collector):4318 | ||
|
||
export OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=$OTEL_URL/v1/metrics | ||
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=$OTEL_URL/v1/trace | ||
export OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=$OTEL_URL/v1/logs | ||
export LOG_JSON=1 | ||
|
||
# re-enter script dir | ||
cd $(dirname "${BASH_SOURCE[0]}") | ||
./run_native_testnet.sh $@ |
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
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
helm upgrade metrics . -n metrics --values "./values/prod.yaml" --install --create-namespace --atomic | ||
cd "$(dirname "${BASH_SOURCE[0]}")" | ||
|
||
helm upgrade metrics . -n metrics --values "./values/prod.yaml" --install --create-namespace --atomic $@ |
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
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,41 @@ | ||
#!/bin/bash | ||
# Targets a running cluster and deploys example contracts for testing | ||
set -eu | ||
set -o pipefail | ||
|
||
echo "Bootstrapping network with test contracts" | ||
|
||
NAMESPACE=${1:-spartan} | ||
TAG=${2:-latest} | ||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
||
if [ -z "$NAMESPACE" ]; then | ||
echo "Usage: $0 (optional: <namespace>)" | ||
echo "Example: $0 devnet" | ||
exit 1 | ||
fi | ||
|
||
# Helper function to get load balancer URL based on namespace and service name | ||
function get_load_balancer_url() { | ||
local namespace=$1 | ||
local service_name=$2 | ||
kubectl get svc -n $namespace -o jsonpath="{.items[?(@.metadata.name=='$service_name')].status.loadBalancer.ingress[0].hostname}" | ||
} | ||
|
||
# Fetch the service URLs based on the namespace for injection in the test-transfer.sh | ||
export BOOTNODE_URL=http://$(get_load_balancer_url $NAMESPACE "$NAMESPACE-aztec-network-boot-node-lb-tcp"):8080 | ||
export PXE_URL=http://$(get_load_balancer_url $NAMESPACE "$NAMESPACE-aztec-network-pxe-lb"):8080 | ||
export ETHEREUM_HOST=http://$(get_load_balancer_url $NAMESPACE "$NAMESPACE-aztec-network-ethereum-lb"):8545 | ||
|
||
echo "BOOTNODE_URL: $BOOTNODE_URL" | ||
echo "PXE_URL: $PXE_URL" | ||
echo "ETHEREUM_HOST: $ETHEREUM_HOST" | ||
|
||
echo "Bootstrapping contracts for test network. NOTE: This took one hour last run." | ||
# hack to ensure L2 contracts are considered deployed | ||
docker run aztecprotocol/aztec:$TAG bootstrap-network \ | ||
--rpc-url $BOOTNODE_URL \ | ||
--l1-rpc-url $ETHEREUM_HOST \ | ||
--l1-chain-id 31337 \ | ||
--l1-private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 \ | ||
--json | tee ./basic_contracts.json |
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need to add the above to the prover node yaml.