## Thumbnail
## Title
## What value do viewers get?
They learn:
- Their choices for integrating k6 to Grafana
- Grafana plugin
- Prometheus Remote Write
- Which one they should choose depending on whether they're using k6 OSS/Cloud or Grafana/Grafana Cloud
## Hook
In the last video, I talked about how to install Grafana and Prometheus on a k8s cluster. I ran a k6 load test and monitored the results using both Grafana and k6 Cloud. But what if I just want all the data, including load testing data, to go to Grafana?
In this video, I'm going to discuss the integration options between k6 and Grafana so that you can choose which one is right for you.
## Structure
- Currently, there are two ways you can integrate k6 with Grafana
1. k6 Cloud Grafana data source plugin
- Installed in Grafana, and then it pulls in data from k6 Cloud
- Includes historical data from tests you've run on k6 Cloud from even before you installed the plugin
- Works for: k6 Cloud + Grafana (local, Cloud, k8s)
- [](https://k6.io/docs/cloud/integrations/grafana-plugin/)[https://k6.io/docs/cloud/integrations/grafana-plugin/](https://k6.io/docs/cloud/integrations/grafana-plugin/)
2. Prometheus Remote Write
- You can effectively send data to any Prometheus Remote Write backend, on a test-by-test basis.
- k6 Cloud
- script
- interface
- Works for: k6 Cloud + Prometheus (local, Grafana Cloud, k8s, New Relic, any instance of Prometheus)
- [](https://k6.io/docs/cloud/integrations/cloud-apm/prometheus-remote-write/#grafana-cloud-setup)[https://k6.io/docs/cloud/integrations/cloud-apm/prometheus-remote-write/#grafana-cloud-setup](https://k6.io/docs/cloud/integrations/cloud-apm/prometheus-remote-write/#grafana-cloud-setup)
- k6 OSS
- k6 → InfluxDB format → Telegraf to transform → Prometheus Remote Write format → Grafana
- [](https://k6.io/docs/results-visualization/grafana-cloud/)[https://k6.io/docs/results-visualization/grafana-cloud/](https://k6.io/docs/results-visualization/grafana-cloud/)
- Works for: k6 OSS + Prometheus (local, Grafana Cloud, k8s, New Relic, any instance of Prometheus)
- How do you choose which one to use?
- If you're using k6 Cloud
- If you want to recreate the dashboards on k6 Cloud or if you want to be able to look at tests you've run previously: Grafana plugin
- If you're already using Prometheus and you want your load testing results to be collected along with other application metrics, or you want the flexibility of using other APM providers that use Prometheus in addition to Grafana: Prometheus Remote Write
- If you're using k6 OSS: Prometheus Remote Write using Telegraf to transform from InfluxDB format to Prometheus Remote Write format
## Outro
Whichever integration you choose, having results from your k6 load tests in Grafana is really handy because it puts all the information you need about your application's performance in a single place. You could make a load testing dashboard, where you can see response times, virtual user counts, and load generator CPU and memory from the load test side by side with utilization and queue sizes from application components.
In the next video, I'm going to go in-depth into the Grafana plugin and learn how to set that up. Thanks for listening, and see you next time! :)
## Related videos and resources
Prometheus Remote Write for k6 Cloud: [](https://k6.io/docs/cloud/integrations/cloud-apm/prometheus-remote-write/#grafana-cloud-setup)[https://k6.io/docs/cloud/integrations/cloud-apm/prometheus-remote-write/#grafana-cloud-setup](https://k6.io/docs/cloud/integrations/cloud-apm/prometheus-remote-write/#grafana-cloud-setup)
Prometheus Remote Write for k6 OSS: [](https://k6.io/docs/results-visualization/grafana-cloud/)[https://k6.io/docs/results-visualization/grafana-cloud/](https://k6.io/docs/results-visualization/grafana-cloud/)
k6 Cloud Grafana data source plugin: [](https://k6.io/docs/cloud/integrations/grafana-plugin/)[https://k6.io/docs/cloud/integrations/grafana-plugin/](https://k6.io/docs/cloud/integrations/grafana-plugin/)
## Pre-production
- [ ] Take a thumbnail photo and create one for YouTube (1280 x 720).
- [ ] Add description.
- [ ] Include the title and any keywords in the first few sentences, but in a natural way.
- [ ] Add related videos and resources as links.
- [ ] Add end screen.
- [ ] Add cards if necessary.
- [ ] Add video to relevant playlist(s), or create a playlist if necessary.
- [ ] Create captions using Descript or using the script, then edit them.
- [ ] (For k6 videos) Send Floor thumbnail and video link for promotion.
- [ ] Add chapters for YouTube if longer than 5 minutes.
- [ ] Schedule on YouTube.
## Post-production
- [ ] Promote on personal social media.
- [ ] Twitter
- [ ] LinkedIn
- [ ] Create a blog post on [nicolevdh.com](http://nicolevdh.com)
- [ ] Include in a weekly newsletter.