A few weeks ago I discovered a bike maintenance tracker app called ProBikeGarage. It allows to register your bikes and components, change components between bikes, set service alerts based on distance, moving time, etc. and also log your services. It integrates with Strava so all components usage is calculated based on your rides.