I fixed this, I had to change 2 properties:
Property migrator accused this one:
management.metrics.export.prometheus.enabled
changed to
management.prometheus.metrics.export.enabled
But this alone was not enough. I had to add
management.endpoint.prometheus.enabled: true
even though I already had set
management.endpoints.enabled-by-default: true