https://signoz.io logo
#support
Title
# support
a

anand h

06/09/2022, 9:19 AM
Hello, My Application is not showing up in "Metrics" tab in frontend. I am new to Signoz I have locally setup my application and signoz. I can see my traces in the "traces" tab but metrics are not showing up. My application is a tomcat webapp. My env variables are
export CATALINA_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -javaagent:/Users/anand/libs/opentelemetry-javaagent.jar"
export OTEL_RESOURCE_ATTRIBUTES=service.name=MyApp
export OTEL_METRICS_EXPORTER=otlp
if I change the OTEL_METRICS_EXPORTER to "logging" I can see the metrics getting logged.
p

Pranay

06/09/2022, 9:56 AM
@anand h Can you application connect with SigNoz installation? - you can check with instructions mentioned here - https://signoz.io/docs/install/troubleshooting/
a

anand h

06/09/2022, 10:21 AM
Yes . My application can connect with my signoz installation. I am saying this because I can see the traces(in the frontend) that I am producing in my application. And the trouble shooting tool says the following.
/troubleshoot checkEndpoint --endpoint=localhost:4317
2022-06-09T15:46:29.675+0530	INFO	workspace/main.go:28	STARTING!
2022-06-09T15:46:29.675+0530	INFO	checkEndpoint/checkEndpoint.go:41	checking reachability of SigNoz endpoint
2022-06-09T15:46:29.680+0530	INFO	workspace/main.go:46	Successfully sent sample data to signoz ...
p

Pranay

06/09/2022, 10:58 AM
I see. @Srikanth Chekuri would you have more insights on this?
s

Srikanth Chekuri

06/09/2022, 11:38 AM
@anand h do you not see any services at all or jus one of many services is missing?
a

anand h

06/09/2022, 11:52 AM
@Srikanth Chekuri This is my Metrics view from frontend
You can see my service "MyApp" under Services in Traces tab
p

Pranay

06/09/2022, 11:58 AM
@anand h can you try changing the time period from top right corner in metrics page to
1 day
or
1 week
The metrics page only shows apps which had some spans/requests in the selected time period
a

anand h

06/09/2022, 12:02 PM
@Pranay I have just tried it. It is not working. Still I am seeing just the default four apps.
s

Srikanth Chekuri

06/09/2022, 12:15 PM
@anand h Couple of things to clarify. The "Metrics" tab isn't really the OTLP metrics exported from application. This page contains the metrics generated from trace data. And Only applications with span kind server are show here in this tab but traces tab contains all of them. Is it possible for you yo share the response payload of individual trace of myApp?
👍 2
a

Alexei Zenin

06/09/2022, 1:53 PM
Metrics tab is a bit misleading of a name, its more like the service tab which is created from the traces from what I understand. To access metrics outside of that page you can create dashboards and need to know the metric name
👍 1
a

anand h

06/13/2022, 7:05 AM
@Alexei Zenin Understood. I think I have confused signoz metrics with OpenTelemetry Metrics.
p

Pranay

06/13/2022, 11:29 AM
thanks @Alexei Zenin for helping Anand on this. Your point is right, the tab names are a but confusing currently. I have added an issues for the same https://github.com/SigNoz/signoz/issues/1249
👍 1
4 Views