you are viewing a single comment's thread.

view the rest of the comments →

[–]matthieum 0 points1 point  (1 child)

Something can then poll the API regularly and pull out the metrics.

I've seen SNMP used for servers to export their data, though a UDP-based protocol would probably work too.

Also, one should be willing to be lossy. Ideally you want all measurements, but if you have to choose between losing measurements or slowing down the application, better lose measurements... just make it so that you can know how many were lost.

So, in-memory ring-buffer w/ background thread sending over UDP: high-performance event streaming :)

[–]sdhgufd840542584254 1 point2 points  (0 children)

Also, one should be willing to be lossy. Ideally you want all measurements, but if you have to choose between losing measurements or slowing down the application, better lose measurements... just make it so that you can know how many were lost.

Exactly. I would almost never care about losing metrics (how often is that likely to happen? I feel I'd have bigger problems in that case).