Hi!
I'am installed elastic+ APM Server in OKD 4.7. All work ok.
Added agent to application deployment by manifest
containers:
- env:
- name: JAVA_TOOL_OPTIONS
value: -javaagent:/elastic/apm/agent/elastic-apm-agent.jar
- name: ELASTIC_APM_SERVER_URLS
value: http://xxx.xxx.xxx.xxx:8200/
- name: ELASTIC_APM_LOG_LEVEL
value: INFO
- name: ELASTIC_APM_SERVICE_NAME
value: "test-status"
- name: ELASTIC_APM_SECRET_TOKEN
value: ***********
- name: ELASTIC_APM_APPLICATION_PACKAGES
value: com.mytestapp.card
Test Java App class
package com.mytestapp.card;
import org.apache.camel.spring.boot.CamelSpringBootApplicationController;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ApplicationContext;
/**
* Main app class.
*/
@EnableConfigurationProperties
@SpringBootApplication
public class CardApp {
public static void main(String[] args) {
ApplicationContext applicationContext = new SpringApplication(CardApp.class).run(args);
CamelSpringBootApplicationController applicationController = applicationContext
.getBean(CamelSpringBootApplicationController.class);
applicationController.run();
}
}
Java Agent is running and connected,
2021-09-02 10:59:40,983 [main] INFO co.elastic.apm.agent.util.JmxUtils - Found JVM-specific OperatingSystemMXBean interface: com.sun.management.OperatingSystemMXBean
2021-09-02 10:59:41,277 [main] INFO co.elastic.apm.agent.configuration.StartupInfo - Starting Elastic APM 1.25.0 as test-status on Java 1.8.0_212 Runtime version: 1.8.0_212-b04 VM version: 25.212-b04 (Oracle Corporation) Linux 5.13.4-200.fc34.x86_64
2021-09-02 10:59:41,278 [main] INFO co.elastic.apm.agent.configuration.StartupInfo - service_name: 'test-status' (source: Environment Variables)
2021-09-02 10:59:41,278 [main] INFO co.elastic.apm.agent.configuration.StartupInfo - secret_token: 'XXXX' (source: Environment Variables)
2021-09-02 10:59:41,279 [main] INFO co.elastic.apm.agent.configuration.StartupInfo - server_urls: 'http://xxx.xxx.xxx.xxx:8200' (source: Environment Variables)
2021-09-02 10:59:41,279 [main] INFO co.elastic.apm.agent.configuration.StartupInfo - application_packages: 'com.mytestapp.card' (source: Environment Variables)
2021-09-02 10:59:47,657 [main] INFO co.elastic.apm.agent.impl.ElasticApmTracer - Tracer switched to RUNNING state
2021-09-02 10:59:47,927 [elastic-apm-server-healthcheck] INFO co.elastic.apm.agent.report.ApmServerHealthChecker - Elastic APM server is available: { "build_date": "2021-07-29T19:55:24Z", "build_sha": "af26b5a744b6af9bcccb04fade6435241ab91f43", "version": "7.14.0"}
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.1.1.RELEASE)
2021-09-02 10:59:51.024 INFO 8 --- [ main] com.mytestapp.card.CardApp : Starting CardApp on test-status-1-tmj2h with PID 8 (/opt/app/app.jar started by 1000680000 in /)
2021-09-02 10:59:51.037 DEBUG 8 --- [ main] com.mytestapp.card.CardApp : Running with Spring Boot v2.1.1.RELEASE, Spring v5.1.3.RELEASE
2021-09-02 10:59:51.037 INFO 8 --- [ main] com.mytestapp.card.CardApp : The following profiles are active: test-dev
........
In kibana i see Service test-status and all default parameters
But no any transactions. Why??? What i do wrong???
Kibana version: 7.14
Elasticsearch version: 7.14
APM Server version: 7.14
APM Agent language and version: 1.25