Metric tool would get base values ( e.g. effort, defect. cost ) either manually or through some automation script. The tool is normally programmed to calculate, compare , analyze and report dashboards. Depending upon which domain you need metrics parameters measured , there are lots of software tools available in market.