mirror of https://github.com/ekimekim/wubloader
downloader: Track timestamp of latest segment
This gives us a "stream delay" metric. Prom doesn't have any native way to check the current value of a metric, in order to take max(). It only offers increment and set. We reach into some internals to do this in a hacky way, but the cleaner way would be to track the value ourselves and have a prom callback that gets the value. Sigh, I hate this prom library. I might write my own that's less dumb.pull/66/head
parent
e4d3e418c8
commit
73d5941e05
Loading…
Reference in New Issue