You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using xkc to report system metrics, the series length is always 10. And the collector buffer 10 points for each series.
DEBU[0038] mem:data create new entry cpu.6.user in map pkg=k.s.mem
DEBU[0038] mem:data create new entry cpu.total.nice in map pkg=k.s.mem
DEBU[0038] mem:data create new entry cpu.2.system in map pkg=k.s.mem
DEBU[0113] mem:data merge with existing series cpu.0.iowait pkg=k.s.mem
DEBU[0113] length 10 pkg=k.s.mem
DEBU[0113] mem:data merge with existing series cpu.5.irq pkg=k.s.mem
DEBU[0113] length 10 pkg=k.s.mem
But test in series_store_test.go shows it correctly handled merge data, one explanation could be the collector is using same time stamp
TODO
write a test to reproduce this problem
reduce number of series
every time you restart the collector, the length can grow, if you restart collector, the length will become 20, restart collector again, 30.
the collector never reset the points for each series
the serializer has problem, it is not reset? Yes
but the server does not report any error?
Conclusion
the serializer is not reset after each send, and server drop the invalid part silently when parsing JSON
The text was updated successfully, but these errors were encountered:
Related #21
When using
xkc
to report system metrics, the series length is always 10. And the collector buffer 10 points for each series.But test in
series_store_test.go
shows it correctly handled merge data, one explanation could be the collector is using same time stampTODO
Conclusion
The text was updated successfully, but these errors were encountered: