@@ -129,14 +129,14 @@ export class LMDBStoreFactory implements DataStoreFactory {
129129
130130 private registerLMDBGauges ( ) : void {
131131 let totalBytes = 0 ;
132- const globalStat = stats ( this . env ) ;
132+ const envStat = stats ( this . env ) ;
133133 this . telemetry . registerGaugeProvider ( 'version' , ( ) => VersionNumber ) ;
134- this . telemetry . registerGaugeProvider ( 'global .size' , ( ) => globalStat . totalSize , { unit : 'By' } ) ;
135- this . telemetry . registerGaugeProvider ( 'global .max.size' , ( ) => globalStat . maxSize , {
134+ this . telemetry . registerGaugeProvider ( 'env .size' , ( ) => envStat . totalSize , { unit : 'By' } ) ;
135+ this . telemetry . registerGaugeProvider ( 'env .max.size' , ( ) => envStat . maxSize , {
136136 unit : 'By' ,
137137 } ) ;
138- this . telemetry . registerGaugeProvider ( 'global .entries' , ( ) => globalStat . entries ) ;
139- totalBytes += globalStat . totalSize ;
138+ this . telemetry . registerGaugeProvider ( 'env .entries' , ( ) => envStat . entries ) ;
139+ totalBytes += envStat . totalSize ;
140140
141141 for ( const [ name , store ] of this . stores . entries ( ) ) {
142142 const stat = store . stats ( ) ;
@@ -150,9 +150,12 @@ export class LMDBStoreFactory implements DataStoreFactory {
150150 } ) ;
151151 }
152152
153- this . telemetry . registerGaugeProvider ( 'global .usage' , ( ) => ( 100 * totalBytes ) / TotalMaxDbSize , {
153+ this . telemetry . registerGaugeProvider ( 'total .usage' , ( ) => ( 100 * totalBytes ) / TotalMaxDbSize , {
154154 unit : '%' ,
155155 } ) ;
156+ this . telemetry . registerGaugeProvider ( 'total.size' , ( ) => totalBytes , {
157+ unit : 'By' ,
158+ } ) ;
156159 }
157160}
158161
0 commit comments