Skip to content

Commit 31163b7

Browse files
committedMar 17, 2025
separated metric name for orchestrator proxy
1 parent 22d7cca commit 31163b7

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed
 

‎packages/orchestrator/internal/proxy/proxy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func (p *SandboxProxy) Shutdown(ctx context.Context) {
8383
}
8484

8585
func (p *SandboxProxy) proxyHandler(transport *http.Transport) func(w http.ResponseWriter, r *http.Request) {
86-
activeConnections, err := meters.GetUpDownCounter(meters.ActiveConnectionsCounterMeterName)
86+
activeConnections, err := meters.GetUpDownCounter(meters.OrchestratorProxyActiveConnectionsCounterMeterName)
8787
if err != nil {
8888
zap.L().Error("failed to create active connections counter", zap.Error(err))
8989
}

‎packages/shared/pkg/meters/main.go

+7-6
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ const (
1616
type UpDownCounterType string
1717

1818
const (
19-
SandboxCountMeterName UpDownCounterType = "api.env.instance.running"
20-
BuildCounterMeterName = "api.env.build.running"
21-
NewNetworkSlotSPoolCounterMeterName = "orchestrator.network.slots_pool.new"
22-
ReusedNetworkSlotSPoolCounterMeterName = "orchestrator.network.slots_pool.reused"
23-
NBDkSlotSReadyPoolCounterMeterName = "orchestrator.nbd.slots_pool.read"
24-
ActiveConnectionsCounterMeterName = "client_proxy.connections.active"
19+
SandboxCountMeterName UpDownCounterType = "api.env.instance.running"
20+
BuildCounterMeterName = "api.env.build.running"
21+
NewNetworkSlotSPoolCounterMeterName = "orchestrator.network.slots_pool.new"
22+
ReusedNetworkSlotSPoolCounterMeterName = "orchestrator.network.slots_pool.reused"
23+
NBDkSlotSReadyPoolCounterMeterName = "orchestrator.nbd.slots_pool.read"
24+
ActiveConnectionsCounterMeterName = "client_proxy.connections.active"
25+
OrchestratorProxyActiveConnectionsCounterMeterName = "orchestrator.proxy.connections.active"
2526
)
2627

2728
var meter = otel.GetMeterProvider().Meter("nomad")

0 commit comments

Comments
 (0)