Software metrics are quantitative measurements used to highlight areas of code that need improvement and provide an overall assessment of code quality. They can measure aspects like lines of code, complexity, and test coverage. However, metrics can be difficult to calculate precisely and may not provide a full picture, especially for code early in development. Examples of common metrics include lines of code, classes and interfaces, code to comment ratio, and bugs to lines of code.