Alexander Koutmos
Alexander Koutmos
Great minds think alike :D. Unfortunately my time is spread a little thin these days and I probably won't be able to come back to this for a couple months....
There are a couple of ways to solve this problem. Some of those have been discussed here: https://github.com/beam-telemetry/telemetry_metrics_prometheus_core/issues/41. In short, you will probably need to set up a GenServer cron...
I did something like this in PromEx to solve this exact problem: https://github.com/akoutmos/prom_ex/blob/master/lib/prom_ex/ets_cron_flusher.ex I can pull some of that work directly into this library if you think it would add...
Thanks!
Adding as a note here that this issue should also address the SQL injection issues mentioned in https://github.com/bitfo/timescale/issues/11
We can definitely do that. Those functions can be simple passthroughs to the named argument versions so that we can lean on the same types of validations/type castings in the...
Hrmmm. I will try and write a test with thousands of IDs to see how long it takes. Perhaps it is timing out while trying to format.
I was able to recreate the issue in a test. Working on the fix as time allows :).
This should be fixed in version `0.3.0`!
At the moment unfortunately not as the provided Grafana dashboards are simply EEx-ified JSON definitions and for the most part only swap the prefix keys for labels and timeseries so...