In the third part of this tutorial series we will create Query Variables and Annotations for our three Dashboards ( Testing, Support, Pipeline). Steffen Lorenz Grafana, InfluxDB, Monitoring Create QA dashboards with Grafana (Part 3) If you change the variables ( S1, S2, S3), the values of the panels should change. My Pipeline dashboard now looks like this: Now you can play with the size and placement of the panels. Under tab General just add Title: Last Duration: $Stage.įor tab Options select Stat: Current, Font size: 50%, Unit: minutes(m), Thresholds: 10,15, enable checkbox Show for Gauge, Min: 0, Max: 30 and enable checkboxes Threshold labels plus Threshold markers. Data Source: InfluxDB_pipeline_db, From: default, pipeline, WHERE: stage =~ /^$Stage$/, SELECT: field(duration) and FORMAT AS: Time series. Last Singlestat will have following Metrics. Pipeline singlestat panel (Last Duration) Data Source: InfluxDB_pipeline_db, From: default, pipeline, WHERE: stage =~ /^$Stage$/, SELECT: field(status)last() and FORMAT AS: Time series.Ĭhange to General tab and enter for Title: Last status: $Stage. In the Metrics tab you now enter the following values. One should show the Last Status and the other Last Duration. We are done with Graph panel … don’t forget to save! T1: gt, 15, Color critical, enable checkbox Fill and Y-Axis: left. Our last action for the Graph panel will be done in tab Display. Under tab Legend choose enable following checkboxes: Show, As Table, Min and Max. The Unit value for Left Y should be: minutes(m). Note: In case your graph is not displayed correctly, select on the Time picker dropdown: Last 30 days.Ĭhange to General tab and enter for Title: Duration: $Stage.Ĭhange to Axes tab and enable checkboxes Show for Left Y and X-Axis. Data Source: InfluxDB_pipeline_db, From: default, pipeline, WHERE: stage =~ /^$Stage$/, SELECT: field(duration), FORMAT AS: Time series and ALIAS BY: Duration. Add the Graph Panel here and select Edit in the title of panel. Now go to the still empty dashboard Pipeline. The prerequisite for this is that you have successfully completed the previous tutorials ( Part1, Part2, Part3). Steffen Lorenz Grafana, InfluxDB, Monitoring Create QA dashboards with Grafana (Part 4)įinally, we can create the first dashboard. I hope you have all the knowledge to create with Grafana awesome QA dashboards. On tab General have attentions to Repeat! The tab Legend for Graph panel have only Show checkbox enabled. 1x Graph panel and 1x Pie Chart panel ( we dynamically generate the others). Let’s get to the last dashboard ( Support). The Pie Chart Average: $Testers is simple, too. Here the important screens for Passed Total: $Testers:įor Singlestat Failed Total: $Testers, just change field(passed) to field(failed). Now you can edit the Singlestat panels ( one after the other). On tab Display enable only checkbox Lines. On tab Legend enable checkboxes Show, As Table, Min, Max and Current. On tab Metrics select Data Source InfluxDB_test_db and enter From: default suite WHERE: qa =~ /^$Testers$/, SELECT: field(passed) alias(Test Passed) field(skipped) alias(Tests Skipped) field(failed) alias(Tests Failed), FORMAT AS: Time series and ALIAS BY: $col.įor tab Axes just enable Show checkbox on Left Y and X-Axis, Unit: short, Scale: linear and Mode: Time. Under tab General enter for Title: Results: $Testers. 1x Graph panel, 2x Singlestat panel and 1x Pie Chart panel. I will just show now the most important configurations, from the 4th part you should already know the others.Īdd following panels. But after all, it’s up to your creativity how the results look. With a little Drag & Drop and resizing, your dashboard might look like this. Part 1, Part 2, Part 3 and Part 4 should have been successfully completed.įirst, I show the result. In the last tutorial of this series, we create the dashboards for testing and support.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |