Step-by-Step Guide (Replace the URL with the latest version if necessary.) Add the following content: Save and close the file. Start the Prometheus service:…