Skip to content

Commit 3f46382

Browse files
authored
Celestial demo setup (#158)
*Issue #, if available:* *Description of changes:* - The existing services are grouped by Tier, Application, Team - Change Events: Adds the scenario in audit-service for recuring deployments for good and bad revision, thus ilustrating deployment. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent 0df72cb commit 3f46382

36 files changed

+3364
-234
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Steps
2+
3+
### 1. Click 'Application Map'
4+
5+
In the left panel, under Application Signals, click 'Application Map'.
6+
7+
### 2. Open dropdown named 'Related Services'
8+
Click to the dropdown box in the 'Group By' section and click on it with lable 'Related Services'
9+
10+
**Constraints:**
11+
- You MUST ensure not to click on 'Manage groups'
12+
13+
### 3. Select 'Tier' from dropdown
14+
15+
From the dropdown list, select_dropdown option 'Tier'
16+
17+
### 4. Verify 'Tier' in the container
18+
19+
Verify boxes with names 'Tier-1 ', 'Tier-2','Tier-3' and 'Tier-4' are present
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## Steps
2+
3+
### 1. Click 'Services'
4+
5+
In the left panel, under Application Signals, click 'Services'.
6+
7+
### 2. Search for 'Application = Audit' services
8+
9+
In the search field with placeholder text 'Search and filter', type 'Application = Audit' and press Enter.
10+
11+
**Constraints:**
12+
- You MUST press Enter after entering this text
13+
14+
15+
### 3. Verify services in the main panel
16+
17+
Verify the service with name 'audit-service' is present in table
18+
19+
**Constraints:**
20+
- You must verify that 1 service is present
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## Steps
2+
3+
### 1. Click 'Application Map'
4+
5+
In the left panel, under Application Signals, click 'Application Map'.
6+
7+
### 2. Open dropdown named 'Related Services'
8+
Click to the dropdown box in the 'Group By' section and click on it with lable 'Related Services'
9+
10+
**Constraints:**
11+
- You MUST ensure not to click on 'Manage groups'
12+
13+
### 3. Select 'Tier' from dropdown
14+
15+
From the dropdown list, select_dropdown option 'Tier'
16+
17+
### 4. Look 'Tier' in the container
18+
19+
Look for 'Tier-1 ', 'Tier-2','Tier-3' and 'Tier-4' these are Tier tiles REMEMBER it.
20+
21+
### 5. Click on breaching Tier with Priority
22+
Click on Tier tile which has 'SLI breach' or is 'Red in color'
23+
24+
**Constraints:**
25+
- You MUST ensure to keep the Priority in mind ie. Tier-1 >Tier-2 >Tier-3 >Tier-4
26+
- You MUST ensure to Click on the hyperlink of Tier
27+
28+
29+
### 6. Filter Breaching Services using 'Group and filter' panel
30+
Click on the 'Breaching SLI' checkbox from the panel
31+
32+
### 7. View the Insights for the failures
33+
- Identify the tile with the text in upper right corner of 'SLI Breach'
34+
- Click on the hyperlink on the text 'View Insights' of that tile
35+
- Navigate to the drawer opened on the right hand side which MUST have the same service details as that of on the tile
36+
37+
### 8. Check the Operational Audit for more information
38+
Look for section 'Operational Audit' in the drawer
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## Steps
2+
3+
### 1. Click 'Services'
4+
5+
In the left panel, under Application Signals, click 'Services'.
6+
7+
### 2. Search for 'audit-service'
8+
9+
In the search field with placeholder text 'Search and filter', type 'audit-service' and press Enter.
10+
11+
**Constraints:**
12+
- You MUST press Enter after entering this text
13+
14+
### 3. Click 'audit-service'
15+
16+
Click the hyperlink 'audit-service' in the 'Services' list in the main panel.
17+
18+
### 4. Verify 'Changes' section
19+
20+
Verify that the 'Changes' section is non empty and has 'Last Deployment' populated
21+
22+
### 5. Check the deployment
23+
24+
Click on the hyperlink 'View Details' next to the 'Latest Deployment' in the 'Changes' section, this should be on 'CloudTrail' page
25+
26+
### 6. Verify the 'UpdateFunctionCode' event
27+
Veify the event name contains 'UpdateFunctionCode' from the 'Details' section

cdk/eks/eks-cdk.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ if [[ "$ACTION" == "deploy" ]]; then
6767
./destroy.sh
6868
exit 1
6969
fi
70+
cd ../../lambda-audit-service/cdk
71+
if ./cdk.sh deploy; then
72+
echo "Lambda audit service was deployed successfully"
73+
else
74+
echo "Lambda audit service deployment failed"
75+
./cdk.sh destroy
76+
exit 1
77+
fi
7078
cd ../../cdk/eks
7179

7280
# update vets service config to use the otlp collector when use-otlp is true
@@ -121,6 +129,10 @@ elif [[ "$ACTION" == "destroy" ]]; then
121129
cd ../../lambda-petclinic/cdk
122130
./destroy.sh
123131
echo "Destroy complete for all stacks in the lambda app"
132+
echo "Starting CDK destroy for audit service"
133+
cd ../../lambda-audit-service/cdk
134+
./cdk.sh destroy
135+
echo "Destroy complete for audit service"
124136
else
125137
echo "Invalid action: $ACTION. Please use 'synth', 'deploy', or 'destroy'."
126138
exit 1

cdk/eks/lib/manifests/sample-app/api-gateway-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,7 @@ spec:
5252
value: "${APP_MONITOR_IDENTITY_POOL_ID}"
5353
- name: APP_MONITOR_ID
5454
value: "${APP_MONITOR_ID}"
55+
- name: OTEL_RESOURCE_ATTRIBUTES
56+
value: Application=PetClinic,Team=PlatformTeam,Tier=Tier-1,aws.application_signals.metric_resource_keys=Application&Team&Tier
5557
restartPolicy: Always
5658
status: {}

cdk/eks/lib/manifests/sample-app/billing-service-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ spec:
4141
value: <HOST>
4242
- name: DB_SERVICE_PORT
4343
value: '5432'
44+
- name: OTEL_RESOURCE_ATTRIBUTES
45+
value: Application=Payment,Team=RevenueTeam,Tier=Tier-1,aws.application_signals.metric_resource_keys=Application&Team&Tier
4446
# command: ["sh", "-c"]
4547
# args: ['manage.py', 'runserver', '0.0.0.0:8000']
4648
command: ['sh', '-c']

cdk/eks/lib/manifests/sample-app/customers-service-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,8 @@ spec:
4040
name: customers-service-java
4141
ports:
4242
- containerPort: 8081
43+
env:
44+
- name: OTEL_RESOURCE_ATTRIBUTES
45+
value: Application=PetClinic,Team=PlatformTeam,Tier=Tier-1,aws.application_signals.metric_resource_keys=Application&Team&Tier
4346
restartPolicy: Always
4447
status: {}

cdk/eks/lib/manifests/sample-app/insurance-service-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ spec:
3939
value: <HOST>
4040
- name: DB_SERVICE_PORT
4141
value: '5432'
42+
- name: OTEL_RESOURCE_ATTRIBUTES
43+
value: Application=Payment,Team=RevenueTeam,Tier=Tier-1,aws.application_signals.metric_resource_keys=Application&Team&Tier
4244
# command: ["sh", "-c"]
4345
# args: ['manage.py', 'runserver', '0.0.0.0:8000']
4446
command: ['sh', '-c']

cdk/eks/lib/manifests/sample-app/nutrition-service-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ spec:
2424
value: http://discovery-server:8761/eureka
2525
- name: MONGO_URI
2626
value: mongodb://admin:admin@mongodb:27017/
27+
- name: OTEL_RESOURCE_ATTRIBUTES
28+
value: Application=PetClinic,Team=AnalyticsTeam,Tier=Tier-1,aws.application_signals.metric_resource_keys=Application&Team&Tier
2729
ports:
2830
- containerPort: 3000
2931
imagePullPolicy: Always

0 commit comments

Comments
 (0)