Skip to content

Commit 86efb13

Browse files
authored
Rename TCP fallback metrics to be consistent with the rest of logs agent metics (#46093)
### What does this PR do? COAT metrics were expecting a `logs.` prefix, so these metrics were not being exported. Renamed the metrics to be consistent with the rest of the logs agent metrics. ### Motivation ### Describe how you validated your changes ### Additional Notes Co-authored-by: brian.floersch <brian.floersch@datadoghq.com>
1 parent ee9e1e0 commit 86efb13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/logs/metrics/metrics.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,17 @@ var (
122122

123123
// TlmHTTPConnectivityCheck tracks HTTP connectivity check results
124124
// Tags: status (success/failure)
125-
TlmHTTPConnectivityCheck = telemetry.NewCounter("logs_agent", "http_connectivity_check",
125+
TlmHTTPConnectivityCheck = telemetry.NewCounter("logs", "http_connectivity_check",
126126
[]string{"status"}, "Count of HTTP connectivity checks with status")
127127

128128
// TlmHTTPConnectivityRetryAttempt tracks HTTP connectivity retry attempts
129129
// Tags: status (success/failure)
130-
TlmHTTPConnectivityRetryAttempt = telemetry.NewCounter("logs_agent", "http_connectivity_retry_attempt",
130+
TlmHTTPConnectivityRetryAttempt = telemetry.NewCounter("logs", "http_connectivity_retry_attempt",
131131
[]string{"status"}, "Count of HTTP connectivity retry attempts with success/failure status")
132132

133133
// TlmRestartAttempt tracks logs agent restart attempts
134134
// Tags: status (success/failure/timeout), transport (tcp/http)
135-
TlmRestartAttempt = telemetry.NewCounter("logs_agent", "restart_attempt",
135+
TlmRestartAttempt = telemetry.NewCounter("logs", "restart_attempt",
136136
[]string{"status", "transport"}, "Count of logs agent restart attempts with status and target transport")
137137
)
138138

0 commit comments

Comments
 (0)