go-dnscollector icon indicating copy to clipboard operation
go-dnscollector copied to clipboard

Incorrect reporting in Prometheus stats - received_bytes_total

Open johnhtodd opened this issue 1 year ago • 0 comments

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.

johnhtodd avatar Dec 15 '23 06:12 johnhtodd