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 (New) and learn how to add several panels to a new dashboard that can be stack linked for future investigations. Using stack linking you can control which dashboards display as you traverse the hierarchy of the view, which chooses metadata.

Create a additional panels in a Dashboard

Now that you are familiar with the concept of Dashboard (New), let’s create some Time Series panels.

  1. Using <yourname> lab3 Dashboard, in the upper right, click Add Panel and select Time Series.

    Screen Shot 2019-09-05 at 12.24.54 AM.png
  2. Toggle to a metrics query builder. At the metrics window in the From, enter deployment=googleapps. When we are in the deployment view and select googleapps this dashboard will be available to display (stack linked).

  3. Click enter.

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

  4. Where it says get metric, enter container_cpu_usage_seconds_total.

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

  5. Next we will need to select a type of aggregation. Let’s select average. Click Screen Shot 2020-07-21 at 2.37.09 PM.png and select average from the dropdown menu.
    Screen Shot 2019-09-05 at 12.27.39 AM.png

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

  7. Name the chart Total CPUs Used.

  8. Click Add to Dashboard. Now you have 2 panels in <yourname> lab3.

Screen Shot 2020-07-21 at 2.39.07 PM.png

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

  2. 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

     

  3. Again, toggle to the metrics query builder. At the metrics window in the From, enter deployment=googleapps.

  4. Click enter.

  5. Where it says get metric, enter container_memory_usage_bytes.

  6. Next we will need to select a type of aggregation. Let’s select average. Click Screen Shot 2020-07-21 at 2.37.09 PM.png and select average from the dropdown menu.
    Screen Shot 2019-09-05 at 12.27.39 AM.png

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

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

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

  9. Click Add to Dashboard. Now you have 3 panels.You may also drag and resize the panels to look how you desire.

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

  10. This is automatically saved to our personal workspace folder. You can click Screen Shot 2020-07-21 at 2.47.17 PM.png on your personal folder and search for <yourname> lab3. You will see the completed Dashboard called <yourname> lab3 with the circle chart and two time series panels.

Screen Shot 2020-07-21 at 2.46.24 PM.png

 

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, <yourname> lab3 to the kubernetes stack. Recall earlier, 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 <yourname> lab3 dashboard instead? 

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

  1. In the <yourname> lab3 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 <yourname> lab3.

    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 (True or False?)

  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 (New).
  2. Applied stack linking to a dashboard.