Setup

💰 Note: This will create resources in your Joyent account for which you will be charged.

  1. Clone this repo, open a terminal, and change directory to the repo location.
  2. Download and install Terraform.
  3. Download and run sdc-docker-setup.sh to generate required certificates for Prometheus to connect to Triton Container Monitor.
  4. Copy the file terraform.tfvars.example to terraform.tfvars in this directory and edit the variable values to the paths to your SSH key for your Joyent account and the paths to the certificates created in the previous setup.
  5. Set the required environment variables SDC_URL, SDC_ACCOUNT, and SDC_KEY_ID in your terminal as described in Set Up your CLI.
  6. Execute terraform init.
  7. Execute terraform apply and enter yes when prompted to make the changes.
  8. Once the apply finishes, open the grafana_address value from the output in your browser. Enter admin as the username and admin as the password when prompted.
  9. In Grafana navigate to the Triton Cloud dashboard.

Teardown

⚠️ Note: This will destroy previously created resources and you will lose any associated data.

  1. Execute terraform destroy and enter yes when prompted to make the changes.