Skip to content

Commit

Permalink
started to update Monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
lionelmace committed Nov 12, 2024
1 parent e226a2b commit 08d327b
Show file tree
Hide file tree
Showing 10 changed files with 139 additions and 41 deletions.
122 changes: 122 additions & 0 deletions archived/ex-9-monitor-initial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
# Monitor your Cluster with SysDig

IBM Cloud Monitoring with Sysdig is a co-branded cloud-native, and container- intelligence management system that you can include as part of your IBM Cloud architecture. Use it to gain operational visibility into the performance and health of your applications, services, and platforms. It offers administrators, DevOps teams, and developers full stack telemetry with advanced features to monitor and troubleshoot performance issues, define alerts, and design custom dashboards. IBM Cloud Monitoring with Sysdig is operated by Sysdig in partnership with IBM. [Learn more](https://cloud.ibm.com/docs/Monitoring-with-Sysdig?topic=Sysdig-getting-started).

In the next steps, you will learn how to use dashboards and metrics to monitor the health of your application.

## View SysDig pre-defined views and dashboards

Use views and dashboards to monitor your infrastructure, applications, and services. You can use pre-defined dashboards. You can also create custom dashboards through the Web UI or programmatically. You can backup and restore dashboards by using Python scripts.

The following table lists the different types of pre-defined dashboards:

| Type | Description |
| :--- | :--- |
| Applications | Dashboards that you can use to monitor your applications and infrastructure components. |
| Host and containers | Dashboards that you can use to monitor resource utilization and system activity on your hosts and in your containers. |
| Network | Dashboards that you can use to monitor your network connections and activity. |
| Service | Dashboards that you can use to monitor the performance of your services, even if those services are deployed in orchestrated containers. |
| Topology | Dashboards that you can use to monitor the logical dependencies of your application tiers and overlay metrics. |


## Complete the Sysdig installation wizard

1. Launch the Sysdig web UI.

![](../assets/icp-monitoring-launch.png)

2. In the Sysdig Welcome wizard, click **Next**
![](../assets/sysdig-wizard1.png)

3. Select **Kubernetes | GKE | OpenShift** as the installation method.
![](../assets/sysdig-wizard2.png)

4. You should see a message `You have X agents connected`. Click **GO TO NEXT STEP**.
![](../assets/sysdig-wizard3.png)

5. Setup is complete. Click **LET'S GET STARTED**
![](../assets/sysdig-wizard4.png)

6. Select **Next**
![](../assets/sysdig-wizard5.png)

7. Finally **Complete Onboarding**

![](../assets/sysdig-wizard6.png)


## View the Sysdig dashboard

1. Navigate the Sysdig console to get metrics on your Kubernetes cluster, nodes, deployments, pods, containers.

2. Under the **Explore** section,select **Containerized Apps** to view raw metrics for all workloads running on the cluster.

![](../assets/sysdig-select-app.png)

3. Under **Explore**, select **Nodes**, search `patient-ui`. Look for the partientui pod entry.

![](../assets/sysdig-explore-node.png)

4. Under **Dashboard**, select **Default Dashboards** > **Applications**. Then select **HTTP** to get a global view of the cluster HTTP load.

5. Under Dashboard, select **Default Dashboards** > **Hosts & Containers**. Then select **Overview by Host** to understand how nodes are currently performing.


## Explore the normal traffic flow of the application

You can use the **Connection Table** dashboard to monitor how data flows between your application components.

1. From the **Explore** tab, select **Deployments**.
2. Select your cluster (e.g. roks081). Then, select the namespace where you deployed your sample app.
3. Select the _patientui_ pod entry.
4. Select **Default Dashboards**.

![](../assets/explore-img-4.png)

5. Check out the two dashboards under **Hosts & Containers**:
* **Overview by Host**
* **Overview by Container**.

## Explore the cluster and the node capacity

1. From the **Explore** tab, select **Deployments**.
2. Select your cluster (e.g. roks081). Then, select the namespace where you deployed your sample app.
3. Select the _patientui_ pod entry.
4. Select **Default Dashboards**.
5. Select **Kubernetes > Kuberentes Cluster and Node Capacity**.

![](../assets/explore-img-9.png)

Check the **Total CPU Capacity**. This is the CPU capacity that has been reserved for the node including system daemons.

Check the **Total Allocatable CPU**. This is the CPU which is available for pods excluding system daemons.

Check the **Total Pod CPU limit**. It should be less than the allocatable CPU of the node or cluster.

Check the **Total Pod CPU Requested**. It is the amount of CPU that will be guaranteed for pods on the node or cluster.

Check the **Total Pod CPU Usage**. It is the total amount of CPU that is used by all Pods on the node or cluster.

## Explore the Network

1. From the **DASHBOARDS** tab, select **Default Dashboards**. Then, select **Network > Overview**.

The following dashboard is displayed. It shows information about all resources that are monitored thorugh the instance.

![](../assets/dashboard-img-2.png)

2. Change the scope of the dashboard to display information about your openshift cluster. Select **Edit scope** on the right side and change it:

![](../assets/dashboard-img-4.png)

The dashboard now shows information about the ibm-observe namespace.

![](../assets/dashboard-img-5.png)

## Congratulations!

That's it, you're done with the Red Hat OpenShift 4.3 on IBM Cloud workshop. Thanks for joining us!

{% hint style='tip' %}
Find more about IBM Cloud Monitoring with Sysdig in the [IBM Cloud documentation](https://cloud.ibm.com/docs/services/Monitoring-with-Sysdig/index.html#getting-started).
{% endhint %}
Binary file modified assets/icp-monitoring-launch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/sysdig-select-app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/sysdig-wizard1.png
Binary file not shown.
Binary file removed assets/sysdig-wizard2.png
Binary file not shown.
Binary file removed assets/sysdig-wizard3.png
Binary file not shown.
Binary file removed assets/sysdig-wizard4.png
Binary file not shown.
Binary file removed assets/sysdig-wizard5.png
Binary file not shown.
Binary file removed assets/sysdig-wizard6.png
Binary file not shown.
58 changes: 17 additions & 41 deletions part2-openshift_ibmcloud/ex-6-monitor.md
Original file line number Diff line number Diff line change
@@ -1,66 +1,42 @@
# Monitor your Cluster with SysDig
# Monitor your Cluster

IBM Cloud Monitoring with Sysdig is a co-branded cloud-native, and container- intelligence management system that you can include as part of your IBM Cloud architecture. Use it to gain operational visibility into the performance and health of your applications, services, and platforms. It offers administrators, DevOps teams, and developers full stack telemetry with advanced features to monitor and troubleshoot performance issues, define alerts, and design custom dashboards. IBM Cloud Monitoring with Sysdig is operated by Sysdig in partnership with IBM. [Learn more](https://cloud.ibm.com/docs/Monitoring-with-Sysdig?topic=Sysdig-getting-started).
IBM Cloud Monitoring with Sysdig is a co-branded cloud-native, and container-intelligence management system that you can include as part of your architecture.

In the next steps, you will learn how to use dashboards and metrics to monitor the health of your application.

## View SysDig pre-defined views and dashboards

Use views and dashboards to monitor your infrastructure, applications, and services. You can use pre-defined dashboards. You can also create custom dashboards through the Web UI or programmatically. You can backup and restore dashboards by using Python scripts.
Use views and dashboards to monitor your infrastructure, applications, and services. You can use pre-defined dashboards. You can also create custom dashboards through the Web UI or programmatically.

The following table lists the different types of pre-defined dashboards:

| Type | Description |
| Type | Description |
| :--- | :--- |
| Applications | Dashboards that you can use to monitor your applications and infrastructure components. |
| Host and containers | Dashboards that you can use to monitor resource utilization and system activity on your hosts and in your containers. |
| Network | Dashboards that you can use to monitor your network connections and activity. |
| Service | Dashboards that you can use to monitor the performance of your services, even if those services are deployed in orchestrated containers. |
| Topology | Dashboards that you can use to monitor the logical dependencies of your application tiers and overlay metrics. |


## Complete the Sysdig installation wizard

1. Launch the Sysdig web UI.

![](../assets/icp-monitoring-launch.png)
| Network | Dashboards that you can use to monitor your network connections and activity. |
| Service | Dashboards that you can use to monitor the performance of your services, even if those services are deployed in orchestrated containers. |
| Topology | Dashboards that you can use to monitor the logical dependencies of your application tiers and overlay metrics. |

2. In the Sysdig Welcome wizard, click **Next**
![](../assets/sysdig-wizard1.png)

3. Select **Kubernetes | GKE | OpenShift** as the installation method.
![](../assets/sysdig-wizard2.png)

4. You should see a message `You have X agents connected`. Click **GO TO NEXT STEP**.
![](../assets/sysdig-wizard3.png)

5. Setup is complete. Click **LET'S GET STARTED**
![](../assets/sysdig-wizard4.png)

6. Select **Next**
![](../assets/sysdig-wizard5.png)
In the next steps, you will learn how to use dashboards and metrics to monitor the health of your application.

7. Finally **Complete Onboarding**
## View the Monitoring dashboard

![](../assets/sysdig-wizard6.png)
1. Go the Monitoring section under [Observability](https://cloud.ibm.com/observability/monitoring)

1. Launch the Monitoring Dashboard.

## View the Sysdig dashboard
![dashboard](../assets/icp-monitoring-launch.png)

1. Navigate the Sysdig console to get metrics on your Kubernetes cluster, nodes, deployments, pods, containers.
1. Navigate the Monitoring console to get metrics on your Kubernetes cluster, nodes, deployments, pods, containers.

2. Under the **Explore** section,select **Containerized Apps** to view raw metrics for all workloads running on the cluster.
1. Under the **Explore** section,select **Containerized Apps** to view raw metrics for all workloads running on the cluster.

![](../assets/sysdig-select-app.png)

3. Under **Explore**, select **Nodes**, search `patient-ui`. Look for the partientui pod entry.
1. Under **Explore**, select **Nodes**, search `patient-ui`. Look for the partientui pod entry.

![](../assets/sysdig-explore-node.png)

4. Under **Dashboard**, select **Default Dashboards** > **Applications**. Then select **HTTP** to get a global view of the cluster HTTP load.

5. Under Dashboard, select **Default Dashboards** > **Hosts & Containers**. Then select **Overview by Host** to understand how nodes are currently performing.
1. Under **Dashboard**, select **Default Dashboards** > **Applications**. Then select **HTTP** to get a global view of the cluster HTTP load.

1. Under Dashboard, select **Default Dashboards** > **Hosts & Containers**. Then select **Overview by Host** to understand how nodes are currently performing.

## Explore the normal traffic flow of the application

Expand Down

0 comments on commit 08d327b

Please sign in to comment.