Skip to content

#Container monitoring

The container monitoring page is used to monitor and manage the running status of local Docker containers. Through this page, you can view the running status of all backend service containers in real time, view container logs, and restart containers.

1. Enter container monitoring

1.1 Open the container monitoring page

Top drop-down list menu

Click "Container Monitoring" in the top drop-down menu to enter the container monitoring page.

Enter the container monitoring page

2. View container statistics

2.1 Statistics Card

Three statistics cards are displayed at the top of the page, showing an overview of the container:

Container Statistics

Total number of containers:

  • Displays the total number of all Docker containers in the system
  • Includes running and stopped containers
  • Blue icon logo

Running:

  • Displays the number of currently running containers
  • Green icon logo -Containers in a healthy state should all be running

Stopped:

  • Shows the number of stopped or exited containers
  • Orange icon logo
  • Need to pay attention to whether the stopped container is normal

3. View container list

3.1 List field description

The container list is displayed in table form and contains the following fields:

Container list

FieldDescription
IndexRow number in the current page, auto-calculated starting from 1
Container NameName of the Docker container, usually the service name (e.g., cuemate-web-api, cuemate-asr), displayed in bold for easy identification
ImageDocker image name and version used by the container, displayed in code format
Example: registry.cn-beijing.aliyuncs.com/cuemate/cuemate-web-api:v0.1.1
StatusCurrent running status of the container, displayed with different colored labels:
• Running: Green label
• Stopped: Orange label
• Exited: Red label
• Created: Blue label
• Paused: Purple label
PortsPort mapping information of the container, showing host port to container port mapping
If there are more than 2 ports, "+N" is displayed to indicate more ports
Example: 3001:3001, 10095:10095
SizeDisk space occupied by the container, including container layer and writable layer size
Actions• Restart: Restart this container
• Logs: Open log side panel to view container logs

3.2 Paging function

Pagination controls are available at the bottom of the list:

Function description:

  • Display current page number and total number of pages
  • Show total number of records
  • Optional display quantity per page: 10, 20, 50, 100 items
  • Switch the page number to see more containers

3.3 Automatic refresh

The system automatically refreshes the container list every 30 seconds to ensure that the latest container status is displayed.

4. Restart the container

4.1 Restart a single container

Click the "Restart" button in the container list to restart the specified container.

Restart container

Restart process:

  1. Click the "Restart" button of the target container
  2. A confirmation dialog box pops up: "Restarting this service may cause some CueMate services to be disconnected for a period of time. Are you sure to restart?"
  3. Click "OK" to perform the restart
  4. Display a full-screen loading prompt: "Restarting the container, please wait..."
  5. After the restart is completed, the prompt "Container restarted successfully" will be displayed.
  6. The list automatically refreshes to show the latest status

Note:

  • Restarting the container will cause a brief service interruption
  • The restart process usually takes a few seconds to tens of seconds
  • After restarting, the container will maintain its original configuration and data
  • Please make sure no important operations are in progress before restarting

Applicable scenarios:

  • An abnormality occurs in the container and needs to be restarted and recovered.
  • Configuration needs to be restarted after updating to take effect
  • Memory leak requires restarting to release resources

5. View container logs

5.1 Open the log side pop-up box

Click the "Log" button in the container list to open the container log pop-up box.

Container logs

Pop-up box features:

  • The pop-up box on the right side takes up 85% of the screen width
  • Show full details and log content of the container -Support real-time viewing and refreshing of logs

5.2 Container information

The top of the log pop-up box displays container details:

Basic information:

  • Container name
  • Running status (with color label)
  • Image name and version
  • Container size
  • Status description
  • Creation time (local time format)

Port information:

  • Show all port mappings
  • Displayed as a green label
  • Format: host port: container port

5.3 Log content

The running log of the container is displayed below the pop-up box:

Log Viewer Features:

  • Fixed height 400px, support scrolling
  • Dark theme background (white text on black background)
  • Automatically wrap the display
  • Show full log output

Log source:

  • The standard output (stdout) of the Docker container
  • Docker container’s standard error (stderr)
  • Get the latest log content in real time

6. Log operation

6.1 Refresh log

Click the "Refresh" button in the upper right corner of the log pop-up box to re-obtain the latest container logs.

Log operations

Refresh function:

  • Request container log content
  • Get the latest log output
  • Show loading status when refreshing
  • Automatically update the log display after the refresh is completed

Usage Scenario:

  • View the latest log output
  • Real-time logs are needed when troubleshooting problems
  • Verify whether the operation takes effect

6.2 Replication log

Click the "Copy" button in the upper right corner of the log pop-up box to copy the log content to the clipboard.

Copy function:

  • Copy all log contents with one click
  • Use modern clipboard API (navigator.clipboard)
  • Automatic downgrade to legacy copy method (compatible with older browsers)
  • After successful copying, the prompt "The log content has been copied to the clipboard" will be displayed.

Usage Scenario:

  • Save log content locally
  • Share logs with technical support
  • Analyze logs in other tools
  • Record the troubleshooting process

7. Refresh container list

7.1 Manual refresh

Click the "Refresh" button in the upper right corner of the container list to manually refresh the container list.

Refresh list

Refresh function:

  • Retrieve the latest status of all containers
  • Updated statistics card data
  • After the refresh is completed, the "Container List Refreshed" prompt is displayed
  • Show loading status when refreshing

Usage Scenario:

  • View container status changes
  • Verify that the restart operation was successful
  • Check if the new container is started
  • Confirm if the container is stopped

7.2 Automatic refresh

The system will automatically refresh the container list:

Refresh Strategy:

  • Automatically refresh every 30 seconds
  • Refresh silently without displaying prompt information
  • Automatically update statistics and list content
  • Stop automatic refresh after leaving the page

8. Container service description

8.1 Backend service container

The CueMate system uses the following Docker containers to provide services:

Web Services:

  • cuemate-web - Main window service
  • Port: 3004
  • Provides main window service access

API Service:

  • cuemate-web-api - Backend API service
  • Port: 3001
  • Provide business logic and data access

LLM Routing Service:

  • cuemate-llm-router - Large model routing service
  • Port: 3002
  • Route and manage LLM requests

RAG SERVICES:

  • cuemate-rag-service - Knowledge base search service
  • Port: 3003
  • Provide vector retrieval function

Speech Recognition Service:

  • cuemate-asr - cuemate-asr speech recognition service
  • Port: 10095
  • Provide real-time speech to text function

Vector Database:

  • cuemate-chroma - ChromaDB vector database
  • Port: 8000
  • Store and retrieve vector data

8.2 Service dependencies

Dependency Description:

  • Web services depend on API services
  • API service depends on LLM routing service and RAG service
  • RAG service relies on ChromaDB vector database
  • Desktop client relies on ASR speech recognition service

Restart Impact:

  • Restarting the Web service does not affect other services
  • Restarting the API service affects web and desktop clients
  • Restarting the LLM routing service will affect the AI function
  • Restarting the ASR service will affect the speech recognition function

9. Log viewing skills

9.1 Common log content

Normal log:

  • Service startup information
  • HTTP request log
  • Database connection log
  • Scheduled task execution log

Error log:

  • Exception stack information
  • Database connection failed
  • Third-party service call failed
  • Configuration error prompts

Performance Log:

  • Request response time
  • Database query time
  • Cache hit rate
  • Resource usage

9.2 Log analysis method

Positioning problem:

  1. Check the latest error log
  2. Search keywords (such as Error, Exception)
  3. Track request ID or user ID
  4. Analyze log time series

Troubleshooting steps:

  1. Determine when the problem occurred
  2. View the logs of the corresponding time period
  3. Locate error stack information
  4. Analyze the cause of the error
  5. Develop solutions

10. Best Practices

10.1 Daily monitoring

Recommended monitoring frequency:

  • Check container status once a day
  • Pay attention to the number of "stopped" containers
  • Check container logs regularly
  • Monitor container resource usage

10.2 Troubleshooting

Troubleshooting process:

  1. First check the statistics card to confirm the number of abnormal containers.
  2. Locate the exception container in the list
  3. Open the log pop-up box to view detailed logs
  4. Copy the log content for analysis
  5. Locate the problem based on the log content
  6. Try restarting the container to solve the problem

10.3 Log Management

Log viewing suggestions:

  • Check each service log regularly
  • Follow error and exception logs
  • Copy and save important logs
  • Analyze problems based on operation records

11. FAQ

11.1 Abnormal container status

Issue: Container shows "Exited" or "Stopped" status.

Solution:

  1. Check the container log and locate the reason for exit.
  2. Check whether the service in the container starts normally
  3. Verify that the configuration file is correct
  4. Try to restart the container to restore the service
  5. If the restart fails, check the detailed error message

11.2 Log loading failed

Question: Click the "Log" button, and the log content shows "Failed to obtain the log. Please check whether the backend service is running normally."

Solution:

  1. Check whether the Web API service is running normally
  2. Check whether the Docker service is normal
  3. Check if the container exists
  4. Refresh the page and try again
  5. Check the browser console for error messages

11.3 Failed to restart container

Problem: Clicking the "Restart" button prompts "Failed to restart container."

Solution:

  1. Check whether you have restart permission
  2. Check whether the Docker service is normal
  3. Check whether the container is occupied by other processes
  4. View the Web API service log
  5. Try to restart manually using the command line: docker restart <container name>

11.4 Auto refresh not working

Problem: The container list is not refreshed automatically and needs to be refreshed manually to see the latest status.

Solution:

  1. Confirm that the page is not hung by the browser
  2. Check whether the network connection is normal
  3. Check the browser console for errors
  4. Refresh the page and reload it
  5. Clear browser cache

Released under the GPL-3.0 License.