Skip to content
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

Open
Tracked by #869
laszlocph opened this issue Nov 7, 2019 · 10 comments
Open
Tracked by #869

Anonymous usage tracking #84

laszlocph opened this issue Nov 7, 2019 · 10 comments
Labels
feature add new functionality
Milestone

Comments

@laszlocph
Copy link
Member

with consent of course

@AkiraNorthstar
Copy link

Which data should be transmitted?
If you need a tester, then I am happy to help.

@laszlocph
Copy link
Member Author

laszlocph commented Nov 10, 2019

Thanks for volunteering!

The full set of data that we are going to transfer is

  • one part vanity metrics to have things to celebrate. Like how many people run Woodpecker, with what kind of build volume, etc
  • and one part data to support product decisions: version control systems used, or if a certain feature is used etc. Woodpecker needs to form an identity over time and we need to focus efforts on things that are used, or things that are strategic. And we need data to evaluate the strategic decisions.

This issue will be updated with the initial set of metrics, and I pledge to keep the list transparent at all times.

@davidak
Copy link
Contributor

davidak commented Aug 2, 2021

I like the UX of Syncthing. At first start, you are asked for consent to collect usage data with a preview of that data.

Screenshot from 2021-08-02 23-32-02

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
audacity/audacity#889

I'm not sure if OpenTelemetry would be a usable tool for that.

@anbraten
Copy link
Member

anbraten commented Jul 18, 2022

Data which would be interesting to collect:

every 24h (first on start)

  • version
  • users counter
  • active repo counter
  • used forge
  • activated features?
  • executed pipelines counter
  • total pipeline execution time
  • connected agents counter
  • used agent backends
  • server and agent OSes

@6543
Copy link
Member

6543 commented Sep 1, 2022

we need some server that do collect it & verify it's a legit request ... by do a callback and see if site exist?

@anbraten
Copy link
Member

anbraten commented Sep 1, 2022

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.

@anbraten
Copy link
Member

anbraten commented Sep 1, 2022

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

@qwerty287
Copy link
Contributor

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.
From @anbraten's comment about the data that should be sent:

version
users counter
active repo counter
executed pipelines counter
total pipeline execution time
connected agents counter

I don't really see how these can be used to improve development.

used forge
activated features?
used agent backends
server and agent OSes

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.

@anbraten
Copy link
Member

anbraten commented Jan 20, 2024

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.
Using surveys isn't an option for me. Just think if you would want to fill it out yourself or take the who is using wp discussion as a reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature add new functionality
Projects
Status: Backlog
Development

No branches or pull requests

6 participants