App Metrics for Tanzu 2.2

App Metrics architecture

Last Updated October 22, 2024

The following diagram shows you the components of App Metrics and the Platform components that App Metrics interacts with.

To understand the architecture diagram, see the following guidelines:

  • Cornered rectangles represent Platform tiles that App Metrics depends on (Cloud Controller, UAA, Metric Store tile). The Cloud Controller and UAA blocks make up the Tanzu Application Service (TAS for VMs) tile.
  • Rounded rectangles represent customer interaction points (web browser, HTTP client).
  • Cylinders represent the data storage components of App Metrics (log-store, Postgres).
  • Blue colored components are packaged with App Metrics (App Metrics, log-store, and Postgres).

App Metrics and platform components interaction architecture

Inputs to App Metrics: * Cloud Controller (TAS for VMs tile) * UAA (TAS for VMs tile) * log-store * HTTP client

Outputs from App Metrics go to: * Metric Store tile * Postgres * web browser

Data flow

The following sections describe the components and how they contribute to the data flow.

Metrics

Metrics are ingested and stored by the Metric Store tile.

App Metrics uses the Metric Store tile to:

  • Query for metrics
  • Register monitors to receive alerts when metrics surpass the thresholds

For more information about the Metric Store tile, see the Metric Store documentation.

Custom metrics

Metrics Registrar collects custom application metrics. Metrics Registrar is bundled with VMware Tanzu Application Service (TAS for VMs), which is a dependency of App Metrics.

To see custom application metrics for App Metrics, you must configure Metrics Registrar to scrape Prometheus-style metrics from your applications. These custom metrics are available in the Metrics Store and appear in the App Metrics UI to digest the data.

For more information about Metrics Registrar, see:

Logs

The Log Store is a time series database for storing and querying application logs.

Logs are streamed into the Log Store through the Loggregator V2 endpoint and stored through the Influx Storage Engine.

Log Store provides the capability, for distributed configurations, to be scaled out to use multiple nodes. Each node in a Log Store deployment, manages disk usage to maximize stored logs without exceeding the configured maximum disk utilization.

App Metrics queries the Log Store for logs, log searches, and density histograms.

PostgreSQL datastore

The PostgreSQL database stores the indicator and monitor documents, and trigger alerts for monitors.

When a client uploads an Indicator document or monitor document, App Metrics stores it in the database. These documents appear in the charts on your App Metrics dashboard.

When a monitor threshold is surpassed, the Metric Store tile sends a request to App Metrics. When App Metrics receives this request, it stores a record of the alert in the PostgreSQL datastore. These stored alerts appear in the charts on your App Metrics dashboard.

Security

In Transit: All communication with the PostgreSQL datastore is done through the Transport Layer Security (TLS) protocol, and follows the guidelines in the PostgreSQL documentation.

At Rest: The PostgreSQL datastore does not store any sensitive information, so by default it is not encrypted. If you want to encrypt it, see Disk Encryption in the Tanzu Operation Manager documentation.