@@ -16,8 +16,10 @@ export const SignerPromMetricsRoutes: FastifyPluginAsync<
16
16
17
17
const signerRegistry = new Registry ( ) ;
18
18
19
+ const metricsPrefix = 'signer_api_' ;
20
+
19
21
new Gauge ( {
20
- name : 'time_since_last_pending_block_proposal_ms' ,
22
+ name : metricsPrefix + 'time_since_last_pending_block_proposal_ms' ,
21
23
help : 'Time in milliseconds since the oldest pending block proposal' ,
22
24
registers : [ signerRegistry ] ,
23
25
async collect ( ) {
@@ -30,7 +32,7 @@ export const SignerPromMetricsRoutes: FastifyPluginAsync<
30
32
} ) ;
31
33
32
34
new Gauge ( {
33
- name : 'avg_block_push_time_ms' ,
35
+ name : metricsPrefix + 'avg_block_push_time_ms' ,
34
36
help : 'Average time (in milliseconds) taken for block proposals to be accepted and pushed over different block periods' ,
35
37
labelNames : [ 'period' ] as const ,
36
38
registers : [ signerRegistry ] ,
@@ -46,7 +48,7 @@ export const SignerPromMetricsRoutes: FastifyPluginAsync<
46
48
} ) ;
47
49
48
50
new Gauge ( {
49
- name : 'proposal_acceptance_rate' ,
51
+ name : metricsPrefix + 'proposal_acceptance_rate' ,
50
52
help : 'The acceptance rate of block proposals for different block ranges (as a float between 0 and 1).' ,
51
53
labelNames : [ 'period' ] ,
52
54
registers : [ signerRegistry ] ,
@@ -62,7 +64,7 @@ export const SignerPromMetricsRoutes: FastifyPluginAsync<
62
64
} ) ;
63
65
64
66
new Gauge ( {
65
- name : 'signer_state_count' ,
67
+ name : metricsPrefix + 'signer_state_count' ,
66
68
help : 'Count of signer states over different block periods' ,
67
69
labelNames : [ 'signer' , 'period' , 'state' ] as const ,
68
70
registers : [ signerRegistry ] ,
0 commit comments