I use micrometer + spring boot + prometheus to create, register and monitor the counters from the application, apart from counters we have timer and gauge. counter created inside application which has the suffix "_total" counter type is not getting displayed, but for timer and gauge it is shown respectively. Please refer the image below for reference. counters are registered using MeterRegistry as below,
Counter.builder(counterName)
.description("Total Number of " + counterName)
.tags(tags)
.register(meterRegistry)
.increment();