diff --git a/yarn-project/archiver/src/archiver/instrumentation.ts b/yarn-project/archiver/src/archiver/instrumentation.ts index 1f86770606b..3d8768b4d2a 100644 --- a/yarn-project/archiver/src/archiver/instrumentation.ts +++ b/yarn-project/archiver/src/archiver/instrumentation.ts @@ -67,15 +67,6 @@ export class ArchiverInstrumentation { this.dbMetrics = new LmdbMetrics( meter, - { - description: 'Database map size for the archiver', - }, - { - description: 'Database used size for the archiver', - }, - { - description: 'Num items in the archiver database', - }, { [Attributes.DB_DATA_TYPE]: 'archiver', }, diff --git a/yarn-project/p2p/src/mem_pools/instrumentation.ts b/yarn-project/p2p/src/mem_pools/instrumentation.ts index 5597bf6393e..0d5fda2687e 100644 --- a/yarn-project/p2p/src/mem_pools/instrumentation.ts +++ b/yarn-project/p2p/src/mem_pools/instrumentation.ts @@ -87,15 +87,6 @@ export class PoolInstrumentation { this.dbMetrics = new LmdbMetrics( meter, - { - description: 'Database map size for the Tx mempool', - }, - { - description: 'Database used size for the Tx mempool', - }, - { - description: 'Num items in database for the Tx mempool', - }, { [Attributes.DB_DATA_TYPE]: 'tx-pool', }, diff --git a/yarn-project/prover-client/src/proving_broker/proving_broker_database/persisted.ts b/yarn-project/prover-client/src/proving_broker/proving_broker_database/persisted.ts index b6c314cc106..660c003b407 100644 --- a/yarn-project/prover-client/src/proving_broker/proving_broker_database/persisted.ts +++ b/yarn-project/prover-client/src/proving_broker/proving_broker_database/persisted.ts @@ -13,13 +13,6 @@ export class KVBrokerDatabase implements ProvingBrokerDatabase { constructor(private store: AztecKVStore, client: TelemetryClient) { this.metrics = new LmdbMetrics( client.getMeter('KVBrokerDatabase'), - { - description: 'Database map size for the proving broker', - }, - { - description: 'Database used size for the proving broker', - }, - { description: 'Number of items in the broker database' }, { [Attributes.DB_DATA_TYPE]: 'prover-broker', }, diff --git a/yarn-project/telemetry-client/src/lmdb_metrics.ts b/yarn-project/telemetry-client/src/lmdb_metrics.ts index 1b1729295aa..cdd75299743 100644 --- a/yarn-project/telemetry-client/src/lmdb_metrics.ts +++ b/yarn-project/telemetry-client/src/lmdb_metrics.ts @@ -7,10 +7,6 @@ import { ValueType, } from './telemetry.js'; -export type LmdbMetricDescriptor = { - description: string; -}; - export type LmdbStatsCallback = () => { mappingSize: number; numItems: number; actualSize: number }; export class LmdbMetrics { @@ -18,24 +14,17 @@ export class LmdbMetrics { private dbUsedSize: ObservableGauge; private dbNumItems: ObservableGauge; - constructor( - meter: Meter, - dbMapSizeDescriptor: LmdbMetricDescriptor, - dbUsedSizeDescriptor: LmdbMetricDescriptor, - dbNumItemsDescriptor: LmdbMetricDescriptor, - private attributes?: Attributes, - private getStats?: LmdbStatsCallback, - ) { + constructor(meter: Meter, private attributes?: Attributes, private getStats?: LmdbStatsCallback) { this.dbMapSize = meter.createObservableGauge(DB_MAP_SIZE, { - description: dbMapSizeDescriptor.description, + description: 'LMDB Map Size', valueType: ValueType.INT, }); this.dbUsedSize = meter.createObservableGauge(DB_USED_SIZE, { - description: dbUsedSizeDescriptor.description, + description: 'LMDB Used Size', valueType: ValueType.INT, }); this.dbNumItems = meter.createObservableGauge(DB_NUM_ITEMS, { - description: dbNumItemsDescriptor.description, + description: 'LMDB Num Items', valueType: ValueType.INT, });