I am in the middle of moving the metrics collection system from statsd to Prometheus. It is a spring boot app and based on a micrometer. I am wondering if there is a way to start supporting both hierarchical statsd metrics and also dimensional Prometheus metrics at the same time.
Currently, the way I create a timer is
Metrics.timer("apiName.endpointName.latency").record(latency)
This is fine for statsd but does not work for Prometheus. I need to support a separate metric with tags such as
service_latency {api="apiName", endpoint="endpointName"}
Is it possible to support both at the same time?