I started building a custom analytics solution like this, you basically passed all the data you wanted to it (from however disparate sources you like), and you could write custom Lua scripts to process them in whatever way you wanted. It had a pretty simple widget/graph API that allowed you to basically return JSON to be turned into a full dashboard.
I didn't manage to get anyone to want to try it out in the year I was looking for potential customers, so I shut it down in the end.