import { CeloEnvArgv } from 'src/lib/env-utils' ; import { getMetrics } from 'src/lib/monitoring' ; export const command = 'list' ; export const describe = 'list metrics' ; interface DeleteMetricsArgv extends CeloEnvArgv { prefix : string ; } export const builder = ( argv ) => { argv . option ( 'prefix' , { required : true , type : 'string' , alias : 'p' , } ) ; } ; export const handler = async ( argv ) => { const metrics = await getMetrics ( argv . prefix ) ; console . log ( metrics . map ( ( m ) => m . name ) ) ; } ;