AdguardTeam / AdguardTeam/AdGuardHome

Statistics do not add up or match upstream logs

Open
#7,578 4 comments 0 reactions 1 assignee Claimed by @Chinaski1 View on GitHub
Priority: P4
Dominant language
TypeScript
Stars
36.9k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

### Prerequisites

- [x] I have checked the [Wiki](https://github.com/AdguardTeam/AdGuardHome/wiki) and [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions/categories/q-a) 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](https://github.com/AdguardTeam/AdGuardHome/discussions/categories/q-a)

- [x] I have set up AdGuard Home correctly and [configured clients to use it](https://github.com/AdguardTeam/AdGuardHome/wiki/Clients). (Use the [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions/categories/q-a) for help with installing and configuring clients.)

### Platform (OS and CPU architecture)

Linux, MIPS64 LE

### Installation

GitHub releases or script from README

### Setup

On a router, DHCP is handled by the router

### AdGuard Home version

v0.108.0-b.62

### Action

- General stats over past 30 days show 2.1M requests.
- Top upstreams are way off and they don't match the stats from the upstreams, e.g. ControlD as reported by AGH shows 162K requests, but looking at the actual ControlD stats on their side, there were 1.4M requests over the past month. This is ~10x difference.

I do have `optimistic caching` and `parallel requests` enabled in AGH, but still the stats for top upstreams are way off and they don't match the actual requests seen by the upstream.

Not sure whether there is a reasonable explanation for this or a bug where it is literally off by a factor of 10?

![Image](https://github.com/user-attachments/assets/2a11acb3-06e7-4268-ac76-9f9e03f0ed94)

First 192.168 upstream below is the local LAN DHCP+DNS server that only serves requests for the local LAN domain.

![Image](https://github.com/user-attachments/assets/11a8aad0-78cf-40b0-aba5-f2e068493877)

ControlD Stats:

![Image](https://github.com/user-attachments/assets/cdc4e6b5-5af1-4edc-b972-217f2d17269b)

### Expected result

Stats should match (within some small margin of error).

### Actual result

Stats do not match actual requests seen by the upstreams, they are way off by ~10x.

### Additional information and/or screenshots

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.