dashbitco / broadway_dashboard

Keep track of your Broadway pipelines from Phoenix LiveDashboard
https://elixir-broadway.org/
Apache License 2.0
213 stars 17 forks source link

Use monotonic time for workload calculations #6

Closed philss closed 3 years ago

philss commented 3 years ago

This is a fix in the workload/idle time calculation that was using the "system time" from broadway telemetry measurements. The system time does not work for us because it can "jump" backward in order to fix itself with the OS and monotonic time.

See https://erlang.org/doc/man/erlang.html#system_time-0 for more details.

Closes https://github.com/dashbitco/broadway_dashboard/issues/5