Skip to content

iLert/terraform-grafana-alerting-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using iLert terraform provider with grafana

This example is related to our Terraform blog post

Usage

# set your Grafana URL and credentials
export GRAFANA_URL=http://127.0.0.1:3000
export GRAFANA_AUTH=admin:admin
# set your iLert credentials via environment variables
export ILERT_ORGANIZATION=...
export ILERT_USERNAME=...
export ILERT_PASSWORD=...
# ... or create the `terraform.tfvars` file with variables
#
# organization=...
# username=...
# password=...
#

docker-compose up -d
terraform init
terraform apply \
    -var 'ilert_user_email=example@example.com' \
    -var 'ilert_user_username=example' \
    -var 'ilert_user_mobile_code=DE' \
    -var 'ilert_user_mobile_number=+491234567890'

Links