Provision and manage Axiom resources such as datasets and monitors with Terraform.
API_TOKEN
with the Axiom API token you have generated. For added security, store the API token in an environment variable.
terraform init
.
name
and description
fields.
SLACK_URL
with the webhook URL from your Slack instance. For more information on obtaining this URL, see the Slack documentation.
DISCORD_CHANNEL
with the webhook URL from your Discord instance. For more information on obtaining this URL, see the Discord documentation.DISCORD_TOKEN
with your Discord API token. For more information on obtaining this token, see the Discord documentation.EMAIL1
and EMAIL2
with the email addresses you want to notify.
test_dataset
and the notifier test_slack_notifier
. These are resources you have created and accessed in the sections above.
name
and the description
fields.apl_query
field, specify the APL query for the monitor.name
, email
, and role
fields.
datasets
endpoint of the Axiom API.
DATASET_ID
with the ID of the Axiom dataset.
notifiers
endpoint of the Axiom API.
NOTIFIER_ID
with the ID of the Axiom notifier.
monitors
endpoint of the Axiom API.
MONITOR_ID
with the ID of the Axiom monitor.
users
endpoint of the Axiom API.
USER_ID
with the ID of the Axiom user.