You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 2
Next »
01. 사전조건
02. applicationinsights-agent 설정
02-02. Spring Boot Application에 'ApplicationInsights-agent' 폴더를 만들고 jar파일을 위치 시킵니다.
02-03. JVM환경변수로 javaagent를 설정합니다.
02-04. Spring Boot Application을 실행하면, Java Agent관련 로그가 확인 됩니다.
"C:\Program Files\Java\jdk-11.0.2\bin\java.exe" -javaagent:C:\workspace\reactive-shorturl-webui\ApplicationInsights-agent\applicationinsights-agent-3.0.0.jar -javaagent:C:\Users\sansae\AppData\Local\JetBrains\Toolbox\apps\IDEA-C\ch-0\202.8194.7\lib\idea_rt.jar=54632:C:\Users\sansae\AppData\Local\JetBrains\Toolbox\apps\IDEA-C\ch-0\202.8194.7\bin -Dfile.encoding=UTF-8
~~~~~~~~~~~~~~~~~~~~~~~ 중략 ~~~~~~~~~~~~~~~~~~~~~~~
2021-01-04 12:20:41.147+09 INFO c.m.applicationinsights.agent - ApplicationInsights Java Agent started successfully
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.3.7.RELEASE)
2021-01-02 12:20:44.929 INFO 6312 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 19ms. Found 0 Redis repository interfaces.
2021-01-02 12:20:47.585 WARN 6312 --- [ main] ion$DefaultTemplateResolverConfiguration : Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
2021-01-02 12:20:49.115 INFO 6312 --- [ main] o.s.b.web.embedded.netty.NettyWebServer : Netty started on port(s): 8080
2021-01-02 12:20:49.130 INFO 6312 --- [ main] com.sansae.shorturl.ShorturlApplication : Started ShorturlApplication in 7.332 seconds (JVM running for 18.768)
03. Application Insights 확인
03-01. Application map