MetricFamilySamples fromMeter ( String dropwizardName , Meter meter ) { final MetricFamilySamples . Sample sample = sampleBuilder . createSample ( dropwizardName , "_total" , new ArrayList < String > ( ) , new ArrayList < String > ( ) , meter . getCount ( ) ) ; return new MetricFamilySamples ( sample . name , Type . COUNTER , getHelpMessage ( dropwizardName , meter ) , Arrays . asList ( sample ) ) ; }
Export a Meter as as prometheus COUNTER .