jhipster / jhipster-lite

JHipster Lite ⚡ is a development platform to generate, develop & deploy modern web applications & microservices architecture, step by step - using Hexagonal Architecture :gem:
https://lite.jhipster.tech
Apache License 2.0
452 stars 207 forks source link

Send usage stats to the cloud #4566

Open DamnClin opened 1 year ago

DamnClin commented 1 year ago

Discussing with @murdos we though that it might be a good idea to send usage statistics to the cloud. That mean adding a dedicated handler to send usage to the deployed version (and a property to disable that if needed).

@jdubois where are we on stats persistence on the deployed instance?

jdubois commented 1 year ago

We're nowhere because I didn't work on it. What you did should be very easy to implement on my side.

Then I'm wondering now if we shouldn't have some dedicated service that can do reporting and graphs... For JHipster we still have https://yeoman.io/misc/insight working (nobody remembers this but me, probably!!), and this gives super nice charts and dashboards. Because the issue is not just sending the data, but also how can we analyse it.

DamnClin commented 1 year ago

I have some issue created to build dashboards from the stats we get :). I think this can be in the JHlite application since it's a cool feature for custom jhlite instances (the ones created from the custom-jhlite module and were you can build your own modules)

pascalgrimaud commented 1 year ago

I think this ticket can be closed, as it's not so important to have stats in the JHLite instance in the cloud Unless I'm wrong What do you think @DamnClin ? Should we let this ticket opened?

jdubois commented 1 year ago

Yes it's my fault, I still need to create the MongoDB instance to get the stats.

pascalgrimaud commented 1 year ago

@jdubois : what's the cheaper? the MongoDB instance or a SQL instance (like PostgreSQL or MySQL)

jdubois commented 1 year ago

I wanted to use the MongoDB API on top of Azure CosmosDB. There is a free tier that should be enough for us, so my goal is that this would be free :-)