Service Monitoring

3 min read

Service Monitoring #

1. Service Monitoring Overview #

Overview

After a service is deployed, you need to know whether it is running as expected. Service Monitoring gives you a live view of a deployed service in one place, from the service page in BuildPiper, so you can check its health and find problems without leaving the platform.

Using Service Monitoring, you can:

Check the life cycle of the pods: whether they are up or down

Review the events and conditions of the deployment and of each pod

Read the logs of a pod and open a terminal inside it

View the service YAML and deployment YAML

Figure 1: Navigation to Service Monitoring

Figure 1: Navigation to Service Monitoring

  1. 1

    Login to BuildPiper.

  2. 2

    Click Application.

  3. 3

    Open the service.

  4. 4

    Click Service Monitoring.

Summary #

Monitoring Dashboard #

The Summary tab opens first. The top bar shows the service name, environment and replica counts.

Figure 2: Service Monitoring - Summary

Figure 2: Service Monitoring – Summary

In Graph View, the ring shows the pods in each state:

Swipe horizontally to view all columns →
State Meaning
Ready, Starting, Not Ready Pods that are running or coming up.
Terminating, Failed, Unknown Pods that are stopping or have a problem.

The Details panel shows:

Swipe horizontally to view all columns →
Detail Description
Artifact Live The artifact that is live.
Deployment Number The number of the deployment.
Namespace The namespace of the deployment.
Restart Count The number of pod restarts.
New ReplicaSet Ready pods of the new ReplicaSet, for example 1/1.
Auto scaling Enabled or disabled.
Replication Status Scaling mode, desired replicas and ready pods. Click Update to change it.

List View #

Click List View to see the pods grouped by ReplicaSet.

Figure 3: Service Monitoring - List View

Figure 3: Service Monitoring – List View

Swipe horizontally to view all columns →
Item Description
New Version The new ReplicaSet of the deployment, marked New.
Desired / Ready / Available / Terminating Number of pods in each state for the ReplicaSet.
CPU Usage / Memory Usage Usage compared with the request and limit. Shows NA when no usage is available.
Pod Lifecycle by ReplicaSet Each pod of the ReplicaSet with its status, ready state and age. Each pod is clickable. Use it to confirm whether old pods are serving, new pods are starting, or failed pods need debugging.

Deployment Conditions & Events #

Check this section before the pods. It shows the health and recent activity of the deployment.

Swipe horizontally to view all columns →
Button Description
Conditions Shows the current rollout health of the deployment, such as whether it is progressing or available. Columns: Type, Status, Reason, Message and Last Transition.
Events Shows a timeline of what has happened, such as scaling or replica changes.

Pods #

Open the Pods tab to see all pods of the deployment. It shows 10 pods at a time.

Figure 4: Service Monitoring - Pods

Figure 4: Service Monitoring – Pods

Pod Details #

Click View Details on a pod to open its details. The screen shows the pod name, its ReplicaSet and the image it runs.

Swipe horizontally to view all columns →
Button Description
OPEN LOGS View the logs of the pod.
OPEN TERMINAL Open a terminal in the pod.
POD YAML View the YAML of the pod.

It has four tabs: Overview, Events, Resource and Labels.

Overview #

Figure 5: Pod Details - Overview

Figure 5: Pod Details – Overview

Pod Conditions shows the life cycle checkpoints Kubernetes tracks for the pod, with their Status and Last Transition:

Resource #

Figure 6: Pod Details - Resource

Figure 6: Pod Details – Resource

Swipe horizontally to view all columns →
Item Description
CPU Usage Current CPU use compared with the request and limit of the pod.
Memory Usage Current memory use compared with the request and limit of the pod.

Labels #

Figure 7: Pod Details - Labels and Annotations

Figure 7: Pod Details – Labels and Annotations

Swipe horizontally to view all columns →
Item Description
Labels Labels of the pod, for example app: cloud-sentry.
Annotations Annotations of the pod, for example kubectl.kubernetes.io/restartedAt.

Open Logs #

Figure 8: Pod Logs

Figure 8: Pod Logs

Open Terminal (Pod Terminal SSH) #

  1. 1

    Click OPEN TERMINAL. Terminal Access opens.

  2. 2

    Select the Container.

  3. 3

    Select the Shell, for example /bin/bash.

  4. 4

    Click CONNECT. The status changes to Connected and the button changes to DISCONNECT.

Figure 9: Terminal Access

Figure 9: Terminal Access

The terminal closes after 5 minutes of inactivity (idle timeout).

To use the terminal, the Pod Terminal Policy must also be configured in System Settings.

  1. 1

    Click your profile and select System Settings.

  2. 2

    Select Deployment & CD Configuration.

  3. 3

    Open Pod Terminal Policy.

Figure 10: Pod Terminal Policy

Figure 10: Pod Terminal Policy

Swipe horizontally to view all columns →
Field Description
Enable Command Execution Enables terminal access to running Kubernetes containers, allowing users to execute commands within pods.
Command Restriction Method Specifies the method used to restrict pod terminal commands, such as allowlist, blocklist, or regular expression matching.
Starts With Expression Defines the list of command prefixes that are blocked from execution in the pod terminal.
Ends With Expression Defines the list of command suffixes that are blocked from execution in the pod terminal.
Contains Expression Defines the list of substrings that, when present in a command, prevent it from being executed in the pod terminal.
Matches Expression (Regex) Defines the regular expression patterns used to identify and block commands in the pod terminal.

Click APPLY IMMEDIATELY or APPLY ASYNC to save the policy.

Pod YAML #

Click POD YAML to view the YAML of the pod. Use the icons at the top right to change the theme, expand the panel or close it.

Figure 11: Pod YAML

Figure 11: Pod YAML