Skip to content

Commit acc9440

Browse files
Rename predefined metric (#335)
1 parent 777f5e6 commit acc9440

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.devcontainer/devcontainer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@
3636
"ghcr.io/stuartleeks/dev-container-features/shell-history:0": {},
3737
"ghcr.io/devcontainers-contrib/features/pre-commit:2": {},
3838
"ghcr.io/lukewiwa/features/shellcheck:0": {},
39-
"ghcr.io/eitsupi/devcontainer-features/jq-likes:2": {},
39+
"ghcr.io/eitsupi/devcontainer-features/jq-likes:2": {
40+
"jqVersion": "latest",
41+
"yqVersion": "latest"
42+
},
4043
"ghcr.io/jlaundry/devcontainer-features/mssql-odbc-driver:1": {
4144
"version": "18"
4245
},

infrastructure/transform/locals.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,6 @@ locals {
123123
]
124124

125125
sql_users_to_create = var.accesses_real_data ? local.real_data_users_groups : local.synth_data_users_groups
126+
127+
predefined_metric_name = "rows_updated"
126128
}

infrastructure/transform/monitoring.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,11 @@ resource "azurerm_portal_dashboard" "pipeline_status_dashboard" {
188188
"resourceMetadata": {
189189
"id": "${azurerm_application_insights.transform.id}"
190190
},
191-
"name": "${each.key}/rows_inserted",
191+
"name": "${each.key}/${local.predefined_metric_name}",
192192
"aggregationType": 4,
193-
"namespace": "${each.key}/rows_inserted",
193+
"namespace": "${each.key}/${local.predefined_metric_name}",
194194
"metricVisualization": {
195-
"displayName": "${each.key}/rows_inserted"
195+
"displayName": "${each.key}/${local.predefined_metric_name}"
196196
}
197197
}
198198
],

0 commit comments

Comments
 (0)