SLO converter is a command line interface that converts YAML, adhering to the Figure SLO Schema, to HCL.
cargo install slo-converter
``` A command line tool that converts specific yaml schemas to terraform HCL.
Usage: slo-converter [OPTIONS] --env
Arguments:
Options: --output
slo-converter --env figure-pay-test yaml/one-slo.yaml
There's a few domain specific gotchas. A handy script is provided that can be ran like this.
bash
./resource_helper.sh service-task development
NOTE: This script samples recent traces from Datadog. In order to get the best results, you should run against an environment that receives the most traffic.
The output of this script will help inform you if your service is using netty
vs tomcat
. This is important because your web service metrics will differ, e.g. trace.netty.request
, trace.servlet.request
.
It will also help you verify your health check endpoints, as services use differing conventions.