Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect reporting in Prometheus stats - received_bytes_total #511

Open
johnhtodd opened this issue Dec 15, 2023 · 0 comments
Open

Incorrect reporting in Prometheus stats - received_bytes_total #511

johnhtodd opened this issue Dec 15, 2023 · 0 comments

Comments

@johnhtodd
Copy link

Describe the bug
It seems that the "received_bytes_total" metric is not correct.

To Reproduce
Look at the Prometheus stats after some short period of time with significant activity via DNSTAP. The received_bytes_total is very far off of what the actual received bytes is actually. What shows as 38k below should be many megabytes given what I see on the DNSTAP stream. I include the "dnscollector_bytes_total" in addition for context (though I have to say I don't understand clearly what that metric means, either - does that mean bytes sent via an interface? Does it include all loggers? Outputs?)

# HELP dnscollector_received_bytes_total The total bytes received
# TYPE dnscollector_received_bytes_total counter
dnscollector_received_bytes_total{stream_id="res210.dev"} 38224

# HELP dnscollector_bytes_total The total bytes received and sent
# TYPE dnscollector_bytes_total counter
dnscollector_bytes_total{stream_id="res210.dev"} 9.0970509e+07

Expected behavior
Correct bytes received should be shown via the counter.

Additional context
This is on the pipeline_mode branch, but I don't think that code is different than main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants