0

I have a Spring Boot 2 application that uses Micrometer.

Unfortunately, I need to use Prometheus PushGateway (i.e. pushing instead of pulling)

So I need to read all Meter's from MeterRegistry and convert them to Prometheus objects (e.g. Gauge, Counter) . Then, register them to a CollectorRegistry and push them using PushGateway.

Is there a convenient way to make this conversion?

Thanks!

IsaacLevon
  • 2,260
  • 4
  • 41
  • 83

1 Answers1

1

You don't need to set up that manual conversion at all. Just read up the documentation regarding the Prometheus Pushgateway support in Spring Boots Actuator.

mweirauch
  • 1,958
  • 11
  • 17