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

InspectIT not able recognize my application ,need help for fetching service graph on grafana #1524

Open
sowndarya123 opened this issue Sep 22, 2022 · 14 comments
Labels
question Further information is requested

Comments

@sowndarya123
Copy link

I have sample application ,application started with agent but was not recognized by UI .I also tried with pet application .Please help with that

@sowndarya123 sowndarya123 added the question Further information is requested label Sep 22, 2022
@danipaniii
Copy link
Contributor

Hello sowndarya123,
Thanks for your inquiry!
In order to help you I need a couple more information on what you are trying to do.
Are you trying to set up the demo application? And where exactly do you encounter which problems?

@sowndarya123
Copy link
Author

sowndarya123 commented Sep 27, 2022

hi Team..
am trying to set up the demo application .I tried the run the scenario 1 on local docker desktop .Some started but others did not .
Later i tried to run a sample application with CMR and inspectIT UI ,and agent .I see that CMR got started but when the application is started with agent .I dont see my application on inspectIT UI.

I need your quick help on this. Request for one-one if possible

@SaschaBrechmannVHV
Copy link
Contributor

Hi @sowndarya123 ,
inspectIT CRM is the very old Version of inspectIT. Do not use this, until you know what you are doing. This version is not mentained any more!

Use the inspectIT Ocelot Version only.
About your Question: Could you share the logout put from the agent, after you startet the applikation?
do you configured the agent for file based configuration oder http based configuration?
What are your commandline to start the application with the agent?
Regards, Sascha

@sowndarya123
Copy link
Author

Thank you for the clarity on CMR.

2022-09-27 11:24:31.627 INFO [vets-service,,] 18 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_VETS-SERVICE/vets-service:vets-service:8083 - registration status: 204
2022-09-27 11:24:59.139 INFO [vets-service,,] 18 --- [nio-8083-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2022-09-27 11:24:59.140 INFO [vets-service,,] 18 --- [nio-8083-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2022-09-27 11:24:59.153 INFO [vets-service,,] 18 --- [nio-8083-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 13 ms
2022-09-27 11:25:10.313 WARN [vets-service,,] 18 --- [/api/v2/spans}}] z.r.AsyncReporter$BoundedAsyncReporter : Spans were dropped due to exceptions. All subsequent errors will be logged at FINE level.
2022-09-27 11:25:10.318 WARN [vets-service,,] 18 --- [/api/v2/spans}}] z.r.AsyncReporter$BoundedAsyncReporter : Dropped 1 spans due to ResourceAccessException(I/O error on POST request for "http://tracing-server:9411/api/v2/spans": tracing-server; nested exception is java.net.UnknownHostException: tracing-server)

org.springframework.web.client.ResourceAccessException: I/O error on POST request for "http://tracing-server:9411/api/v2/spans": tracing-server; nested exception is java.net.UnknownHostException: tracing-server
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:785)
at org.springframework.cloud.sleuth.zipkin2.ZipkinRestTemplateWrapper.doExecute(ZipkinRestTemplateWrapper.java:69)
at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:660)
at org.springframework.cloud.sleuth.zipkin2.RestTemplateSender.post(RestTemplateSender.java:151)
at org.springframework.cloud.sleuth.zipkin2.RestTemplateSender$HttpPostCall.doExecute(RestTemplateSender.java:169)
at org.springframework.cloud.sleuth.zipkin2.RestTemplateSender$HttpPostCall.doExecute(RestTemplateSender.java:159)
at zipkin2.Call$Base.execute(Call.java:391)
at zipkin2.reporter.AsyncReporter$BoundedAsyncReporter.flush(AsyncReporter.java:299)
at zipkin2.reporter.AsyncReporter$Flusher.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.net.UnknownHostException: tracing-server
at java.base/java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.base/java.net.Socket.connect(Unknown Source)
at java.base/sun.net.NetworkClient.doConnect(Unknown Source)
at java.base/sun.net.www.http.HttpClient.openServer(Unknown Source)
at java.base/sun.net.www.http.HttpClient.openServer(Unknown Source)
at java.base/sun.net.www.http.HttpClient.(Unknown Source)
at java.base/sun.net.www.http.HttpClient.New(Unknown Source)
at java.base/sun.net.www.http.HttpClient.New(Unknown Source)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at org.springframework.http.client.SimpleBufferingClientHttpRequest.executeInternal(SimpleBufferingClientHttpRequest.java:76)
at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)
at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:66)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:776)
... 9 common frames omitted

am looking for service graph to get generated from my application .Need your help on that .

apart from pet application for any sample application what is the prerequisite for the service graph in grafana for any application

@sowndarya123
Copy link
Author

 

EMERGENCY! EUREKA MAY BE INCORRECTLY CLAIMING INSTANCES ARE UP WHEN THEY'RE NOT. RENEWALS ARE LESSER THAN THRESHOLD AND HENCE THE INSTANCES ARE NOT BEING EXPIRED JUST TO BE SAFE.

@SaschaBrechmannVHV
Copy link
Contributor

Hey @sowndarya123 ,
we are NOT YOUR SUPPORT contact. We do not get money from you. So be cool.

Your Logs look wired. Are you exporting to Zipkin ?

@sowndarya123
Copy link
Author

hi Sasha,

Sorry to bother you regarding time..
But am trying this from long time and finally looking out for help. So curious to fix this. I didn't change the code. It had tracing config

@tobiangerstein
Copy link
Contributor

Hi @sowndarya123 as @danipaniii and @SaschaBrechmannVHV already pointed out we need to have more information here :)

@sowndarya123
Copy link
Author

sowndarya123 commented Sep 27, 2022

Hi ,

Am using the official demo environment (https://github.com/inspectIT/inspectit-ocelot-demo )

i dont see a specific container for zipkin on my docker desktop but i see jaeger running .

"level":"info","ts":1664277742.1521714,"caller":"healthcheck/handler.go:129","msg":"Health Check state change","status":"ready"}
{"level":"info","ts":1664277742.1521912,"caller":"app/server.go:276","msg":"Starting GRPC server","port":16685,"addr":":16685"}
{"level":"info","ts":1664277742.1522212,"caller":"app/server.go:257","msg":"Starting HTTP server","port":16686,"addr":":16686"}
{"level":"info","ts":1664277743.1522913,"caller":"channelz/logging.go:50","msg":"[core]Subchannel Connectivity change to CONNECTING","system":"grpc","grpc_log":true}
{"level":"info","ts":1664277743.1523316,"caller":"channelz/logging.go:50","msg":"[core]Subchannel picks a new address ":16685" to connect","system":"grpc","grpc_log":true}
{"level":"info","ts":1664277743.1524496,"caller":"grpclog/component.go:71","msg":"[core]pickfirstBalancer: UpdateSubConnState: 0xc000621080, {CONNECTING }","system":"grpc","grpc_log":true}
{"level":"info","ts":1664277743.152471,"caller":"channelz/logging.go:50","msg":"[core]Channel Connectivity change to CONNECTING","system":"grpc","grpc_log":true}
{"level":"info","ts":1664277743.1526525,"caller":"channelz/logging.go:50","msg":"[core]Subchannel Connectivity change to READY","system":"grpc","grpc_log":true}
{"level":"info","ts":1664277743.1526895,"caller":"grpclog/component.go:71","msg":"[core]pickfirstBalancer: UpdateSubConnState: 0xc000621080, {READY }","system":"grpc","grpc_log":true}
{"level":"info","ts":1664277743.1526976,"caller":"channelz/logging.go:50","msg":"[core]Channel Connectivity change to READY","system":"grpc","grpc_log":true}

@sowndarya123
Copy link
Author

error -logs from API Gateway.

72.22.0.9:8081] The connection observed an error

reactor.netty.http.client.PrematureCloseException: Connection prematurely closed BEFORE response

2022-09-27 13:00:05.402 ERROR [api-gateway,685120f05e6e9dfa,685120f05e6e9dfa] 17 --- [or-http-epoll-4] a.w.r.e.AbstractErrorWebExceptionHandler : [f80eb55e-3] 500 Server Error for HTTP GET "/api/gateway/owners/9"

org.springframework.web.reactive.function.client.WebClientRequestException: Connection prematurely closed BEFORE response; nested exception is reactor.netty.http.client.PrematureCloseException: Connection prematurely closed BEFORE response
at org.springframework.web.reactive.function.client.ExchangeFunctions$DefaultExchangeFunction.lambda$wrapException$9(ExchangeFunctions.java:141)
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
|_ checkpoint ⇢ Request to GET http://customers-service/owners/9 [DefaultWebClient]
|_ checkpoint ⇢ Handler org.springframework.samples.petclinic.api.boundary.web.ApiGatewayController#getOwnerDetails(int) [DispatcherHandler]
|_ checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
|_ checkpoint ⇢ org.springframework.cloud.sleuth.instrument.web.TraceWebFilter [DefaultWebFilterChain]
|_ checkpoint ⇢ org.springframework.boot.actuate.metrics.web.reactive.server.MetricsWebFilter [DefaultWebFilterChain]
|_ checkpoint ⇢ HTTP GET "/api/gateway/owners/9" [ExceptionHandlingWebHandler]
Stack trace:
at org.springframework.web.reactive.function.client.ExchangeFunctions$DefaultExchangeFunction.lambda$wrapException$9(ExchangeFunctions.java:141)
at reactor.core.publisher.MonoErrorSupplied.subscribe(MonoErrorSupplied.java:70)
at reactor.core.publisher.Mono.subscribe(Mono.java:4150)
at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onError(FluxOnErrorResume.java:103)
at reactor.core.publisher.FluxPeek$PeekSubscriber.onError(FluxPeek.java:221)
at reactor.core.publisher.FluxPeek$PeekSubscriber.onError(FluxPeek.java:221)
at reactor.core.publisher.FluxPeek$PeekSubscriber.onError(FluxPeek.java:221)
at reactor.core.publisher.MonoNext$NextSubscriber.onError(MonoNext.java:93)
at reactor.core.publisher.MonoFlatMapMany$FlatMapManyMain.onError(MonoFlatMapMany.java:204)
at reactor.core.publisher.SerializedSubscriber.onError(SerializedSubscriber.java:124)
at reactor.core.publisher.FluxRetryWhen$RetryWhenMainSubscriber.whenError(FluxRetryWhen.java:224)
at reactor.core.publisher.FluxRetryWhen$RetryWhenOtherSubscriber.onError(FluxRetryWhen.java:273)
at reactor.core.publisher.FluxConcatMap$ConcatMapImmediate.drain(FluxConcatMap.java:413)
at reactor.core.publisher.FluxConcatMap$ConcatMapImmediate.onNext(FluxConcatMap.java:250)
at reactor.core.publisher.EmitterProcessor.drain(EmitterProcessor.java:491)
at reactor.core.publisher.EmitterProcessor.tryEmitNext(EmitterProcessor.java:299)
at reactor.core.publisher.SinkManySerialized.tryEmitNext(SinkManySerialized.java:97)
at reactor.core.publisher.InternalManySink.emitNext(InternalManySink.java:27)
at reactor.core.publisher.FluxRetryWhen$RetryWhenMainSubscriber.onError(FluxRetryWhen.java:189)
at reactor.core.publisher.MonoCreate$DefaultMonoSink.error(MonoCreate.java:189)
at reactor.netty.http.client.HttpClientConnect$HttpObserver.onUncaughtException(HttpClientConnect.java:385)
at reactor.netty.ReactorNetty$CompositeConnectionObserver.onUncaughtException(ReactorNetty.java:647)
at reactor.netty.resources.DefaultPooledConnectionProvider$DisposableAcquire.onUncaughtException(DefaultPooledConnectionProvider.java:220)
at reactor.netty.resources.DefaultPooledConnectionProvider$PooledConnection.onUncaughtException(DefaultPooledConnectionProvider.java:468)
at reactor.netty.http.client.HttpClientOperations.onInboundClose(HttpClientOperations.java:290)
at reactor.netty.channel.ChannelOperationsHandler.channelInactive(ChannelOperationsHandler.java:74)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:241)
at io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:81)
at io.netty.handler.codec.http.HttpContentDecoder.channelInactive(HttpContentDecoder.java:235)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:241)
at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelInactive(CombinedChannelDuplexHandler.java:418)
at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:389)
at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:354)
at io.netty.handler.codec.http.HttpClientCodec$Decoder.channelInactive(HttpClientCodec.java:311)
at io.netty.channel.CombinedChannelDuplexHandler.channelInactive(CombinedChannelDuplexHandler.java:221)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:241)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1405)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248)
at io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:901)
at io.netty.channel.AbstractChannel$AbstractUnsafe$8.run(AbstractChannel.java:831)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:384)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: reactor.netty.http.client.PrematureCloseException: Connection prematurely closed BEFORE response

2022-09-27 13:05:05.248 INFO [api-gateway,,] 17 --- [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration
2022-09-27 13:10:05.249 INFO [api-gateway,,] 17 --- [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration
2022-09-27 13:15:05.250 INFO [api-gateway,,] 17 --- [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration
2022-09-27 13:20:05.251 INFO [api-gateway,,] 17 --- [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration
2022-09-27 13:25:05.251 INFO [api-gateway,,] 17 --- [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration
2022-09-27 13:30:05.252 INFO [api-gateway,,] 17 --- [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration
2022-09-27 13:35:05.253 INFO [api-gateway,,] 17 --- [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration

@tobiangerstein
Copy link
Contributor

Can you share the docker-compose file, which you are using?

@sowndarya123
Copy link
Author

version: '3'

services:

Ocelot

Serves as a collector for traces

agent:
image: inspectit/inspectit-ocelot-agent:${INSPECTIT_OCELOT_VERSION}
container_name: agent
deploy:
resources:
limits:
memory: 128M
volumes:
- agent-vol:/agent

Fetches the configuration

ocelot-config-server:
restart: always
image: inspectit/inspectit-ocelot-configurationserver:${INSPECTIT_OCELOT_VERSION}
container_name: ocelot-config-server
deploy:
resources:
limits:
memory: 512M
environment:
- INSPECTIT_CONFIG_SERVER_WORKING_DIRECTORY=/configuration-server
- INSPECTIT_CONFIG_SERVER_DEFAULT_USER_PASSWORD=demo
volumes:
- ./configuration-server:/configuration-server
ports:
- 8090:8090

Self Monitoring

ocelot-eum-server:
restart: always
image: inspectit/inspectit-ocelot-eum-server:${INSPECTIT_OCELOT_VERSION}
container_name: ocelot-eum-server
hostname: ocelot-eum-server
environment:
- INSPECTIT_EUM_SERVER_EXPORTERS_METRICS_PROMETHEUS_ENABLED=ENABLED
- INSPECTIT_EUM_SERVER_EXPORTERS_METRICS_PROMETHEUS_PORT=9097
- INSPECTIT_EUM_SERVER_EXPORTERS_METRICS_PROMETHEUS_HOST=0.0.0.0
- INSPECTIT_EUM_SERVER_EXPORTERS_TRACING_JAEGER_GRPC=jaeger:14250

deploy:
  resources:
    limits:
      memory: 512M
volumes:
  - ./eum-server:/eum-server
ports:
  - 8085:8085
  - 9097:9097

Petclinic

config-server:
restart: always
image: inspectit/spring-petclinic-config-server:${INSPECTIT_PETCLINIC_VERSION}
container_name: config-server
hostname: config-server
environment:
- INSPECTIT_SERVICE_NAME=config-server
- INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration
- INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_ENABLED=ENABLED
- INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_PORT=9096
- INSPECTIT_EXPORTERS_TRACING_JAEGER_URL=http://jaeger:14268/api/traces
deploy:
resources:
limits:
memory: 1024M
depends_on:
- agent
- ocelot-config-server
entrypoint: ["./dockerize", "java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"]
volumes:
- agent-vol:/agent
ports:
- 8888:8888
- 9096:9096

discovery-server:
restart: always
image: inspectit/spring-petclinic-discovery-server:${INSPECTIT_PETCLINIC_VERSION}
container_name: discovery-server
hostname: discovery-server
environment:
- INSPECTIT_SERVICE_NAME=discovery-server
- INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration
- INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_ENABLED=ENABLED
- INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_PORT=9095
- INSPECTIT_EXPORTERS_TRACING_JAEGER_URL=http://jaeger:14268/api/traces
deploy:
resources:
limits:
memory: 1024M
depends_on:
- agent
- ocelot-config-server
- config-server
entrypoint: ["./dockerize","-wait=tcp://config-server:8888","-timeout=120s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"]
volumes:
- agent-vol:/agent
ports:
- 8761:8761
- 9095:9095

customers-service:
restart: always
image: inspectit/spring-petclinic-customers-service:${INSPECTIT_PETCLINIC_VERSION}
container_name: customers-service
hostname: customers-service
environment:
- INSPECTIT_SERVICE_NAME=customers-service
- INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration
- INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_ENABLED=ENABLED
- INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_PORT=9091
- INSPECTIT_EXPORTERS_TRACING_JAEGER_URL=http://jaeger:14268/api/traces
deploy:
resources:
limits:
memory: 1024M
depends_on:
- agent
- ocelot-config-server
- config-server
- discovery-server
entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=120s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"]
volumes:
- agent-vol:/agent
ports:
- 8081:8081
- 9091:9091

visits-service:
restart: always
image: inspectit/spring-petclinic-visits-service:${INSPECTIT_PETCLINIC_VERSION}
container_name: visits-service
hostname: visits-service
environment:
- INSPECTIT_SERVICE_NAME=visits-service
- INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration
- INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_ENABLED=ENABLED
- INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_PORT=9092
- INSPECTIT_EXPORTERS_TRACING_JAEGER_URL=http://jaeger:14268/api/traces
deploy:
resources:
limits:
memory: 1024M
depends_on:
- agent
- ocelot-config-server
- config-server
- discovery-server
entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=120s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"]
volumes:
- agent-vol:/agent
ports:
- 8082:8082
- 9092:9092

vets-service:
restart: always
image: inspectit/spring-petclinic-vets-service:${INSPECTIT_PETCLINIC_VERSION}
container_name: vets-service
hostname: vets-service
environment:
- INSPECTIT_SERVICE_NAME=vets-service
- INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration
- INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_ENABLED=ENABLED
- INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_PORT=9093
- INSPECTIT_EXPORTERS_TRACING_JAEGER_URL=http://jaeger:14268/api/traces
deploy:
resources:
limits:
memory: 1024M
depends_on:
- agent
- ocelot-config-server
- config-server
- discovery-server
entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=120s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"]
volumes:
- agent-vol:/agent
ports:
- 8083:8083
- 9093:9093

api-gateway:
restart: always
image: inspectit/spring-petclinic-api-gateway:${INSPECTIT_PETCLINIC_VERSION}
container_name: api-gateway
hostname: api-gateway
environment:
- INSPECTIT_SERVICE_NAME=api-gateway
- INSPECTIT_CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration
- INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_ENABLED=ENABLED
- INSPECTIT_EXPORTERS_METRICS_PROMETHEUS_PORT=9094
- INSPECTIT_EXPORTERS_TRACING_JAEGER_URL=http://jaeger:14268/api/traces
deploy:
resources:
limits:
memory: 1024M
depends_on:
- agent
- ocelot-config-server
- config-server
- discovery-server

entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=120s","--","java", "-javaagent:/agent/inspectit-ocelot-agent.jar", "org.springframework.boot.loader.JarLauncher"]
volumes:
  - agent-vol:/agent
ports:
  - 8080:8080
  - 9094:9094

Monitoring Backend

Load Generator

Artificial load on Demo

load:
restart: always
image: inspectit/spring-petclinic-load:1.0
container_name: load-generator
hostname: load-generator

Prometheus

Time Series Database & Monitoring

prometheus:
restart: always
image: prom/prometheus:v2.29.1
container_name: prometheus
command:
- '--storage.tsdb.retention.time=7d'
- '--config.file=/etc/prometheus/prometheus.yml'
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- 9090:9090

Jaeger

Collects and visualizes traces

jaeger:
restart: always
image: jaegertracing/all-in-one:1.25.0
container_name: jaeger
ports:
- 16686:16686

Grafana

Dashboarding

grafana:
restart: always
image: grafana/grafana:9.0.2
container_name: grafana
environment:
- GF_PANELS_DISABLE_SANITIZE_HTML=TRUE
- GF_SECURITY_ADMIN_PASSWORD=demo
- GF_PATHS_PROVISIONING=/usr/share/grafana/custom/
- GF_INSTALL_PLUGINS=https://github.com/NovatecConsulting/novatec-service-dependency-graph-panel/releases/download/v4.0.2/novatec-sdg-panel.zip;novatec-sdg-panel
volumes:
- ./grafana/provisioning/prometheus:/usr/share/grafana/custom/
- ./grafana/provisioning/home-dashboard/home.json:/usr/share/grafana/public/dashboards/home.json

ports:
  - 3000:3000

Grafana Loki & Promtail

Make logs available in Grafana

loki:
image: grafana/loki:2.5.0
ports:
- "3100:3100"
command: -config.file=/etc/loki/local-config.yaml

promtail:
image: grafana/promtail:2.5.0
volumes:
- /var/log:/var/log
command: -config.file=/etc/promtail/config.yml

volumes:
agent-vol:

@sowndarya123 sowndarya123 changed the title InspectIT was able not able recognize my application InspectIT not able recognize my application ,need help for fetching service graph on grafana Sep 27, 2022
@heiko-holz
Copy link
Contributor

heiko-holz commented Oct 4, 2022

Hi @sowndarya123,

can you please edit your previous post and use proper code formatting? It is really hard to read your posts when the error logs / configs are not formatted properly.

Also, can you please attach your docker-compose.yaml as a file?

It seams that none of your services is called tracing-server. I assume you have set Jaeger or Zipkin endpoint to http://tracing-server:1411/api/traces in the inspectit Ocelot configuration.

Either change your configuration or rename the Jaeger service in the docker compose file.

@sowndarya123
Copy link
Author

custom-service-logs.txt
visits-service.txt
[vets-service-logs.txt](ht
sdg
tps://github.com/inspectIT/inspectit-ocelot/files/9747267/vets-service-logs.txt)

These are the log files .
I want the service graph to populate for the petapplication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants