terraform-provider-signalform
SignalForm is a terraform provider to codify SignalFx detectors, charts and dashboards, thereby making it easier to create, manage and version control them.
Signalform is not an official SignalFx product, so we do not guarantee a 1:1 mapping between the SignalFx API and the functionalities offered by the provider.
Please note that this provider only works with terraform 0.9.
Documentation is available here.
Changelog is available here.
- Resources
- Build And Install
- Release
- Contributing
- FAQ
Build And Install
Build binary from source
To build the go binary from source:
make build
The output binary will be placed in the bin/
folder.
The default platform target is linux-amd64
. If you want to customize your target platform set the GOOS
and GOARCH
environment variables; e.g.:
GOOS=darwin GOARCH=amd64 make build
Once you have built the binary, place it in the same folder of your terraform installation for it to be available everywhere.
Build debian package from source
If you want to build your package targeting at the same time Ubuntu Lucid, Trusty and Xenial, then run:
make package
The output package will be placed in the dist/
folder (e.g. dist/terraform-provider-signalform-0.9_2.2.5-default0_amd64.deb
)
If you want to target a specific Ubuntu version, use the itest_*
command as below:
make itest_trusty
You can set environament variables to customize your build:
TF_PATH
: Path of your terraform installation. Default:/nail/opt/terraform-$(TF_VERSION)
, withTF_VERSION
being the one supported by the provider.ORG
: Organization name to be used for your package name. Default:default
(e.g.terraform-provider-signalform-0.9_2.2.5-$(ORG)0_amd64.deb
)BUILD_NUMBER
: This variable will be used as iteration number. If not set, the default will be0
(e.g.terraform-provider-signalform-0.9_2.2.5-default$(BUILD_NUMBER)_amd64.deb
)upstream_build_number
: IfBUILD_NUMBER
is not set and if your CI pipeline (e.g. Jenkins) defines this variable, then the job id will be used as iteration number for your package (e.g.terraform-provider-signalform-0.9_2.2.5-default$(upstream_build_number)_amd64.deb
)GOOS
andGOARCH
: see the above section. Remember to runmake clean
between builds with different target platform, so you start from a clean environment.
Once you built the package, you can just install like:
sudo dpkg -i dist/terraform-provider-signalform.deb
Release
To make a new release:
- bump
VERSION
up inbuild/Makefile
(use semantic versioning) - run
make changelog
and edit the changelog file git commit
git tag v<VERSION>
git push origin master && git push origin --tags
Contributing
Everyone is encouraged to contribute to terraform-provider-signalform
. You can contribute by forking the GitHub repo and making a pull request or opening an issue.
FAQ
Why not calling it terraform-provider-signalfx?
Signalform is not an official SignalFx product, being owned and maintained by Yelp. For this reason, we decided not to call this provider terraform-provider-signalfx in case SignalFx decides to publish an official one.
SignalFlow is hard!
It is a bit hard, indeed. You might find useful to read the SignalFlow Overview.
Also remember that given a chart or detector created from the UI, you can see its representation in Signalflow from the Actions menu: