Open Rperry2174 opened 9 months ago
I started a document to keep track of what we've tracked so far: Pyroscope App Plugin Analytics
we should also consider after a certain amount of time with no usage of a feature should we consider to stop supporting that feature (once we have tracking enabled)
@grafakus add the dashboard link here
Relevant Slack context for Explore Apps: https://raintank-corp.slack.com/archives/C075BDBTX96/p1730979261991289
Implement Analytics Tracking for Backend and Frontend
Now that we have separated out the cloud vs the OSS code we can more easily add things to the code in order to understand user journeys and track usage
Objective
To establish a analytics tracking system to gain insights into:
Proposed Technologies
Fullstory
fullstory is another option https://drive.google.com/file/d/1lXqM9-7rFbpKsFo4TO6nDjlbqQ5-_1l8/view?pli=1
Reach out to chris shih https://raintank-corp.slack.com/archives/C020988GK4H/p1707858775856399
https://docs.google.com/document/d/1Qle6TfzNd9jIIFMxZyKUYlpfJc0E8KIOZIUnJtGrIo8/edit
Metrics app as an example
It is using the rudderstack library and manually adding tracking code throughout. Here's an example: https://github.com/grafana/grafana-adaptive-metrics-app/blob/88875984168a094983818fa1649bad342d4171ee/src/components/PageHeader/index.tsx#L368 Here is a brief overview doc of user tracking https://docs.google.com/document/d/1mORi9tmdCTSShtQoVg3d9mMANVQCrWYGE91aSjzNcEA/edit
https://bi.grafana-ops.net/d/ba52c76b-9c45-45ad-be91-763e8438849c/adaptive-metrics?orgId=1
Requirements
Implementation Phases
Frontend
We are already using Posthog for og-pyroscope-cloud so I believe we can just continue to use this and see if it works. I'm not sure how things will work inside of a grafana environment. Eventually I hope we can switch to faro, but for now we will have to use this as it is more fully featured.
Many things "just work" out of the box so I think we can start by just adding the posthog sdk to cloud profiles page and see waht happens.
Backend
This will likely need to come from somewhere other than the app plugin, but some key metrics to track: