Exploring how to do ethical anonymous usage tracking for self hosted projects, and found @foosel's *excellent* system and explanation at https://tracking.octoprint.org/. Thanks Gina, this is awesome ❤️
tracking.octoprint.org - Anonymous Usage Tracking in OctoPrint

Anonymous Usage Tracking in OctoPrint

@Floppy Thank you, I put a lot of thought and work into this and continue to do so, it's great to hear you like the approach 😊
@foosel I do - I've been looking around for good practice, and naturally that led me to you! It's great that all that hard work is out there and visible for others to learn from. ❤️
@foosel I want to introduce something similar for https://InvenTree.org but very hesitant to self-host something that might cause issue for the end users. How do you deal with DDOS protection, loadbalancing and server downtime? Are you using some external service or everything self-managed?

@matmair Everything is self managed and it basically boils down to an nginx endpoint with a custom log, no dedicated service. I just parse logs, and the requests are simple GET with the payload in the query (there's one exception for the list of installed plugins which is a POST with a JSON payload that I also just let nginx log).

If it's down, it's down, the clients have error handling to just shrug it off.

The downside is Elastic being really resource hungry and I want to replace it.

@foosel thank you for the response. Maybe my dayjob has made me to paranoid in this regard. I think I will give it a shot on the weekend.