Page tree
Skip to end of metadata
Go to start of metadata

Redirection Notice

This page will redirect to TECHNOS:GreenIT Index.

On this page:

Target audience:

CAST Administrators

Summary: This page explains how to configure the Green IT Index extension for the CAST Health Dashboard. The extension will add a tile to the CAST Health Dashboard containing a GreenIT index (or score) for your Application.

Description

Consider the following:

  • IT operations run on electricity
  • kWh production leads to CO2 emissions (or equivalent)
  • Lack of efficiency in IT operations wastes energy
    • Unnecessary CPU cycles = unnecessary kWh consumption
  • Efficiency in IT operations is for a large part conditioned by the way the operation of application was developed
    • People have been used to ever-growing computing resources
    • Forgetting the impact on the environment through the energy consumption
    • Resulting in software that is far from optimized
  • Energy can be saved by making software more efficient

With this in mind, CAST has developed a specific indicator called the GreenIT index (based on CAST's algorithms and measures) that is designed to show how efficient (on a scale of 1.00 - 4.00, with 4.00 being the best possible score) an Application is. The indicator can help identify pieces of software that could be optimized (by evolving the code) to require less CPU resources.

In what situation should you install this extension?

If you want to know how "green" (i.e. efficient) your Application is, you should install this extension.

Function Point, Quality and Sizing support

This extension provides the following support:

  • Function Points (transactions): a green tick indicates that OMG Function Point counting and Transaction Risk Index are supported
  • Quality and Sizing: a green tick indicates that CAST can measure size and that a minimum set of Quality Rules exist
Function Points
(transactions)
Quality and Sizing
(error)(error)

CAST AIP compatibility

This extension is compatible with:

CAST AIP release
Supported
8.2.x(tick)

Prerequisites

(tick)An installation of any compatible release of CAST AIP (see table above)
(tick)A Dashboard Service containing at least one snapshot

Download and installation instructions

To add the GreenIT index to the CAST Health Dashboard, various actions are required:

  • Step 1 - Download and installation
  • Step 2 - Add the indicator configuration to your deployed CAST Health Dashboard
  • Step 3 - Use the CAST Management Studio to consolidate a snapshot

Each step is detailed below.

Step 1 - Download and installation

Please see: 

  • Please note that Step 4 in the document linked above is NOT relevant for the GreenIT index extension. Please skip it.
  • The latest release status of this extension can be seen when downloading it from the CAST Extend server

Step 2 - Add the indicator configuration to your deployed CAST Health Dashboard

Modify the cmp.json and app.json files

To start, you need to modify (using a text editor - Notepad or other similar application) the following files that are part of your deployed CAST Health Dashboard:

  • %CATALINA_HOME%\webapps\CAST-AAD\portal\resources\cmp.json
  • %CATALINA_HOME%\webapps\CAST-AAD\portal\resources\app.json

cmp.json

Add the following plugin configuration to the file. Save the file on completion.

{
	"id": 1040,
	"plugin": "QualityIndicatorResults",
	"color": "eco-green",
	"autoFit":false,
	"parameters": {
		"title": "Green IT Index",
		"icon": true,
		"qualityIndicator": { "id": "GREEN_IT", "format": "0.00" }
	}
}

CAST recommends adding the plugin to the Overview section of the file:

"areas": [
	{
		"id": 1,
		"title": "Overview",
		"panels": [

app.json

Add the following plugin configuration to the file. Save the file on completion.

{
	"id": 1040,
	"plugin": "QualityIndicatorResult",
	"color": "eco-green",
	"autoFit":false,
	"parameters": {
		"title": "Green IT Index",
		"icon": true,
		"qualityIndicator": { "id": "GREEN_IT", "format": "0.00" }
	}
}

CAST recommends adding the plugin to the Overview section of the file:

"areas": [
	{
		"id": 1,
		"title": "Overview",
		"panels": [

Modify the app-navigation.json file

Modify (using a text editor - Notepad or other similar application) the app-navigation.json file located here:

%CATALINA_HOME%\webapps\CAST-AAD\portal\resources\internal\app-navigation.json

Add the indicator details to BOTH of the "healthfactors" sections located under the "Sizing" and the "Evolution" sections:

Sizing: healthfactors section

The GreenIT Index section has been added to the end of the section. Save the file on completion.

{
	"id": "healthFactors",
	"plugin": "CriticalQualityRuleRatio",
	"parameters": {
		"order": "descending",
		"mode": null,
		"title": "Health Factors",
		"format": "0,000",
		"description": "",
		"indicators": [
			{
				"id": "60017",
				"description": "TQI"
			},
			{
				"id": "60016",
				"description": "Security"
			},
			{
				"id": "60013",
				"description": "Robustness"
			},
			{
				"id": "60014",
				"description": "Efficiency"
			},
			{
				"id": "60012",
				"description": "Changeability"
			},
			{
				"id": "60011",
				"description": "Transferability"
			},
			{
				"id": "20140522",
				"description": "Green IT"
			}
		]
	}
},

Evolution: healthfactors section

The GreenIT index section has been added to the end of the section. Save the file on completion.

{
    "id": "healthFactors",
    "description":"Health Factors",
    "indicators": [
            {
            	"id": "60017",
            	"format":"0.00",
            	"selected": true,
            	"description": "TQI"
            },
            {
            	"id": "60016",
            	"format":"0.00",
            	"selected": false,
            	"description": "Security"
            },
            {
            	"id": "60013",
            	"format":"0.00",
            	"selected": false,
            	"description": "Robustness"
            },
            {
            	"id": "60014",
            	"format":"0.00",
            	"selected": false,
            	"description": "Efficiency"
            },
            {
            	"id": "60012",
            	"format":"0.00",
            	"selected": false,
            	"description": "Changeability"
            },
            {
            	"id": "60011",
            	"format":"0.00",
            	"selected": false,
            	"description": "Transferability"
            },
            {                                       
            	"id": "20140522",
            	"format":"0.00",
           		"selected": false,
            	"description": "Green IT"                                 
        }
    ]
},

Step 3 - Use the CAST Management Studio to consolidate a snapshot

In the CAST Management Studio:

  • Locate an existing snapshot in the Application editor > Execute tab:

  • Select the snapshot and click the Consolidate option:

Note that if you do not have an existing snapshot, please generate a new one (there is no need to consolidate this).

What results can you expect?

Once the analysis/snapshot consolidation has completed, you can view the results in the CAST Health Dashboard: the GreenIT index will be displayed as follows at both multi-Application level and single Application level:

Clicking the tile will drill down as follows:

Multi-Application level:

Single Application level:

 

  • No labels