This simple script will generate random Datadog metrics for common statsD commands to demo the Sourcegraph Datadog Extension.
- Follow these instructions to setup Datadog's Dogshell to allow sending metrics from your terminal shell: https://docs.datadoghq.com/developers/guide/dogshell-quickly-use-datadog-s-api-from-terminal-shell/
If you don't have a Datadog account yet, sign up on their website.
-
Clone the repo:
git clone [email protected]:sourcegraph/datadog-democode.git
-
Setup virtualenv:
virtualenv --no-site-packages -p `which python3` venv source ./venv/bin/activate pip install -r requirements.txt
-
Run the script to start generating metrics:
python gen_some_datadog_metrics.py
-
Activate the Datadog extension.
-
Open any open source code that generates the following kind of incremental metrics:
uploaded.file.size active.connections users.online files.transferred page.views files.remaining guild.messages.create guild.messages.delete guild.messages.update gateway.events.received
Based on these metrics, you can setup your Datadog dashboard to look like this: