The Azure Diagnostics API is needed as it allows you to collect diagnostic data from Azure-based apps such as performance monitoring, system event logs, and so on. The diagnostics information can be applied to create visual chart representations for enhanced monitoring and performance metric reports.