You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, in my app I don't use any kind of DB, but I want to serialize metrics to the file using getMetricsAsJSON every minute or after each event. Then in case I need to release a new version or restart my app I want read data from the file and continue count metrics. I found that I can use registerMetric and pass instance of Counter/Gauge/etc class but not the data from the file right away. Any elegant way I can de-serialize data on restart? Or the only option I have is read from the file, loop through the data and create instances and push them to registerMetric?
Thank you
The text was updated successfully, but these errors were encountered:
Hi, in my app I don't use any kind of DB, but I want to serialize metrics to the file using
getMetricsAsJSON
every minute or after each event. Then in case I need to release a new version or restart my app I want read data from the file and continue count metrics. I found that I can useregisterMetric
and pass instance of Counter/Gauge/etc class but not the data from the file right away. Any elegant way I can de-serialize data on restart? Or the only option I have is read from the file, loop through the data and create instances and push them toregisterMetric
?Thank you
The text was updated successfully, but these errors were encountered: