On this page: Target audience: CAST AI Administrators |
Summary: This section describes how to install and configure the CAST Application Analytics Dashboard - used for high level investigation of aggregated data generated during the analysis/snapshot generation process. |
CAST highly recommends that you install one CAST Application Analytics Dashboard to display snapshot data from all your Applications whether they are stored in one or multiple Dashboard Services. When configuring the CAST Application Analytics Dashboard, you should therefore:
Note that:
|
CAST provides the CAST Application Analytics Dashboard in a WAR file that must be deployed to a compatible Application Server (see Supported Platforms for information about Application Server support). However, CAST provides two WAR files that contain the CAST Application Analytics Dashboard, as follows:
WAR file name | Description |
---|---|
CAST-AAD.war | Traditional "standalone" WAR file containing only the CAST Application Analytics Dashboard (and also the CAST Rest API interface). This document describes the installation using this WAR file. |
CAST-AAD-AED.war | "Combined" WAR file containing both the CAST Application Analytics Dashboard and the CAST Application Engineering Dashboard (plus the CAST Rest API interface). |
You are free to use whichever WAR file you prefer to deploy the CAST Application Analytics Dashboard (the requirements and prerequisites are identical for both WAR files), however if you are using both the CAST Application Analytics and CAST Application Engineering Dashboard, to fulfil (for example) a "risk and quality" use case, then it would make sense to take advantage of the combined CAST-AAD-AED.war file and deploy both dashboards from the same WAR file. If you do so, please note the following about using the "combined" WAR file:
Image 1 - Welcome page
Image 2 - Return to welcome page URL
Installing the CAST Application Analytics Dashboard (CAST AAD) requires the following:
Java JRE | Must be installed on the machine that will host the Application Server. Please see Supported Platforms about JRE support. | |||||||||||||||||
Application Server | Must be installed on a compatible machine. Please see Supported Platforms about Application Server support. | |||||||||||||||||
Web browser | Required for accessing the CAST Application Analytics Dashboard. Please see Supported Platforms about Web Browser compatibility. | |||||||||||||||||
Measurement Service | A dedicated schema (the CAST Measurement Service) on a CAST Storage Service 2. To ensure compatibility you must only use a Measurement Service installed with a version of CAST AIP that exactly matches the major, minor or Service Pack release number of the CAST AAD WAR that you are installing.
| |||||||||||||||||
Dashboard Service(s) | You can consolidate data into the Measurement Service from any number of Dashboard Service schemas (subject to the limit of 200 applications). The following Dashboard Services are supported: CAST Dashboard Services
Host CSS/RDBMS
| |||||||||||||||||
WAR file | The CAST Application Analytics Dashboard is provided as a .WAR file (CAST-AAD.war) - it can be retrieved from the WARS folder located in the CAST installation folder: |
Before beginning the installation process, please ensure that you have carried out all of the following tasks and that the following requirements have been met:
Ensure you have read all Release Notes accompanying CAST products for any last-minute information. | |
Decide where the CAST Application Analytics Dashboard will be installed - CAST Administration workstation, separate dedicated machine or existing machine used for the CAST Engineering Dashboard/Discovery Portal/CAST AIC Portal. | |
Ensure that your user login on the target machine has sufficient user privileges to install applications (see Appendix - CAST Administration workstation installation and hardware requirements) | |
Make sure you have the required .WAR file ready for deployment |
This document assumes you are using Apache Tomcat in a Windows environment to host the CAST Application Analytics Dashboard. If you are using IBM Websphere Application Server in a Linux environment, please see Appendix - AAD - AED - RestAPI - Deployment on IBM WebSphere Application Server. |
The installation process is divided into various steps:
Locate the CAST-AAD.war file and move it to the web application installation location. By default on Apache Tomcat this is set to:
%CATALINA_HOME%\webapps |
%CATALINA_HOME%\webapps\CAST-AAD\META-INF\context.xml |
If you are using Tomcat 7 to host the CAST Application Analytics Dashboard, please follow these instructions:
<Resource name="jdbc/domains/AAD" url="jdbc:postgresql://localhost:2280/postgres" initConnectionSqls="SET search_path TO [Measure Schema];" username="operator" password="CastAIP" auth="Container" type="javax.sql.DataSource" driverClassName="org.postgresql.Driver" validationQuery="select 1" initialSize="5" maxActive="20" maxIdle="10" maxWait="-1"/> |
<Resource name="jdbc/domains/AAD" url="jdbc:postgresql://NEFYN:2280/postgres" initConnectionSqls="SET search_path TO V80_MEASURE_CSS2;" username="operator" password="CastAIP" auth="Container" type="javax.sql.DataSource" driverClassName="org.postgresql.Driver" validationQuery="select 1" initialSize="5" maxActive="20" maxIdle="10" maxWait="-1"/> |
Note that:
|
If you are using Tomcat 8 or 8.5 to host the CAST Application Analytics Dashboard, please follow these instructions:
<Resource name="jdbc/domains/AAD" url="jdbc:postgresql://localhost:2280/postgres" initConnectionSqls="SET search_path TO [Measure Schema];" username="operator" password="CastAIP" auth="Container" type="javax.sql.DataSource" driverClassName="org.postgresql.Driver" validationQuery="select 1" initialSize="5" maxActive="20" maxIdle="10" maxWait="-1"/> |
<!-- <Resource name="jdbc/domains/AAD" url="jdbc:postgresql://localhost:2280/postgres" initConnectionSqls="SET search_path TO [Measure Schema];" username="operator" password="CastAIP" auth="Container" type="javax.sql.DataSource" driverClassName="org.postgresql.Driver" validationQuery="select 1" initialSize="5" maxActive="20" maxIdle="10" maxWait="-1"/> --> |
<!-- For Tomcat 8 : http://tomcat.apache.org/tomcat-8.0-doc/jndi-datasource-examples-howto.html & http://commons.apache.org/proper/commons-dbcp/configuration.html template for resources on CSS : <Resource name="jdbc/domains/${domainName}" url="jdbc:postgresql://${host}:${port}/postgres" connectionInitSqls="SET search_path TO ${schema};" username="${user}" password="${password}" auth="Container" type="javax.sql.DataSource" driverClassName="org.postgresql.Driver" validationQuery="select 1" initialSize="5" maxTotal="20" maxIdle="10" maxWaitMillis="-1"/> template for resources on Oracle : <Resource name="jdbc/domains/{domainName}" url="jdbc:oracle:thin:@{server}:{port}:{instance}" connectionInitSqls="ALTER SESSION SET CURRENT_SCHEMA={schema}" username="{user}" password="{password}" auth="Container" type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver" validationQuery="select 1 from DUAL" initialSize="5" maxTotal="20" maxIdle="10" maxWaitMillis="-1" /> template for resources on MS SQL Server : <Resource name="jdbc/domains/{domainName}" url="jdbc:jtds:sqlserver://{host};instance={instance}" connectionInitSqls="use {database}" username="{user}" password="{password}" auth="Container" type="javax.sql.DataSource" driverClassName="net.sourceforge.jtds.jdbc.Driver" validationQuery="select 1" initialSize="5" maxTotal="20" maxIdle="10" maxWaitMillis="-1"/> --> |
<Resource name="jdbc/domains/${domainName}" url="jdbc:postgresql://${host}:${port}/postgres" connectionInitSqls="SET search_path TO ${schema};" username="${user}" password="${password}" auth="Container" type="javax.sql.DataSource" driverClassName="org.postgresql.Driver" validationQuery="select 1" initialSize="5" maxTotal="20" maxIdle="10" maxWaitMillis="-1"/> |
<Resource name="jdbc/domains/AAD" url="jdbc:postgresql://NEFYN:2280/postgres" connectionInitSqls="SET search_path TO V80_MEASURE_CSS2;" username="operator" password="CastAIP" auth="Container" type="javax.sql.DataSource" driverClassName="org.postgresql.Driver" validationQuery="select 1" initialSize="5" maxTotal="20" maxIdle="10" maxWaitMillis="-1"/> |
Note that:
|
http://<server_name>:[<port_number>]/CAST-AAD |
Error messages are documented in CAST-AAD-AED - Error Messages. |
Step 2 involves configuring how your users will authenticate with the CAST Application Analytics Dashboard. Most organizations opt for LDAP/Active Directory integration so that users can use their corporate username/password to access the resources they need. The CAST Application Analytics Dashboard also has a built in username/password authentication mechanism which is enabled "out of the box".
Please see Configuring user authentication for more information.
Before your users can view any data in the CAST Application Analytics Dashboard, you need to upload your snapshot data once it has been generated (see Application Analysis and Measurement with CAST AIP for more information). The snapshot upload is achieved using the CAST Management Studio.
Note that the CAST Application Analytics Dashboard can officially support the upload of a maximum of 200 applications. CAST recommends that you choose only the most critical applications from the business view point - i.e the applications that need to be monitored with high visibility by CIOs and managers. |
Before you can upload snapshot data, you must ensure that the Measurement Service is Active for your current Management Service (i.e. the Management Service you are connected to in the CAST Management Studio). Measurement Services can be Active for multiple Management Services (and thus data from multiple Dashboard Services can be uploaded).
If:
...then a Measurement Service will have been installed alongside the Management, Analysis and Dashboard Services and will be visible in the Services view in the CAST Management Studio. In this case, the Measurement Service will already be Active and you do not need to do anything else:
If:
you will have therefore installed a standalone Measurement Service on CSS2 in order to use the CAST Application Analytics Dashboard. In this scenario, you will need to activate this service before you do anything else:
When the Measurement Service is Active, there are two ways to upload snapshot data to the Measurement Service:
You can find out more information about these options in 2.2.3. Snapshot generation and validation.
Note also that the CAST Application Analytics Dashboard features a server cache to improve the speed of data display. This does mean, however, that very recent changes in data (i.e. a new snapshot generation) may not instantly appear in the dashboard. If this is the case, the server cache needs to be manually reloaded. See CAST-AAD-AED - Reload the cache. |
Step 4 involves configuring data Authorization. An authorization defines permission to a user or group of users to access and "consume the data" in a specific Application in the CAST Application Analytics Dashboard. If permission is not granted then any information related to this Application will be not accessible: application properties such as name, technologies or grades and measures, etc.Therefore, an Authorization must be defined before a user/group of users can access a specific application.
Please see Configuring data authorization for more information.
You can find additional information about advanced configuration changes in CAST Application Analytics Dashboard such as:
You can find additional information about advanced security configuration changes for the CAST Application Analytics Dashboard, such as:
There is also additional information about implementing an enhanced security configuration for your application server in Common security configuration options for web application deployment: