Skip to content

Commit f1cf7f4

Browse files
committed
chore: align grpc metric names
1 parent da25dc1 commit f1cf7f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libraries/module-tools/src/metrics/clientMiddleware.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,28 +52,28 @@ async function* incrementStreamMessagesCounter<T>(
5252

5353
const clientStartedMetric = new Counter({
5454
registers: [registry],
55-
name: 'conduit_grpc_client_started_total',
55+
name: 'cnd_grpc_client_started_total',
5656
help: 'Total number of RPCs started on the client.',
5757
labelNames: [typeLabel, serviceLabel, methodLabel, pathLabel],
5858
});
5959

6060
const clientHandledMetric = new Counter({
6161
registers: [registry],
62-
name: 'conduit_grpc_client_handled_total',
62+
name: 'cnd_grpc_client_handled_total',
6363
help: 'Total number of RPCs completed on the client, regardless of success or failure.',
6464
labelNames: [typeLabel, serviceLabel, methodLabel, pathLabel, codeLabel],
6565
});
6666

6767
const clientStreamMsgReceivedMetric = new Counter({
6868
registers: [registry],
69-
name: 'conduit_grpc_client_msg_received_total',
69+
name: 'cnd_grpc_client_msg_received_total',
7070
help: 'Total number of RPC stream messages received by the client.',
7171
labelNames: [typeLabel, serviceLabel, methodLabel, pathLabel],
7272
});
7373

7474
const clientStreamMsgSentMetric = new Counter({
7575
registers: [registry],
76-
name: 'conduit_grpc_client_msg_sent_total',
76+
name: 'cnd_grpc_client_msg_sent_total',
7777
help: 'Total number of gRPC stream messages sent by the client.',
7878
labelNames: [typeLabel, serviceLabel, methodLabel, pathLabel],
7979
});

0 commit comments

Comments
 (0)