AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Dashboard displays "Average upstream response time" 1000x larger than value returned by /control/stats

Open MaTaOCNX opened this issue 4 months ago • 4 comments

Prerequisites

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_

MaTaOCNX avatar Jul 14 '26 10:07 MaTaOCNX

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.

sofvaskina avatar Jul 14 '26 14:07 sofvaskina

Here's screenshot which include Lang and version

Image

MaTaOCNX avatar Jul 15 '26 03:07 MaTaOCNX

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)

sofvaskina avatar Jul 15 '26 08:07 sofvaskina

I'll mark this request as resolved. If you have any questions, feel free to reopen it.

sofvaskina avatar Jul 16 '26 08:07 sofvaskina