Upgrade Prometheus to new API.