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

Automation for enabling APM #1

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
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
16 changes: 16 additions & 0 deletions sb-hol/enableapm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

# Apply Cert-Manager
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.14.3/cert-manager.yaml

# Apply K8 OpenTelemetry Operator
kubectl apply -f https://github.com/open-telemetry/opentelemetry-operator/releases/latest/download/opentelemetry-operator.yaml

# Configure APM agent using K8 operator
kubectl apply -f ~/oci-devlive-2024/sb-hol/customapmresource.yaml

# Appyly APM java agent through the K8 namespace
kubectl apply -f ~/oci-devlive-2024/sb-hol/apmnamespace.yaml

# Redeploy application
kubectl apply -f ~/oci-devlive-2024/sb-hol/wstore.yaml
4 changes: 0 additions & 4 deletions sb-hol/wstore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ spec:
value: file:/spring/wstore.properties
- name: spring.web.resources.static-locations
value: file:/spring/static/
- name: apm.dataupload.endpoint
value: <apm-endpoint>
- name: apm.public.datakey
value: <apm-private-data-key>
- name: winStore.services.adservice
value: http://${WSTORE_BACKEND_SERVICE_HOST}:${WSTORE_BACKEND_SERVICE_PORT}/adService/prodId
---
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/admessage/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM openjdk:17-oracle
WORKDIR /spring
COPY target/AdMessage-1.0.1.jar ./AdMessage.jar
COPY target/AdMessage-1.0.0.jar ./AdMessage.jar
COPY application.properties application.properties
ENTRYPOINT ["java","-jar","./AdMessage.jar","--spring.config.location=file:/spring/application.properties"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.