This script will help you convert Datadog SLO configurations to Nobl9 YAML configurations.
If you opt to run this locally, you must install the sloctl CLI tool.
- Update the auth.yaml and config.toml files with the required credentials.
- Run
./slo_export.py > file.yaml
to dump the datadog SLOs into a n9 formatted yaml. - Run
sloctl apply -f file.yaml --config config.toml
to apply it to Nobl9.
./slo_export.py > file.yaml
sloctl apply -f file.yaml --config config.toml
Please note that sloctl's semantics are idempotent, like Kubernetes, so you can run this command repeatedly to keep the resulting Nobl9 SLOs in sync with the Datadog SLOs. (This accomplishes a one-way sync. Changes from Datadog will be synced to Nobl9. However, changes made in Nobl9 will not be synced back to Datadog.)
To create a python 3 virtual environment and install dependencies:
python3 -m venv pyenv
source pyenv/bin/activate
pip install -r requirements.txt
Update the config.yaml and config.toml files with the required credentials.
Build the image
docker build -t slo-exporter .
Run the build
docker run slo-exporter