title | description |
---|---|
Quickstart |
Get started with Opslane in minutes |
Follow these steps to set up Opslane and start improving your on-call experience.
Before you begin, make sure you have:
- Docker installed on your system
- A Slack workspace
- A Datadog account
- OpenAI API key (for AI-powered features)
- Ngrok account (for external URL setup)
```bash
git clone https://github.com/opslane/opslane.git
cd opslane
```
1. Sign up for a free Ngrok account at [https://ngrok.com](https://ngrok.com) if you haven't already.
2. Install Ngrok following their [installation guide](https://ngrok.com/download).
3. Authenticate Ngrok with your account token:
```bash
ngrok authtoken YOUR_NGROK_AUTH_TOKEN
```
4. Start your ngrok tunnel
The ngrok tunnel should point to port 8001 (where the API server will run):
```bash
ngrok http --subdomain=xxx --host-header=rewrite 8001 --region us
```
```bash
cp .env.example .env
```
2. Leave the dummy values for now. We will come back and update them.
```bash
docker-compose up --build
```
This command will start Opslane. Before we can get the alert classification to work,
we need to get the Slack and Datadog integrations to work.
Before using Opslane, e want to index the slack channels that have the alert history as well as annotate 25 alerts to generate a model.
To do these run the following commands:
-
docker ps
to find out the id of theapp
container. -
docker exec -it <container_id> /bin/bash
-
Index Slack content:
python -m app.scripts.seed_data
-
Classify Datadog alerts:
python -m app.ml.training.train_alert_classifier --num-alerts 20
-
Opslane is ready to use. Any future datadog alerts will be annotated!