Skip to content

Commit

Permalink
Rename predefined metric (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanya-borisova authored Feb 13, 2024
1 parent 777f5e6 commit acc9440
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
"ghcr.io/stuartleeks/dev-container-features/shell-history:0": {},
"ghcr.io/devcontainers-contrib/features/pre-commit:2": {},
"ghcr.io/lukewiwa/features/shellcheck:0": {},
"ghcr.io/eitsupi/devcontainer-features/jq-likes:2": {},
"ghcr.io/eitsupi/devcontainer-features/jq-likes:2": {
"jqVersion": "latest",
"yqVersion": "latest"
},
"ghcr.io/jlaundry/devcontainer-features/mssql-odbc-driver:1": {
"version": "18"
},
Expand Down
2 changes: 2 additions & 0 deletions infrastructure/transform/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,6 @@ locals {
]

sql_users_to_create = var.accesses_real_data ? local.real_data_users_groups : local.synth_data_users_groups

predefined_metric_name = "rows_updated"
}
6 changes: 3 additions & 3 deletions infrastructure/transform/monitoring.tf
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,11 @@ resource "azurerm_portal_dashboard" "pipeline_status_dashboard" {
"resourceMetadata": {
"id": "${azurerm_application_insights.transform.id}"
},
"name": "${each.key}/rows_inserted",
"name": "${each.key}/${local.predefined_metric_name}",
"aggregationType": 4,
"namespace": "${each.key}/rows_inserted",
"namespace": "${each.key}/${local.predefined_metric_name}",
"metricVisualization": {
"displayName": "${each.key}/rows_inserted"
"displayName": "${each.key}/${local.predefined_metric_name}"
}
}
],
Expand Down

0 comments on commit acc9440

Please sign in to comment.