Skip to main content

Generate OpenSLO and Nobl9 yaml configuration

Project description

slo-yaml-generator

:bangbang: This project is under development and subject to change. :bangbang:

Quickly generate OpenSLO and Nobl9 yaml so I can stop going and looking at the doc.

Usage

  1. Install using pip
    pip install slo_yaml_generator
    

The script takes a json file containing the fields needed for each template.

Files are currently sent to the ./output/ directory. I plan to add an option to configure this soon.

Example:

slo_yaml_generator --resource_type slo --config_file "example-configs/cloudwatch-slo.json"

Config Files

SLO

{
  "resource_name": "My Demo SLO",
  "service_name": "Service Name",
  "project_name": "Project Name",
  "sli_name": "test indicator",
  "metric_source": "Dynatrace",
  "operation": "lt",
  "value": "100",
  "target": ".99",
  "duration": "28d",
  "is_rolling": "True",
  "budgeting_method": "Occurrences"
}

For metric_source Cloudwatch please include these fields:

{
  "region": "us-east-1",
  "aws_service": "AWS/Lambda",
  "metric_name": "Errors",
  "statistic": "Sum"
}

For metric_source Dynatrace please include these fields:

{
  "query": "dynatrace query"
}

Service

{
  "resource_name": "This is a test service",
  "project_name": "Jack's Project",
  "description": "This is a test description for Jack's little tool for SLO consulting"
}

Project (Nobl9 format only)

{
  "resource_name": "This is a test project",
  "description": "This is a test description for Jack's little tool for SLO consulting"
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slo_yaml_generator-0.0.8.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

slo_yaml_generator-0.0.8-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file slo_yaml_generator-0.0.8.tar.gz.

File metadata

  • Download URL: slo_yaml_generator-0.0.8.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for slo_yaml_generator-0.0.8.tar.gz
Algorithm Hash digest
SHA256 ce6c1d92e1aec51b4c0515aaf329930eb8489c51cae8d9006e8726fadd2fbb14
MD5 d7836f885c73f8836d936326a327c9e2
BLAKE2b-256 ba52f463efaaaccad8d51afb37b5d99c39cc31ab029f2c53cc189c12ac32baf4

See more details on using hashes here.

File details

Details for the file slo_yaml_generator-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for slo_yaml_generator-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ad2b9d135188bf85b1277dedafefc1a3728446ed29d39c51f2aa9b630d8ae6a7
MD5 ab229c7d5eea101a638f775b4efa9935
BLAKE2b-256 35c9550a033ff2a0f343d3e67117b5186b81b2e85a0446bbe1d54d2757b638b6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page