Current Terraform Version
Terraform v1.0.8 on darwin_amd64
Use-cases
Sometimes we want to filter out some rows in the table, like using cut_off_max
or other formulas to do the filtering on the UI. But terraform + DataDog
does not support formula
in query_table_defenition
.
Attempted Solutions
Proposal
Support formula
like it’s supported in timeseries_definition
request=[{
"formula": [
{
"alias": "my ff query",
"formulaExpression": "my_query_1 + my_query_2",
},
{
"alias": "my second ff query",
"formulaExpression": "my_query_1 * my_query_2",
"limit": {
"count": 5,
"order": "desc",
},
},
],
"query": [
{
"metricQuery": {
"aggregator": "sum",
"dataSource": "metrics",
"name": "my_query_1",
"query": "avg:system.cpu.user{app:general} by {env}",
},
},
{
"metricQuery": {
"aggregator": "sum",
"name": "my_query_2",
"query": "avg:system.cpu.user{app:general} by {env}",
},
},
],
}],