Skip to main content
Sumo Logic

Lab 4 - Create a dashboard and apply stack linking

Learn  about our new Dashboards (Beta), learn how to edit existing dashboards, and create new ones that can be stack linked for future investigations

Getting Started

In this lab, you will be familiarized with our new Dashboards (Beta) and learn how to create a new dashboard that can be stack linked for future investigations.

Create a Dashboard

Now that you are familiar with the concept of Dashboard (Beta), let’s create our own.

  1. To open a new Dashboard (Beta), on the Home page, click + New.
  2. Select Dashboard from the drop-down list.
  3. Now let’s add a time series panel. Click Add Panel and select Time Series.

    Screen Shot 2019-09-05 at 12.24.54 AM.png

  4. At the metrics window in the From, enter deployment=googleapps.

  5. Click enter.

    Screen Shot 2019-09-05 at 12.26.41 AM.png

  6. Where it says get metric, enter container_cpu_usage_seconds_total.

    Screen Shot 2019-09-05 at 12.27.30 AM.png

  7. Next we will need to select a type of aggregation. Let’s select average. Click no aggregation and select avg from the dropdown menu.
    Screen Shot 2019-09-05 at 12.27.39 AM.png

  8. To edit the title of the dashboard panel, on the top left, click Chart, then on the far right click the gear icon, .

  9. Name the chart, Chart Title Total CPUs Used.

  10. Click Add to Dashboard.

  11. Let’s repeat the steps, but this time create a memory monitoring panel.

  12. Now let’s add a time series panel. Click Add Panel and select Time Series.
    Screen Shot 2019-09-05 at 12.24.54 AM.png

     

  13. At the metrics window in the From, enter deployment=googleapps.

  14. Click enter.

  15. Where it says get metric, enter container_memory_usage_bytes.

  16. Next we will need to select a type of aggregation. Let’s select average. Click no aggregation and select avg from the dropdown menu.

    Screen Shot 2019-09-05 at 12.27.39 AM.png

  17. To edit the title of the dashboard panel, on the top left, click Chart, then on the far right click gear icon,

  18. Name the chart, under Chart Title, type Memory Bytes Used.

    Screen Shot 2019-09-05 at 12.37.08 AM.png

  19. Click Add to Dashboard.

    Screen Shot 2019-09-05 at 12.37.15 AM.png

  20. Let’s save it to our personal workspace folder and give it an identifiable name. Click save icon, .

  21. In the popup window, under Name, enter Googleapp Deployment Stats.

  22. Next you will save to your personal folder. Personal is selected by default, but if not highlighted, select Personal.

  23. At the bottom of the Save Item popup, click Save As.

    Screen Shot 2019-09-05 at 12.37.26 AM.png

  24. You will see the completed Dashboard called Googleapp Deployment Stats with the two time series panels monitoring aspects of CPU and Memory.

Apply Stack Linking

Stack linking is a dashboard level setting that you can use to attach metadata that describes what type of content you are showing on your dashboard. It allows you to attach the dashboard to components that show-up in the hierarchy in the Explore Tab.

Let’s connect our new dashboard, Googleapp Deployment Stats to the kubernetes stack. Recall in steps 1-13 of this lab, when we clicked on googleapps from the Kubernetes - Deployment View we were placed on the Kubernetes- Deployment Overview dashboard. What if we want it to go to our new Googleapp Deployment Stats dashboard instead? 

Let’s direct it to display the Googleapp Deployment Stats dashboard.

  1. In the Googleapp Deployment Stats dashboard tab, to the left of AddPanel, click the details icon.

  2. Select Create Stack Linking.

    Screen Shot 2019-09-05 at 12.42.25 AM.png

  3. In the Dashboard Stack Linking popup, select Key, type deployment.

  4. Under Value(s), type googleapps.

    Screen Shot 2019-09-05 at 12.42.32 AM.png

     

  5. To save the key value pair, click Apply.

  6. To save the dashboard changes we just did, click save icon.

Screen Shot 2019-09-05 at 4.49.42 PM.png

  1. Now let’s open an Explore tab and navigate to googleapps in the deployment view again, just as we did in the beginning of this lab. Yet this time, we should see our applied stack linking.

  2. First refresh the browser to ensure our Explore tab picks up the newly applied stack linking. Click .

  3. Now let’s open an Explore tab. On the Home page, click +New.

  4. Select Explore.

    Screen Shot 2019-09-05 at 12.42.42 AM.png

  5. Change your view to the deployment view, under Explore By, click Kubernetes Service View.

  6. Select Kubernetes Deployment View.

  7. Let’s expand down to a particular dashboard, click prod01.travellogic.info.

  8. Click prod-loggen.

    Screen Shot 2019-09-05 at 12.42.50 AM.png

  9. Now let’s check the stack linking. Click googleapps.

    Screen Shot 2019-09-05 at 12.43.07 AM.png

  10. At the top in Dashboards, click the drop down arrow and select Googleapp Deployment Stats.

    Screen Shot 2019-09-05 at 12.43.36 AM.png

  11. Your newly created dashboard displays, as it has been stack linked to the googleapps deployment. You have attached the deployment googleapps to your new dashboard.

    Screen Shot 2019-09-05 at 12.43.44 AM.png

Quiz

  1. Stack linking is a dashboard level setting that allows you to filter which dashboards show up across components in the Explorer tab hierarchy.

  2. To create a new dashboard, you select panel from +New.

Summary

Congratulations! You’ve completed these tasks in Part 3 of the Kubernetes Hands-on Labs:

  1. Created a dashboard using Dashboard (Beta).
  2. Applied stack linking to a dashboard.