## Thumbnail ![[datasourceplugin-thumbnail.png]] ## Title 1. How to install and use the k6 Cloud Grafana data source plugin ## What value do viewers get? - How to set up the Grafana plugin - for a local installation of Grafana - for Grafana Cloud - for Grafana on a k8s cluster ** (demo) ## Hook If you're already using k6 Cloud and Grafana, the k6 Cloud Grafana data source plugin lets you bring in all your load testing data from your k6 Cloud account so that you can see everything from within Grafana. Here's how to set that up! ## Structure - For local installation of Grafana - Make sure you have Grafana CLI installed. - Execute this command: `grafana-cli plugins install grafana-k6cloud-datasource` [](https://grafana.com/grafana/plugins/grafana-k6cloud-datasource/?tab=installation)[https://grafana.com/grafana/plugins/grafana-k6cloud-datasource/?tab=installation](https://grafana.com/grafana/plugins/grafana-k6cloud-datasource/?tab=installation) - Restart your Grafana server - For Grafana Cloud - Log into your Grafana Cloud account. - Go to the [k6 Cloud Data Source page](https://grafana.com/plugins/grafana-k6cloud-datasource/?tab=installation) and click Install plugin. - [](https://k6.io/docs/cloud/integrations/grafana-plugin/#installing-on-grafana-cloud)[https://k6.io/docs/cloud/integrations/grafana-plugin/#installing-on-grafana-cloud](https://k6.io/docs/cloud/integrations/grafana-plugin/#installing-on-grafana-cloud) - For Grafana on a k8s cluster (via Helm) - Create values.yaml file that includes `grafana-k6cloud-datasource` as a plugin - `helm install -f values.yaml grafana grafana/grafana` - Add k6 Cloud as a data source - Configure data source with your API token - Import dashboards - Look at past tests - The plugin is fairly new, so it's still a little buggy - you may have to play around with the dashboards to get the metrics you want, but the data is getting to Grafana. If you don't run into any issues, we've probably already fixed it! But I just wanted to point it out in case you're watching this earlier. ## Outro The k6 Cloud Grafana data source plugin is a great way to connect k6 Cloud to Grafana, and it works whether you're using Grafana on your local machine, on Grafana Cloud, or in a k8s cluster. If you're already using Prometheus, you might alternatively be interested in our Prometheus Remote Write integration, which effectively sends k6 test results to Grafana on a test-by-test basis. Thanks for watching! ## Related videos and resources ``` Installing and using the k6 Cloud Grafana data source plugin: [<https://k6.io/docs/cloud/integrations/grafana-plugin/>](<https://k6.io/docs/cloud/integrations/grafana-plugin/>) Installing the plugin for Grafana Cloud: [<https://grafana.com/plugins/grafana-k6cloud-datasource/>](<https://grafana.com/plugins/grafana-k6cloud-datasource/?tab=installation>) Get your k6 Cloud API token on this page: [<https://k6.io/docs/cloud/integrations/token>](<https://k6.io/docs/cloud/integrations/token>) Grafana Helm Charts repository: [<https://github.com/grafana/helm-charts/blob/main/charts/grafana/values.yaml>](<https://github.com/grafana/helm-charts/blob/main/charts/grafana/values.yaml>) ``` ## Pre-production - [x] Add instructions for Grafana on k8s [here](https://k6.io/docs/cloud/integrations/grafana-plugin/). - [x] Take a thumbnail photo and create one for YouTube (1280 x 720). - [x] Add description. - [x] Include the title and any keywords in the first few sentences, but in a natural way. - [x] Add related videos and resources as links. - [x] Add end screen. - [x] Add cards if necessary. - [x] 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. - [x] 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.