This message was deleted.
s
This message was deleted.
p
cool. are you running this on a linux VM or mac?
d
this is a linux vm
p
ok
can you try running this - https://github.com/signoz/troubleshoot
what output do you get?
d
yes
let me see
p
curl -sL <https://raw.githubusercontent.com/SigNoz/troubleshoot/main/scripts/install.sh> | bash
d
i must execute the command
Copy code
docker run -it --rm signoz/troubleshoot checkEndpoint --endpoint=localhost:4317
?
oh, i see
p
is the fastapi application also running in the same VM?
or in a different place?
d
yes, in the same vm
p
ok
cool
docker run -it --rm signoz/troubleshoot checkEndpoint --endpoint=localhost:4317
ok.
you are running fastapi app in docker right?
d
yes
I will show the command
p
docker run -d --name fastapi-container \
-e OTEL_METRICS_EXPORTER='none' \
-e OTEL_RESOURCE_ATTRIBUTES='service.name=fastapiApp' \
-e OTEL_EXPORTER_OTLP_ENDPOINT='<http://172.17.0.1:4317>' \
-p 5002:5002 sample-fastapi-app
can you run the above command. I have changed the otel endpoint
d
ok
i will kill the current app
p
yes
d
and execute this one
p
yes please
d
i did it
p
after running the above docker run command, try calling some APIs in the fastapi app to generate load
d
i am using the docs page
of the fastapi
is it enough?
p
should be - try making 5-6 call
in ~1min - check SigNoz dashboard
d
it worked
that is awesome
p
Awesome
d
thank you very much
for your support
p
🎉
if I may ask, what is the use case you are trying to solve?
d
yes, you can
the fastapi, after some time of use, get very slow
in the beggining of the start
of the docker
p
i see
d
it is very fast
later, slow
p
so you want to understand why it is getting slow?
d
yes
i wanna see the amount of users
or
i suspect of leak
p
got it. trace page should be able to help you in that
what is the request per second this app is handling?
d
that is awesome
until now
a used a tool to see the memory that the python app is using
and i see that a query produced by sqlalchemy
increases the memory
and it did not give back
the allocated space
even after the delete of object
and query
p
got it
is this app used in a company or in a personal project?
d
It is a company
in Brazil
p
got it.
Cool - try the app, and let me know if we can help you in any other way
d
I would like to thank you
p
just ping in #C01HWQ1R0BC
d
for your support
ok
it was very helpful
p
sure 🙂 would love any feedback on the app - anything you find good or see something weird - will help us make it better
have a great day
d
you too
🙂
Hello Pranay
is it possible to show the source ip in this grid?
in such a way that we do not need to click in a specific message to see it?
p
hey @User, no - as of now the grid is not customizable currently. Whats the use case you are trying to solve with source IP in grid? Do you want to explore traces based on IPs they are coming from?
d
Actually, no
we have several dockers (with their ips)
and we want to know which docker (with their app) is requesting the server
a
Hey @User, you mean multiple applications are hosted across different VM (with docker) and seeing spans generated from those IPs? I don't think application sends IP by default, or do they 🤔?
d
Hello @User. In the packet that is transferred between the source and destination, we have the layer 3 (network). This can be used to get the source ip. For instance, each span has this info, but i wanted it in another grid of the app to simplify the view.
a
got it...by grid you mean a column beside
date
,
service
,
operation
and
duration
? Or filtering panels on left side? Would you please create an issue for this? That way we can track that publically and others might show their interest in this feature too. I remember someone else also requesting very similar feature
If IP is part of every span then, you should be able to filter the IPs from the
tags
filtering section at top (as in attached image). The
ip
should be suggested in the
key
part and you can type in the ip to filter by in
value
(currently value suggestion is not there in tags). I know this is not exactly what you asked for but I just wanted to let you know and check if IP filtering can be done there.