EXAMPLE | Resource Allocation API


The Apprenda Platform allows IT operators to collect and leverage data about resource consumption of guest applications. The information tracked by the platform is useful in determining such things as: Which development group in my organization is using the most resources? Do any of the guest applications running on my PaaS seem to have memory leaks? ... and more.

The application attached to this post is a sample app that queries the platform and displays information regarding utlization. This simple applications uses Apprenda's Resource Allocation API to display in a grid the following information:

  • Application
  • Application Version
  • Developer
  • Application Component (frontend or service)
  • Deployment time
  • Undeployment time
  • Attached Resource Allocation Policy
    • Memory
    • CPU
    • CPU Cores

Deploying the Sample Application

To deploy this application, simply download the archive and publish it in your Apprenda instance. This application must be deployed with no Apprenda services selected (authentication, authorization...).

When you launch your application, you need to type your environments URL in the following manner: api.rooturl.

You should enable Resource Utilization tracking in your environment before using this application. For more information, please refer to our documentation website.

Downloading the Sample Application

You can download the Apprenda Archive ready for deployment and the Visual Studio Solution.

Allocation API Archive

Allocation API Source Code

Have more questions? Submit a request