dashboard
borgified/dashboard/datadog
Terraform Module
HCL
DATADOG
autogenerate dashboards based on metric prefix
Install
module "dashboard" {
source = "borgified/dashboard/datadog"
version = "0.1.17"
}
README
terraform module for autogenerating dashboards based on prefixed metrics The Terraform Datadog provider does not offer a way to autodiscover metrics, however, Datadog API can do this via GET /v1/metrics This terraform module uses an external data source list_metrics.sh to fetch a list of all available metrics filtered by a prefix so that this subset of metrics can be used as input to the datadog_dashboard resource. For example, if you have these metrics in Datadog: `` app.dev.memstats.alloc app.dev.memstats.frees app.dev.memstats.heap_released ... `` then specify prefix = "app.dev.memstats" as your input to get a dashboard of all metrics starting with that prefix.
Inputs (11)
| Name | Type | Description | Default |
|---|---|---|---|
| prefix | string | metric prefix to pattern match against available metrics in datadog also used fo | required |
| space_aggregation | string | choices: avg, max, min, sum | required |
| api_key | string | datadog api key | required |
| app_key | string | datadog app key | required |
| scope | string | the set of tags used to choose time series for the query. eg. "environment:produ | required |
| template_variable_prefix | string | prefix of template variable | "" |
| metrics_list | string | list of metrics to provide if you dont want to use var.prefix to query them from | "" |
| template_variable_name | string | name of template variable | "variable1" |
| description | string | datadog dashboard description | "generated by Terraform" |
| template_variable_default | string | default value for template variable | "*" |
| title | string | title of datadog dashboard | "my dashboard" |
Outputs (2)
url — visit this url to go to your new dashboardexternal_metrics — queryable metrics from datadog discoveredResources (1)
datadog_dashboard
Details
FrameworkTerraform Module
LanguageHCL
Version0.1.17
Cloud
DATADOG
★ Stars4
Forks2
Total downloads1.4k
Inputs11
Outputs2
Resources1
LicenseApache-2.0
Namespaceborgified
Updated