Skip to content

Commit 2115bbb

Browse files
Fix: Use underscores in terraform workflow metric names for M3 compatibility (#780)
**Problem** Terraform workflow metrics used dots (terraform.workflow.execution) which don't appear correctly in M3 queries. **Solution** Changed metric names to use underscores to match codebase convention: terraform.workflow.execution → terraform_workflow_execution terraform.workflow.duration → terraform_workflow_duration
1 parent 642b108 commit 2115bbb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/metrics/common.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ const (
4646
ManualOverrideReasonTag = "reason"
4747

4848
// Terraform workflow execution metrics
49-
TerraformWorkflowExecution = "terraform.workflow.execution"
50-
TerraformWorkflowDuration = "terraform.workflow.duration"
49+
TerraformWorkflowExecution = "terraform_workflow_execution"
50+
TerraformWorkflowDuration = "terraform_workflow_duration"
5151
WorkflowType = "workflow_type" // PR, Deploy, Adhoc
5252
WorkflowStatus = "status" // success, failure
5353
WorkflowRepo = "repository"

0 commit comments

Comments
 (0)