Convert the Prometheus configuration to protocol buffers.