Before you begin your installation of App Metrics there are certain prerequisites you need to know about.
Here are your prerequisites to install App Metrics:
App Metrics v2.0 and higher requires Metric Store as its metrics datastore. You must install this tile before installing App Metrics.
To avoid installation errors, for the Metrics v1.x tile, turn off:
Push App Metrics Components Errand
.
Allow App Metrics to take possession of the metrics from the Metric Store:
Your-SYSTEM-DOMAIN
.
Metrics v1.x is accessible at:
metrics-previous.YOUR-SYSTEM-DOMAIN
.
Downloading App Metrics
- After you install the Metric Store tile in Tanzu Operations Manager, download the App Metrics 2.0 product file from Broadcom Support.
- Go to the Tanzu Operations Manager Installation Dashboard and click Import a Product to upload the product file.
- Under the Import a Product button, click + next to the version number of App Metrics. This adds the tile to your staging area.
Configuring availability zones and networks
To start using App Metrics, you must configure the App Metrics tile:
- Click App Metrics tile on the Ops Manager Installation Dashboard.
- Go to Assign AZs and Networks and do the following:
- Select an Availability Zone (AZ) for placing singleton jobs.
- Select one or more AZs for balancing other jobs. To create a highly available environment, select multiple AZs and select Network for the App Metrics installation.
Configuring App Metrics to use HTTP or SOCKS proxy server (Optional)
You can configure App Metrics to use your HTTP, HTTPS, or SOCKS proxy server for the Slack application or webhook alerts.
Configure a HTTP or HTTPS Proxy Server through the cf CLI:
-
Log in to cf CLI and run:
cf login -a API-URL -u USERNAME -p PASSWORD -o system -s app-metrics-v2
Where:
API-URL
is your API endpoint.USERNAME
is your username.PASSWORD
is your password.
-
Update the
HTTP_PROXY
orHTTPS_PROXY
environment variable and run:cf set-env appmetrics HTTP_PROXY "http://PROXY-HOST:PROXY-PORT"
or
cf set-env appmetrics HTTPS_PROXY "https://PROXY-HOST:PROXY-PORT"
Where:
PROXY-HOST
is the hostname of your HTTP or HTTPS proxy.PROXY-PORT
is the port that your HTTP or HTTPS proxy is listening on.
The HTTP proxy environment variables must be uppercase.
For more information about setting system-wide environment variables, see Environment Variable Groups, in the Cloud Foundry Documentation.
Starting a SOCKS proxy server
To start a HTTP or HTTPS proxy server, use the cf CLI, then switch to a SOCKS protocol in the Ops Manager UI and follow these steps:
- Click App Metrics tile on the Ops Manager Installation Dashboard.
- Go to App Metrics Components Config pane.
-
Click Enable Socks Proxy. This check box sets the
USE_SOCKS_PROXY
environment variable and overrides the protocol for the proxy to use SOCKS instead of HTTP or HTTPS. -
Even though the HTTP or HTTPS proxy was overridden, you must begin by setting it. To set it, log in to the cf CLI and run:
cf login -a API-URL -u USERNAME -p PASSWORD -o system -s app-metrics-v2
Where:
API-URL
is your API endpoint.USERNAME
is your username.PASSWORD
is your password.
-
Update the
HTTP_PROXY
orHTTPS_PROXY
environment variable:cf set-env appmetrics HTTP_PROXY "http://PROXY-HOST:PROXY-PORT"
or
cf set-env appmetrics HTTPS_PROXY "https://PROXY-HOST:PROXY-PORT"
Where:
PROXY-HOST
is the hostname of your HTTP or HTTPS proxy.PROXY-PORT
is the port that your HTTP or HTTPS proxy is listening on.
The HTTP proxy environment variables must be uppercase.
For more information about setting system-wide environment variables, see Environment Variable Groups in the Cloud Foundry Documentation.
Configuring App Metrics components (Optional)
To configure the settings for App Metrics components, including Log Store, follow these steps:
- Click App Metrics tile on the Tanzu Operations Manager Installation Dashboard.
- Go to the App Metrics Components Config pane.
- Deactivate Logs Drawer on the App Metrics dashboard,and deselect the App Metrics Enable Logs check box (the default setting is activated).
- Set App Metrics Logs Prune Threshold disk capacity percentage (the default setting is 80%). This is the disk percentage that Log Store starts to prune starting with the oldest logs.
- Set the App Metrics Logs Prune Interval (the default setting is two minutes). This is the frequency the Log Store checks the disk capacity to make your pruning decision.
Configuring syslog forwarding (Optional)
App Metrics supports forwarding syslog to an external log management service. For example Papertrail, Inc., Splunk Technology, or another custom enterprise log sink. You might find the VM logs useful for debugging problems in the system.
To enable remote syslog forwarding for Healthwatch:
-
Click App Metrics tile on the Ops Manager Installation Dashboard.
-
Go to the Syslog pane.
-
Select Yes without encryption or Yes with TLS encryption to activate syslog forwarding.
- External Syslog Host: address of syslog server where you want logs sent. For example, [logs.example.com].
- External Syslog Port: port of your syslog server. For example, [29279].
- External Syslog Protocol: protocol for sending the logs.
- External Syslog Permitted Peer: enter the fingerprint or name of the remote peer. For example, [*.example.com]. (TLS only).
- External Syslog TLS CA Certificate: enter the CA certificate of the syslog destination.(TLS only).
Configuring Metric Registrar for Spring Boot Metrics (Optional)
For Metric Registrar to accurately report Spring Metrics, the configuration for Metric Registrar must be updated with the VMware Tanzu Application Service for VMs (TAS for VMs) tile.
To update the Metric Registrar configuration:
- Click TAS for VMs tile on the Tanzu Operations Manager Installation Dashboard.
- Go to Metric Registrar pane.
- Update the Blocked tags list and remove the `id` tag from the Blocked tags list.
Activating the App Metrics link in Apps Manager (Optional)
Use this topic if View in App Metrics does not appear in Apps Manager, and, if App Metrics is deployed with one the following versions of TAS for VM:
- TAS for VMs v5.0
- TAS for VMs v4.0
- TAS for VMs v3.0
- TAS for VMs v2.13
- TAS for VMs v2.12
- TAS for VMs v2.11
If your deployment has restrictive networking policies around your request proxy, the View in App Metrics link might not appear in Apps Manager.
To resolve this issue and activate the App Metrics link in Apps Manager:
-
Log in to cf CLI and run:
cf login -a API-URL -u USERNAME -p PASSWORD -o system -s system
Where:
API-URL
is your API endpoint.USERNAME
is your username.PASSWORD
is your password.
-
Update the
no_proxy
environment variable for thesearch-server
app to include your system domain:cf set-env search-server no_proxy '*.SYSTEM-DOMAIN'
where
SYSTEM-DOMAIN
is the system domain configured for your deployment.For example:
cf set-env search-server no_proxy '*.example.com'
-
Restage the
search-server
app.cf restage search-server
Content feedback and comments