-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Garot Conklin edited this page Feb 12, 2025
·
1 revision
This guide covers the installation process for the DataDog Monitor Deployer tool.
- Python 3.9 or higher
- pip (Python package installer)
- DataDog account with API and Application keys
- Git (optional, for development)
pip install datadog-monitor-deployergit clone https://github.com/fleXRPL/datadog-monitor-deployer.git
cd datadog-monitor-deployer
pip install -e .git clone https://github.com/fleXRPL/datadog-monitor-deployer.git
cd datadog-monitor-deployer
pip install -r requirements-dev.txtSet up your DataDog credentials using environment variables:
# Linux/macOS
export DD_API_KEY='your-api-key'
export DD_APP_KEY='your-app-key'
# Windows (PowerShell)
$env:DD_API_KEY='your-api-key'
$env:DD_APP_KEY='your-app-key'Create a .env file in your project directory:
DD_API_KEY=your-api-key
DD_APP_KEY=your-app-keyVerify the installation by running:
dd-monitor --versionMost Linux distributions come with Python pre-installed. If needed:
# Ubuntu/Debian
sudo apt-get update
sudo apt-get install python3 python3-pip
# CentOS/RHEL
sudo yum install python3 python3-pipUsing Homebrew:
brew install python3- Download Python from python.org
- During installation:
- Check "Add Python to PATH"
- Check "pip package installer"
docker pull flexrpl/datadog-monitor-deployerUsage with Docker:
docker run -e DD_API_KEY='your-api-key' \
-e DD_APP_KEY='your-app-key' \
-v $(pwd):/app \
flexrpl/datadog-monitor-deployer \
deploy monitor.yamlIf you encounter SSL certificate errors:
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org datadog-monitor-deployerIf you encounter permission errors:
# Linux/macOS
pip install --user datadog-monitor-deployer
# Windows (run as administrator)
pip install datadog-monitor-deployerIf you encounter dependency conflicts:
pip install --upgrade pip
pip install -r requirements.txt --no-cache-dir- Read the Getting Started Guide
- Create your First Monitor
- Review Best Practices