Skip to content

Commit 4636825

Browse files
authored
Merge pull request #142 from rostilos/1.5.1-rc
feat: Add New Relic configuration files and update deployment scripts…
2 parents 9d0c6b4 + 0b7f440 commit 4636825

3 files changed

Lines changed: 25 additions & 1 deletion

File tree

deployment/ci/server-deploy.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ fi
4848
MISSING_CONFIGS=0
4949
for cfg in \
5050
"$CONFIG_DIR/java-shared/application.properties" \
51+
"$CONFIG_DIR/java-shared/newrelic-web-server.yml" \
52+
"$CONFIG_DIR/java-shared/newrelic-pipeline-agent.yml" \
5153
"$CONFIG_DIR/inference-orchestrator/.env" \
5254
"$CONFIG_DIR/rag-pipeline/.env"; do
5355
if [ ! -f "$cfg" ]; then

deployment/ci/server-init.sh

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,24 @@ else
4141
echo " ○ java-shared/application.properties already exists (skipped)"
4242
fi
4343

44+
# New Relic agent configs (one per Java service — different app_name)
45+
for nr_svc in web-server pipeline-agent; do
46+
NR_FILE="$DEPLOY_DIR/config/java-shared/newrelic-${nr_svc}.yml"
47+
if [ ! -f "$NR_FILE" ]; then
48+
cat > "$NR_FILE" <<SAMPLE
49+
# ============================================================================
50+
# New Relic config for ${nr_svc}
51+
# Download a template: curl -O https://download.newrelic.com/newrelic/java-agent/newrelic-agent/current/newrelic-java.zip
52+
# Then edit with your license_key and app_name
53+
# ============================================================================
54+
SAMPLE
55+
echo " ✓ Created placeholder: java-shared/newrelic-${nr_svc}.yml"
56+
echo " → EDIT THIS FILE with your New Relic license key and app name!"
57+
else
58+
echo " ○ java-shared/newrelic-${nr_svc}.yml already exists (skipped)"
59+
fi
60+
done
61+
4462
for svc in inference-orchestrator rag-pipeline; do
4563
if [ ! -f "$DEPLOY_DIR/config/$svc/.env" ]; then
4664
cat > "$DEPLOY_DIR/config/$svc/.env" <<SAMPLE
@@ -93,7 +111,9 @@ echo " ├── releases/"
93111
echo " │ └── codecrow-images.tar.gz ← uploaded by CI"
94112
echo " └── config/"
95113
echo " ├── java-shared/"
96-
echo " │ ├── application.properties ← YOUR secrets"
114+
echo " │ ├── application.properties ← YOUR secrets"
115+
echo " │ ├── newrelic-web-server.yml ← YOUR New Relic config (web-server)"
116+
echo " │ ├── newrelic-pipeline-agent.yml ← YOUR New Relic config (pipeline-agent)"
97117
echo " │ └── github-private-key/"
98118
echo " │ └── *.pem ← YOUR GitHub App key"
99119
echo " ├── inference-orchestrator/"

deployment/docker-compose.prod.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ services:
9494
- web_logs:/app/logs
9595
- ./config/java-shared/application.properties:/app/config/application.properties
9696
- ./config/java-shared/github-private-key/github-app-private-key.pem:/app/config/github-app-private-key.pem
97+
- ./config/java-shared/newrelic-web-server.yml:/usr/local/newrelic/newrelic.yml:ro
9798
healthcheck:
9899
test: ["CMD", "curl", "-f", "http://localhost:8081/actuator/health"]
99100
interval: 30s
@@ -140,6 +141,7 @@ services:
140141
- pipeline_agent_logs:/app/logs
141142
- ./config/java-shared/application.properties:/app/config/application.properties
142143
- ./config/java-shared/github-private-key/github-app-private-key.pem:/app/config/github-app-private-key.pem
144+
- ./config/java-shared/newrelic-pipeline-agent.yml:/usr/local/newrelic/newrelic.yml:ro
143145
healthcheck:
144146
test: ["CMD", "curl", "-f", "http://localhost:8082/actuator/health"]
145147
interval: 30s

0 commit comments

Comments
 (0)