diff --git a/Dockerfile b/Dockerfile index bce8c3bd..f990e1be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,9 +21,11 @@ USER user:user WORKDIR /app/ ARG EXTRACTED=/workspace/app/target/extracted - +# AI agent ADD --chown=user https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.1/applicationinsights-agent-3.4.1.jar ./applicationinsights-agent.jar COPY --chown=user applicationinsights.json ./applicationinsights.json +# ELK apm agent +ADD --chown=user https://search.maven.org/remotecontent?filepath=co/elastic/apm/elastic-apm-agent/1.38.0/elastic-apm-agent-1.38.0.jar ./apm-elk-agent.jar COPY --from=build --chown=user ${EXTRACTED}/dependencies/ ./ RUN true @@ -35,4 +37,4 @@ COPY --from=build --chown=user ${EXTRACTED}/application/ ./ RUN true -ENTRYPOINT ["java","-javaagent:applicationinsights-agent.jar","org.springframework.boot.loader.JarLauncher"] \ No newline at end of file +ENTRYPOINT ["java","-javaagent:apm-elk-agent.jar","-javaagent:applicationinsights-agent.jar","org.springframework.boot.loader.JarLauncher"] \ No newline at end of file diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 8b79135e..553ff69a 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -78,7 +78,13 @@ microservice-chart: NODO_PER_PM_URI: /nodo/nodo-per-pm/v1/checkPosition NODO_READ_TIMEOUT: "10000" NODO_CONNECTION_TIMEOUT: "10000" + ELASTIC_APM_SERVICE_NAME: pagopa-ecommerce-payment-requests-service + ELASTIC_APM_APPLICATION_PACKAGES: it.pagopa.ecommerce.payment.requests + ELASTIC_APM_SERVER_URL: http://quickstart-apm-http.elastic-system.svc:8200 + ELASTIC_APM_LOG_SENDING: "true" + #ELASTIC_APM_DATA_STREAMS_ENABLED: "false" envSecret: + ELASTIC_APM_SECRET_TOKEN: elastic-apm-secret-token REDIS_PASSWORD: redis-ecommerce-password APPLICATIONINSIGHTS_CONNECTION_STRING: applicationinsights-connection-string NODO_CONNECTION_STRING: nodo-connection-string