finish this
This commit is contained in:
@ -90,6 +90,7 @@ This is an optional part, feel free to skip. We'll set up production grade monit
|
||||
* `Private docker registry` with minimal UI for all your custom app images that will be built on your development process and be used as based image for your production docker on cluster
|
||||
* `Drone CI` as self-hosted CI/CD solution
|
||||
* `SonarQube` as self-hosted quality code control
|
||||
* Get perfect load testing environment with `k6` + `InfluxDB` + `Grafana` combo
|
||||
|
||||
Finally, we'll finish this guide by a simple mini-app development with above CI/CD integration !
|
||||
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 146 KiB After Width: | Height: | Size: 144 KiB |
@ -772,6 +772,8 @@ Deploy the stack, and it should launch a load testing for 1 minute. In the end,
|
||||
|
||||
With Loki as the default log driver, we get only current logs of running tasks in Portainer, so when completed, the logs are wiped. You must go through Grafana in the *Logs* dashboard that we built on previous part in order to check the final raw results.
|
||||
|
||||
[](grafana-k6-logs.png)
|
||||
|
||||
### Visualization through Grafana
|
||||
|
||||
It's now time to go back to Grafana and try to get some charts. First Add a new InfluxDB *Data source*. Set `http://influxdb_db:8086` inside *URL* field and `k6weather` in *Database* field, then *Save & test*.
|
||||
@ -831,11 +833,7 @@ Then use this script on above `k6` stack and be sure to comment `K6_VUS` and `K6
|
||||
|
||||
[](portainer-k6-logs.png)
|
||||
|
||||
The final raw result will be available at Grafana logs :
|
||||
|
||||
[](grafana-k6-logs.png)
|
||||
|
||||
Here the corresponding *Chart.js* result for the 1st minute :
|
||||
Check the raw and graph result in Grafana as previous scenario. Here the corresponding *Chart.js* result in my case for the 1st minute :
|
||||
|
||||
{{< chart >}}
|
||||
type: 'line',
|
||||
|
Reference in New Issue
Block a user