You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/vmcp/server/telemetry.go
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -30,15 +30,15 @@ func monitorBackends(ctx context.Context, meterProvider metric.MeterProvider, ba
30
30
}
31
31
backendCount.Record(ctx, int64(len(backends)))
32
32
33
-
requestsTotal, err:=meter.Int64Counter("toolhive_vmcp_requests_total", metric.WithDescription("Total number of requests per backend"))
33
+
requestsTotal, err:=meter.Int64Counter("toolhive_vmcp_backend_requests_total", metric.WithDescription("Total number of requests per backend"))
34
34
iferr!=nil {
35
35
returnnil, fmt.Errorf("failed to create requests total counter: %w", err)
36
36
}
37
-
errorsTotal, err:=meter.Int64Counter("toolhive_vmcp_errors_total", metric.WithDescription("Total number of errors per backend"))
37
+
errorsTotal, err:=meter.Int64Counter("toolhive_vmcp_backend_errors_total", metric.WithDescription("Total number of errors per backend"))
38
38
iferr!=nil {
39
39
returnnil, fmt.Errorf("failed to create errors total counter: %w", err)
40
40
}
41
-
requestsDuration, err:=meter.Float64Histogram("toolhive_vmcp_requests_duration", metric.WithDescription("Duration of requests in seconds per backend"))
41
+
requestsDuration, err:=meter.Float64Histogram("toolhive_vmcp_backend_requests_duration", metric.WithDescription("Duration of requests in seconds per backend"))
42
42
iferr!=nil {
43
43
returnnil, fmt.Errorf("failed to create requests duration histogram: %w", err)
0 commit comments