code: private void printDoubleWithFields(String name, String fields, double value) {
  		print(METRIC_PREFIX);
  		print(name);
  		if (fields != null) {
  			print(fields);
  		}
  		print(' ');
  		println(decimalFormat.format(value));
  	}
docs: prints a double metric value with optional fields