Fix bug 1693: add prometheus authentication support