2021-08-24 11:09:06 +02:00

63 lines
1.5 KiB
HCL

variable "title" {
description = "title of datadog dashboard"
type = string
default = "my dashboard"
}
variable "api_key" {
description = "datadog api key"
type = string
}
variable "app_key" {
description = "datadog app key"
type = string
}
variable "prefix" {
description = "metric prefix to pattern match against available metrics in datadog also used for dashboard title"
type = string
}
# https://docs.datadoghq.com/graphing/metrics/introduction/#breaking-down-the-metric-query
variable "space_aggregation" {
description = "choices: avg, max, min, sum"
type = string
}
variable "scope" {
description = "the set of tags used to choose time series for the query. eg. \"environment:production,service:myservice\""
type = string
}
variable "description" {
description = "datadog dashboard description"
type = string
default = "generated by Terraform"
}
variable "metrics_list" {
description = "list of metrics to provide if you dont want to use var.prefix to query them from datadog"
type = string
default = ""
}
variable "template_variable_name" {
description = "name of template variable"
type = string
default = "variable1"
}
variable "template_variable_prefix" {
description = "prefix of template variable"
type = string
default = ""
}
variable "template_variable_default" {
description = "default value for template variable"
type = string
default = "*"
}