Skip to content

Commit

Permalink
9501 Kubernetes Monitoring and Troubleshooting (#308)
Browse files Browse the repository at this point in the history
* Dry run feedback addressed

* address lab2 review comments

* feedback from live lab group run

* learn more about log ex link added

* video to be updated- removed

* video viewing statement removed.

* replaced outdated Logex workshop link
  • Loading branch information
Heena-GitHubOracle authored Aug 28, 2024
1 parent 75eacbb commit b279b1b
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 31 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Connect to the Kubernetes Cluster (Optional Study)
# Lab 1 - Connect to the Kubernetes Cluster (Optional Study)

## Introduction

Expand All @@ -14,9 +14,8 @@ In this lab, you will see step-by-step instructions to:


## (Viewing Excercise Only) Task 1: Connect to the existing Kubernetes Cluster
> **Note** : **No action is needed from the user as this is only reading excercise.**
<<<VIDEO TO BE UPLOADED>>>
> **Note** : **No action is needed from the user as this is only viewing excercise.**


**Congratulations!** In this lab, you have successfuly completed the following tasks:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Interactive Analytics and Troubleshooting
# Lab 3 - Interactive Analytics and Troubleshooting

## Introduction

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ This live lab will cover setting up end-to-end monitoring for a sample Kubernete

Estimated Workshop Time: 01 hours 30 minutes

Watch the video below for a quick walk-through of the lab.
[Exploring Oracle Cloud Infrastructure Logging Analytics](videohub:1_dt55vn2d)

### Objectives

In this workshop, you will learn how to:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Monitor the existing Kubernetes Cluster Solution
# Lab 2 - Monitor the existing Kubernetes Cluster solution

## Introduction

Expand All @@ -21,9 +21,9 @@ In this lab, you will see step-by-step instructions to:

1. To navigate to Solutions page, follow one of the below two methods.

- Open url : https://cloud.oracle.com/loganalytics/solutions?region=us-phoenix-1&tenant=emdemo
- **Method 1** - Direct url : https://cloud.oracle.com/loganalytics/solutions?region=us-phoenix-1&tenant=emdemo

- From Navigation Menu > **Observability & Management** > **Logging Analytics** > **Solutions**.
- **Method 2** - From Navigation Menu > **Observability & Management** > **Logging Analytics** > **Solutions**.
![final-navigation-solution](images/final-navigation-solution.gif)

2. Click on the Kubernetes tile.
Expand Down Expand Up @@ -97,7 +97,7 @@ In this lab, you will see step-by-step instructions to:
![cpucore-metrics](images/cpucore-metrics.png)
- There are total 17 metrics widgets available in cluster view. For details of metrics widgets refer [here](https://docs.oracle.com/en-us/iaas/logging-analytics/doc/kubernetes-solution.html).

2.  Use scroll up and down to see different telemetry widgets.
2.  Scroll Metrics widgets in Telemetry panel using arrow buttons.

- To view all metrics widgets available in cluster, use arrow above first widget to move up and arrow below fourth widget to move down.
![metrics-scrolling](images/latest-metrics-scrolling.gif)
Expand Down Expand Up @@ -137,9 +137,9 @@ This widget helps you to monitor the trend and distribution of potential issues

3. Review Issue trend and potential issues charts.

- Observe All Issues section showing Issue trend chart. This time series chart gives count of Issues detected over given time interval. Hover over data points for details.
- Observe *All Issues* chart, this time series chart gives count of Issues detected over given time interval. Hover over data points for details.
![kubesys-all-issues](images/kubesys-all-issues.png)
- Check Potential Issues chart to view Issues count grouped by kubernetes components & error. Hover over different colored data points to view details of components with corresponding error.
- Check *Potential Issues* chart to view Issues count grouped by kubernetes components & error. Hover over different colored data points to view details of components with corresponding error.
![kubesys-potential-issues](images/kubesys-potential-issues.png)

4. Review issues table to see kubernetes component logs. 
Expand All @@ -160,9 +160,9 @@ This widget helps you to monitor the trend and distribution of potential issues

2. Review trend of issues and specific issues.

- Observe All Issues section showing Issue trend chart. This time series chart gives count of Issues detected over given time interval. Hover over data points for details.
- Observe *All Issues* chart, this time series chart gives count of Issues detected over given time interval. Hover over data points for details.
![oshealth-all-issues](images/oshealth-all-issues.png)
- Check Issues chart to view Issues count grouped by kubernetes component, Node, Issues count, Label & Error. Hover over the data points to get potential issue details.
- Check *Issues Trend* chart to view Issues count grouped by kubernetes component, Node, Issues count, Label & Error. Hover over the data points to get potential issue details.
![oshealth-potential-issues](images/oshealth-potential-issues.png)
- Move down to view logs table. Check the Cluster sample column records for list of issues and see related details about node, count etc in different columns.
![oshealth-issues-logs](images/oshealth-issues-logs.gif)
Expand Down Expand Up @@ -199,7 +199,7 @@ Events section displays the State changes occurring in Kubernetes Cluster in the

1. Filter ***wpexapp*** namespace from topology to see workloads, nodes and pods for this namespace.

- In Topology diagram, in Namespace tier search for node with name - *wpexapp* and right click on it.
- In Topology diagram, in Namespace tier search for node with name - *wpexapp* and **right click** on it.
![add-ns-filter](images/add-ns-filter.png)
- Hit Add to filters option, *wpexapp* will be added to Namespace filter in top right corner. Observe the topology view reflecting changes in objects in the namespace which includes workloads and nodes.
![ns-filtered-topology](images/ns-filtered-topology.png)
Expand All @@ -219,7 +219,7 @@ Events section displays the State changes occurring in Kubernetes Cluster in the

- View logs for cluster node in topology.

- In topology right click on main cluster node and hit View logs on context menu.
- In topology **right click** on main cluster node and hit **View logs** on context menu.
![cluster-viewlogs](images/cluster-viewlogs.png)
- A Visualization pops up which helps identifying New issues in logs in the selected time range, at cluster level.
- These are the issues found in the selected time range but are not present in the baseline time range specified for the analysis(last 12 hours). Hover info icon for more details.
Expand All @@ -234,7 +234,7 @@ Events section displays the State changes occurring in Kubernetes Cluster in the

- View logs for ***wpexapp*** namespace node in topology.

- In topology view Namespace tier right click on *wpexapp* and hit View logs on context menu.
- In topology view Namespace tier **right click** on *wpexapp* and hit **View logs** on context menu.
![ns-viewlogs](images/ns-viewlogs.png)
- A panel pops up which helps identifying new issues under *wpexapp* namespace in the selected time range. Review errors in records and corresponding details of log sources, issue counts and others in different columns.
![ns-viewlogs-panel](images/ns-viewlogs-panel.png)
Expand All @@ -243,7 +243,7 @@ Events section displays the State changes occurring in Kubernetes Cluster in the

- View logs for a workload in ***wpexapp*** namespace.

- In topology in Workload tier right click on any workload and hit View logs on context menu.
- In topology in Workload tier **right click** on any workload and hit **View logs** on context menu.
![workload-viewlogs](images/workload-viewlogs.png)
- A panel pops up which helps identifying new issues for this workload under *wpexapp* namespace in the selected time range. Review issues in Cluster Sample column and other columns to view details of error log sources, issue counts, etc.
![workload-viewlogs-panel](images/workload-viewlogs-panel.png)
Expand All @@ -252,7 +252,7 @@ Events section displays the State changes occurring in Kubernetes Cluster in the

- View logs for a Node in ***wpexapp*** namespace.

- In topology in Node tier right click on any Node and hit View logs on context menu.
- In topology in Node tier **right click** on any Node and hit **View logs** on context menu.
![node-viewlogs](images/node-viewlogs.png)
- A panel pops up which helps identifying new issues for this Node under *wpexapp* namespace in the selected time range. Review table records for issue details.
![node-viewlogs-panel](images/node-viewlogs-panel.png)
Expand All @@ -261,7 +261,7 @@ Events section displays the State changes occurring in Kubernetes Cluster in the

- View logs for pods from Pods by workload section.

- In Pods by workload section right click on any pod polygon and hit View logs on context menu.
- In Pods by workload section **right click** on any pod polygon and hit **View logs** on context menu.
![pods-viewlogs](images/pods-viewlogs.png)
- A panel pops up which helps identifying new issues for this pod in *wpexapp* namespace in the selected time range. Review table records for issue details.
![pods-viewlogs-panel](images/pods-viewlogs-panel.png)
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Next Steps for more Insights
# Lab 4 - Next Steps for more Insights

## Introduction

Expand Down Expand Up @@ -39,6 +39,8 @@ In this lab, you will see step-by-step instructions to:
2. Dashboards page will be displayed.
![dashboards-home](images/dashboards-home.png)
> **Note** : You will see an authorization error. It is expected as current user doesn't have permission to the root compartment.
3. Switch to the compartment **CW24\_Logging\_Analytics**.
- From the **Compartment** dropdown select the compartment **CW24\_Logging\_Analytics**.
![cw24-la-compartment](images/cw24-la-compartment.png)
Expand Down Expand Up @@ -88,21 +90,22 @@ In this lab, you will see step-by-step instructions to:
2. This will take you to the **Pie Chart view** of Log Explorer in context of Kubernetes Cluster Name.
![kubernetes-events-logs-pie-chart-view](images/kubernetes-events-logs-pie-chart-view.png)
3. **Exercise** Explore the different visualizations on Log Explorer page. Read more about [how to use Log Explorer for analyzing and visualizing logs in Logging Analytics.] (https://livelabs.oracle.com/pls/apex/r/dbpm/livelabs/run-workshop?p210_wid=3887)
![visualization-drop-down](images/visualization-drop-down.png)
4. To navigate back to the Kubernetes Cluster Summary page, click on the **Kubernetes Cluster Summary** as highlighted in the image below.
3. To navigate back to the Kubernetes Cluster Summary page, click on the **Kubernetes Cluster Summary** as highlighted in the image below.
![kubernetes-cluster-summary-nav-back](images/kubernetes-cluster-summary-nav-back.png)
5. Similarly you can explore other widgets in the Kubernetes Cluster Summary and other dashboards.
4. Similarly you can explore other widgets in the Kubernetes Cluster Summary and other dashboards.
**Congratulations!** In this lab, you have successfuly completed the following tasks:
- Visualized Pre-imported dashboards
- Visualized data in the Log Explorer
You may now proceed to the [next lab](#next).
This concludes the workshop.
## Learn More
* [How to use Log Explorer to analyze and visualize logs](https://livelabs.oracle.com/pls/apex/r/dbpm/livelabs/run-workshop?p210_wid=3887)
## Acknowledgements
* **Author** - Vikram Reddy, OCI Logging Analytics
Expand Down

0 comments on commit b279b1b

Please sign in to comment.