This Terraform root module provisions Grafana dashboards for the strategy-tester stack.
The initial dashboard in this directory focuses on one thing:
- automatically rendering volatility surfaces for every underlying asset currently present in the
optionstable
It uses a hidden Grafana query variable to enumerate all underlying_ticker values from PostgreSQL and repeats a Plotly panel once per asset, so the dashboard auto-expands as new underlyings appear in the dataset.
- a PostgreSQL datasource in Grafana that points at the
strategy-testerNeon database - the Grafana Plotly panel plugin
ae3e-plotly-panelenabled on the target Grafana instance
cd terraform/strategy-tester
terraform init \
-backend-config="bucket=${TF_STATE_BUCKET}" \
-backend-config="key=strategy-tester/terraform.tfstate" \
-backend-config="region=${AWS_REGION}" \
-backend-config="encrypt=true"
terraform plan
terraform applyThis stack is wired to:
.github/workflows/terraform-strategy-tester-resources.yml
Behavior:
- push to
maintouchingterraform/strategy-tester/**triggers automaticterraform apply workflow_dispatchsupportsplan,apply, anddestroy
Required GitHub configuration:
- Secret:
GRAFANA_AUTH - Secret:
AWS_ACCESS_KEY_ID - Secret:
AWS_SECRET_ACCESS_KEY - Secret:
TF_STATE_BUCKET - Variable:
GRAFANA_URL - Variable:
AWS_REGION - Variable:
STRATEGY_TESTER_GRAFANA_NEON_DATASOURCE_UID
Optional GitHub configuration:
- Variable:
STRATEGY_TESTER_NAMESPACE - Variable:
STRATEGY_TESTER_GRAFANA_FOLDER_TITLE - Variable:
STRATEGY_TESTER_GRAFANA_FOLDER_UID
grafana_urlgrafana_authneon_datasource_uid
See terraform.tfvars.example for a starting point.