Implemented ability to specify source for counter or gauge