# Resource Management

> Monitor and manage CPU, memory, instances and auto-scaling for Nimbuz applications and tools, and read application metrics, tool metrics and usage analytics.

Learn how to effectively manage your cloud resources on the Nimbuz platform for optimal performance.

## Overview

Resource Management in Nimbuz helps you monitor and manage CPU, memory, scaling, and usage of your applications and tools. It helps ensure your services run smoothly, perform efficiently, and use resources effectively.

## Compute Resources

### Application Instances

Monitor and manage your application instances.

## Application Metrics

Nimbuz provides detailed metrics to help you monitor the health and performance of your applications. Understanding these metrics is crucial for ensuring your applications run smoothly and efficiently.

### CPU Usage
CPU Usage shows how much processing power your application is currently using. It is measured in mCPU (milliCPU) and also displayed as a percentage of the total CPU allocated to the application.

![CPU Usage](https://docs.nimbuz.tech/img/onboarding/image055.png)

#### Why it is useful for users:
- It helps users understand how much CPU their application is using and whether the current CPU resources are enough to handle the workload.
#### Why it is important for application monitoring and performance:
- High CPU usage over time can slow down the application and increase response time. Monitoring CPU usage helps ensure the application has enough processing power for smooth performance.

### RAM Usage

RAM Usage shows how much memory your application is currently using. It is measured in MiB (Mebibytes) and displayed as a percentage of the total allocated RAM.

![RAM Usage](https://docs.nimbuz.tech/img/onboarding/image055.png)

#### Why it is useful for users:
- It helps users track memory usage and identify if the application is using too much RAM or facing memory-related issues.
#### Why it is important for application monitoring and performance:
- If RAM usage becomes too high, the application may crash or be stopped by the system (OOMKilled). Monitoring RAM usage helps maintain application stability and prevent downtime.

### CPU Throttle

CPU Throttle shows how often your application was slowed down because it tried to use more CPU power than the allowed limit. High CPU throttling can cause slower performance, delayed responses, and reduced application speed.

![CPU Throttle](https://docs.nimbuz.tech/img/onboarding/image058.png)

#### Why it is useful for users:

- It helps users understand when their application is slowing down because it does not have enough CPU resources. This makes it easier to identify performance issues and decide when to increase CPU limits or optimize the application.

#### Why it is important for application monitoring and performance:

- CPU throttling can make the application slow and increase response time, leading to a poor user experience. Monitoring this metric helps identify when the application needs optimization or more CPU resources to maintain smooth and reliable performance.

## Tool Metrics

Nimbuz provides detailed metrics to help you monitor the health and performance of your tools and database services. Understanding these metrics is crucial for ensuring your tools run smoothly and efficiently.

### CPU Usage

CPU Usage shows how much processing power your tool is currently using. It is measured in mCPU (milliCPU) and also shown as a percentage of the total CPU allocated to the tool. High CPU usage means the tool is working harder to process tasks and requests.

![CPU Usage](https://docs.nimbuz.tech/img/onboarding/image059.png)

**Why it is useful for users:**
- It helps users monitor how much processing power their tool is using over time. This makes it easier to know whether the current CPU resources are enough or if the tool needs more CPU capacity for better performance.

**Why it is important for tool monitoring and performance:**
- High CPU usage over time can slow down the tool and increase response time. Monitoring CPU usage helps ensure the tool has enough processing power and helps optimize performance and resource usage.

### RAM Usage

RAM Usage shows how much memory your tool is currently using. It is measured in MiB (Mebibytes) and displayed as a percentage of the total allocated RAM.

![RAM Usage](https://docs.nimbuz.tech/img/onboarding/image059.png)

**Why it is useful for users:**
- It helps users track memory usage and identify if the tool is using too much RAM or facing memory-related issues.

**Why it is important for tool monitoring and performance:**
- If RAM usage becomes too high, the tool may crash or be stopped by the system (OOMKilled). Monitoring RAM usage helps maintain stability and prevent downtime.

### CPU Throttle

CPU Throttle shows when the platform limits your tool’s CPU usage because it is trying to use more CPU resources than allowed.

![CPU Throttle](https://docs.nimbuz.tech/img/onboarding/image057.png)

**Why it is useful for users:**
- It helps users understand when their tool is slowing down due to insufficient CPU resources.

**Why it is important for tool monitoring and performance:**
- High CPU throttling can slow down the tool, increase response time, and delay processing. Monitoring this metric helps identify when the tool needs optimization or additional CPU resources.

## Usage/Analytics

The Usage & Analytics section provides detailed insights into your API consumption and costs within a specific duration. It helps you monitor usage patterns, optimize performance and manage spending effectively.

![Usage](https://docs.nimbuz.tech/img/onboarding/image053.png)

- **Total Requests**: The total number of API calls made to the model
- **Prompt Tokens**: The number of tokens used in the input sent to the model
- **Completion Tokens**: The number of tokens generated by the model in its response
- **Total Tokens**: The sum of prompt tokens and completion tokens for all requests
- **Total Cost**: The total cost incurred based on token usage

**Why it is useful for users:**
- It helps users understand how much their API is being used, including the number of requests, tokens used, and total cost. This makes it easier to monitor usage and manage spending effectively.

**Why it is important for monitoring:**
- It helps track API usage, token consumption, and costs. Monitoring these details helps identify high usage, control spending, and ensure the API performs smoothly and efficiently.

## Support

**Resource Management Support:**

- **Email**: [info@dilligentech.com](mailto:info@dilligentech.com)

Source: https://docs.nimbuz.tech/onboarding/resource-management
