Monitor problem
To Reproduce
I found two issues:
- 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.
- 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
The problem 2 reproduce screenshot:
Can you provide more details? How are you configuring your applications and monitoring settings?
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.