Dashboard displays "Average upstream response time" 1000x larger than value returned by /control/stats
Prerequisites
-
[x] I have checked the Wiki and Discussions and found no answer
-
[x] I have searched other issues and found no duplicates
-
[x] I want to report a bug and not ask a question or ask for help
-
[x] I have set up AdGuard Home correctly and configured clients to use it. (Use the Discussions for help with installing and configuring clients.)
Platform (OS and CPU architecture)
Linux, AMD64 (aka x86_64)
Installation
GitHub releases or script from README
Setup
On one machine
AdGuard Home version
v0.107.78
Action
Prerequisites
- [x] I have searched existing issues and discussions.
- [x] I believe this is a bug.
Platform
Linux (Ubuntu 24.04)
Installation
GitHub release
Version
v0.107.78
Setup
Single instance
Description
The Dashboard appears to display "Average upstream response time" approximately 1000x larger than the value returned by the REST API.
API response:
GET /control/stats
"top_upstreams_avg_time": [ { "8.8.8.8:53": 5.582750576709503 }, { "1.1.1.1:53": 5.3470093495175846 } ]
Dashboard displays:
8.8.8.8:53 5,583 ms 1.1.1.1:53 5,347 ms
However, direct measurements show the upstreams respond normally:
dig @1.1.1.1 google.com Query time: 14 ms
dig @8.8.8.8 google.com Query time: 40 ms
This suggests either:
- the frontend is interpreting the API values using the wrong unit,
- the API documentation is incorrect,
- or the API and frontend disagree on the units of
top_upstreams_avg_time.
Upstream configuration
upstream_dns:
- 1.1.1.1
- 8.8.8.8
upstream_mode: load_balance
fastest_timeout: 1s
### Expected result
8.8.8.8:53 5.583 ms
1.1.1.1:53 5.347 ms
### Actual result
8.8.8.8:53 5,583 ms
1.1.1.1:53 5,347 ms
### Additional information and/or screenshots
_No response_
Hello. I am unable to reproduce your issue. The monitoring panel displays the correct value, as does the value returned by the REST API. (See screenshots 1 and 2.) Please send me the same screenshots and let me know which interface language you have selected in AdGuardHome.
Here's screenshot which include Lang and version
Please refer to the API documentation. Link to the documentation. On the dashboard, values are displayed in milliseconds, while in the JSON, they are displayed in seconds (See screenshot)
I'll mark this request as resolved. If you have any questions, feel free to reopen it.