You can collect and use Amazon Managed Streaming for Apache Kafka (MSK) metrics in New Relic by setting up an MSK cluster and integrating it with Prometheus OpenMetrics integration. To set up the cluster, you need to create a definition file (in JSON), discover the DNS name of your Kafka node, choose the node that is in your subnet, document this information, confirm you can access the Prometheus endpoints, and set up the New Relic Prometheus OpenMetrics integration by creating a configuration file, configuring the Amazon MSK endpoints targets, adding the HTTP endpoint to collect metrics about the integration itself, and starting the integration. After getting the integration running, it will immediately start sending Amazon MSK metrics to New Relic, allowing you to monitor various aspects of your Kafka cluster, such as disk usage, producer request rate, and storage thresholds, and create alerts to ensure a healthy pipeline.