numbat-metrics / numbat-haproxy

HAProxy producer for Numbat
MIT License
0 stars 1 forks source link

Compute deltas between certain HAProxy stats #4

Closed mmalecki closed 8 years ago

mmalecki commented 8 years ago

For some statistics (for example, number of 2xx's) HAProxy gives us totals from its entire lifetime, where for graphing and analysis we only care about deltas between intervals.

cc @ceejbot

ceejbot commented 8 years ago

:sheep: Am not entirely certain about throwing in delta() because you might want to bail & move on & not blow up there, but meh. It would be a pretty pathological state you're in where that error happens anyway.

mmalecki commented 8 years ago

@ceejbot I think that literally isn't possible - operations there are sequential with no async activity happening between them. Now that I think about this, I'll remove that check. The error, if that were to happen, would be super obvious and we can definitely do with less code clutter. I'll remove and merge.