-
-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Anonymous usage tracking #84
Comments
Which data should be transmitted? |
Thanks for volunteering! The full set of data that we are going to transfer is
This issue will be updated with the initial set of metrics, and I pledge to keep the list transparent at all times. |
I like the UX of Syncthing. At first start, you are asked for consent to collect usage data with a preview of that data. There is also a public page with a great visualization of the data: https://data.syncthing.net/ But don't make the mistakes Muse Group did with Audacity like not asking for consent and using Google/Yandex for analytics. audacity/audacity#835 I'm not sure if OpenTelemetry would be a usable tool for that. |
Home Assistant is doing a similar thing. This could be a good starting point: or Octoprint https://github.com/OctoPrint/OctoPrint/blob/027d8f8069b86a7f5e8c185a2d8f294b631c2f08/src/octoprint/plugins/tracking/__init__.py |
Data which would be interesting to collect: every 24h (first on start)
|
we need some server that do collect it & verify it's a legit request ... by do a callback and see if site exist? |
That would require us to "collect" the public address of the instance, but we don't want that as it should be anonymous I guess and it would require them to be public. I recently had a a look at Grafana and InfluxDB for this. I think we should simply create a small GO server which takes HTTP requests and inserts that data into a connected db like InfluxDB. I would create an anonymous id at the first start of a server and save it to the server database. This id (do we even need that 🤔) would be used to send a request every x hours to our server, which simply adds an entry to the database (maybe directly aggregating it in the long term). If we want to "protect" against abuse we could add an ip based limit, like you can only create a tracking id 10 times a day and each tracking id is only allowed to report data every x hours. Somehow like letsencrypt does it. |
Maybe we can also add some popup shown to an admin on the first login asking if he wants to send usage tracking and generate the tracking id after that |
I'd like to ask some things about this again: There's https://github.com/woodpecker-ci/analytics without real activity - do we still want to add usage tracking? To be honest, I don't really see a value in it.
I don't really see how these can be used to improve development.
For these, I can see a value, but this is data that should only be sent once. We can easily do a poll to find out how many users use which backend, which os etc. |
I think it would be still pretty helpful to get more insights about our users. For example we always have to consider if we need to add options on the repo level or the instance level. A user with an instance running on a PI is totally fine updating pipline configs or env vars, for larger companies or communities like codeberg that's often not possible to force all users to a specific way directly and needs a completely different update approach where features like config versions could help. Or things like quotas / user-provided agents would be really helpful for large instance, but probably no pi user cares about limits. We for sure have to provide both, but insides could help us to focus here. We could even do specific things like counting the amount of repos having pipeline option x set, allowing us to decide on actual data if we drop that option or have to keep it / provide an alternative. I however expect the issue that quite a lot of users of the community are against any kind of tracking wherever it be totally public or not, which could make it pretty unreliable for us. |
with consent of course
The text was updated successfully, but these errors were encountered: