Add steps for submitting Sourcegraph metric dumps to support
Created by: slimsag
The goal of this PR is to add steps we can link customers with performance/instability issues to such that we can then inspect the Prometheus metrics interactively ourselves to identify the root cause of their issue. The process looks like this:
- Send customer a link to this docs section, and a share a private Google Drive folder with them so they can upload (the sometimes quite large) metrics dump.
- Once it is uploaded, download it and copy the extracted metrics dump into ~/.sourcegraph/prometheus.
- Run the same Sourcegraph version as them, investigate via the local Grafana instance / by running Prometheus queries directly.
In the future we can:
- Provide the same steps for Kubernetes
- Modify
dev/run-server-image.sh
to accept aPROMETHEUS_DUMP=somedump.tgz
env var so the process is seamless for us.