Skip to content

nobl9/slo-exporter

Repository files navigation

slo-exporter

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.

  1. Update the auth.yaml and config.toml files with the required credentials.
  2. Run ./slo_export.py > file.yaml to dump the datadog SLOs into a n9 formatted yaml.
  3. 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.)

Additional recommendations about the python environment

To create a python 3 virtual environment and install dependencies:

python3 -m venv pyenv
source pyenv/bin/activate
pip install -r requirements.txt

Using containerized slo-exporter

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published