graphite-project / carbon

Carbon is one of the components of Graphite, and is responsible for receiving metrics over the network and writing them down to disk using a storage backend.
http://graphite.readthedocs.org/
Apache License 2.0
1.5k stars 490 forks source link

[Q]Handling of duplicate values #916

Closed Lokanath-Cell closed 3 years ago

Lokanath-Cell commented 3 years ago

Hi,

Can you guys let me know how duplicate values with same namespace , Value and Time are handled by Carbon, Will they be written in to Whisper DB or rejected? We have some cases where duplicate values are expected and want to know if there is build in redundancy mechanism?

Thank you Best Regards

deniszh commented 3 years ago

Hi @Lokanath-Cell ,

Data in whisper storage is bound to slots. So, if you have 2 measurements which come to same slot only last one will be saved. E.g. if your resolution is 1 minute all measurements for specific metric for that particular minute will collapsed into single value - last one. If all fields - name, value and time - are the same that's not really matter for storage, additional load will be only applied to network and CPU, up to some extent.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.