dokploy icon indicating copy to clipboard operation
dokploy copied to clipboard

Monitor problem

Open midgogo opened this issue 11 months ago • 3 comments

To Reproduce

I found two issues:

  1. If there are two services, where the name of A is a prefix of B, then A's monitoring logs will be mixed with B's data. For example: myapp and myapp-test.
  2. There is an issue with the Y-axis upper limit of the monitoring, causing values exceeding the upper limit to be displayed as 0.

Current vs. Expected behavior

none

Provide environment information

Cloud version

Which area(s) are affected? (Select all that apply)

Cloud Version

Are you deploying the applications where Dokploy is installed or on a remote server?

Remote server

Additional context

No response

Will you send a PR to fix it?

No

midgogo avatar Dec 07 '25 08:12 midgogo

The problem 2 reproduce screenshot:

Image

midgogo avatar Dec 07 '25 08:12 midgogo

Can you provide more details? How are you configuring your applications and monitoring settings?

Siumauricio avatar Dec 07 '25 09:12 Siumauricio

https://github.com/Dokploy/dokploy/blob/f84c65912143658d5d4d5ec6985b6353c92dbc15/apps/monitoring/database/containers.go#L50-L66 It looks like the issue might be in this code snippet; using like for fuzzy matching will cause logs from both containers with overlapping names to be retrieved. Specifically, if the name of service A is a prefix of the name of service B, for example, myapp and myapp-test, then the monitoring logs of service A will be mixed with the data of service B.

midgogo avatar Dec 07 '25 12:12 midgogo