Nav

Configuring Tables in a Custom Dashboard

In Anypoint Monitoring, you can configure tables for custom dashboard. In addition to configuring properties that are common to other charts, such advanced or basic metric queries and time ranges, you can also:

  • Lay out for time-series data in a tabular format and display aggregated data.

  • Add color-coded thresholds to indicate whether a value is above, below, or within an given range.

  • Provide links from values in a column to a specified web page.

  • Set pagination properties.

General Settings for Basic and Advanced Data Queries

General settings include basic and advanced queries (or modes) for configuring time-series data. Both configurations share fields for the title and a short description.

Example: Basic Configuration
Basic and Advanced Mode Settings

Title

Title to display in the UI. Defaults to Panel Title.

Description

Short description to display in the UI when users hover over the information (i) icon.

Other settings are specific to the setting mode (basic or advanced).

Basic Mode

In the General configuration tab, a Basic query selects a single metric for a resource (a Mule app) in a given environment.

Example: Basic Configuration
Basic Mode Settings

Metric

The dropdown menu includes these types of metrics:

  • Inbound response metrics and averages

  • JVM metrics

  • Outbound response metrics and averages

For a list of basic metrics, see Basic Mode Metrics

Environment

Your Mule app environments.

Resource

A Mule app that is deployed in CloudHub (sometimes called a CloudHub app in the UI).

After you complete your configuration, you can click Save Changes. To exit the configuration and return to the dashboard, simply click the X.

Advanced Mode

In the General configuration tab, Advanced settings support one or more fine-tuned queries for your chart.

It is important to note that an advanced configuration will be partially removed if you switch back to the basic configuration area.

Example: Advanced  Configuration
Advanced Mode Settings

From

Lists JVM and Mule app properties (such as jvm.memory and app_inbound_metric) that you can add to your chart.

Note that the field provides matching suggestions when you type in a character. For example, jvm.c will produce a list of all values that contain those characters (such as jvm.classloading and jvm.cpu.operatingsystem).

For a list of advanced metrics, see Advanced Mode Metrics

Where

Supports conditional logic for filtering the From data source you selected.

  • You can select one or more filters tags (such as app_id, env_id, org_id, worker_id). Example: Where env_id = Sandbox.

  • Available operators include =, !=, <>, <, and >.

  • You can also construct a query that contains multiple filtering expressions by using logical AND or OR operators between the expressions.

Select

For creating a function that selects a field (such as heap_committed,heap_total, or heap_used) from the From data (such as jvm.memory) and applies an operation to it (such as the mean of the heap_total). You can add one or more field settings.

Select Options

Group By

For grouping the data by a selected time interval (such as $__interval, 1s, 10m, 1h), filter tag (such as tag(env_id)), and fill options (such as none, null, 0, previous, linear).

Valid values and arguments:

  • time($__interval) for the automated time interval setting, or you can specify time intervals of 1s, 10s, 1m, 5m, 10m, 15m, or 1h.

  • fill() where valid values are none, null, 0, previous, linear.

  • LIMIT: Numeric value (N) used to limit the result to the first N data points (combined series and timestamp values) returned by a query.

  • SLIMIT: Numeric value (N) used to return the all data points (combined series and timestamp values) from the first N series returned by the query.

  • ORDER BY time DESC: Returns results in descending time order.

Alias By

You can create a label for your metric using a literal string (such as my string) or supported variables (for example, $tag_worker_id or $tag_env_id).

After you complete your configuration, you can click Save Changes. To exit the configuration and return to the dashboard, simply click the X.

Time Range (Overrides, Time Shifts, Info Display)

Time range configurations provide a way to override relative time ranges (such as the last 30 minutes) selected from the dashboard UI by end users.

Time Range
Time Range Settings

Override Relative Time

The amount of time covered by the statistic, for example, the last hour (1h) or last thirty minutes (30m). Note that this setting only overrides relative time ranges selected by end users from the dashboard UI. When these users select an absolute time and date range for the dashboard, the configuration for the time range override will be disabled.

Add Time Shift

How long ago the covered time period ended, for example, 1s for one second ago.

Hide Time Override Info

Indicates whether the singlestat or table will display information about its settings, such as 30 minutes, ending 1 second ago.

After you complete your configuration, you can click Save Changes. To exit the configuration and return to the dashboard, simply click the X.

Options (Data and Pagination Settings)

In the Options configuration tab, you can set layout, column, and pagination options for tables in a custom dashboard.

Data Settings (Options tab)

Value Settings

Time Series to Rows

Creates a table with values for a given metric at a given time period. Like Time Series to Columns, the first column, Time, is for timestamps (such as 2018-04-25 06:37:40). However, subsequent columns are Metric (for listing specific metrics, such as worker-0) and Value for listing the values of the metric at that time period. Example:

Time Series to Columns

Time Series to Columns

Creates a table that shows values for a given metric at a given time period. Like Time Series to Rows, the first column, Time, is for timestamps. However, there is a column for each metric, such as worker-0, which lists the values of that metric at a given time period. Example:

Time Series to Columns

Time Series to Aggregations

Transforms time series into a table that calculates totals, averages, and so on for a given metric. The first column, Metric, is for metrics such as worker-0, and subsequent columns are for any combination of these values: Avg, Min, Max, Total, Current, or Count for a given metric. Example:

Time Series to Aggregations

Note that this example uses color-coded thresholds (see the cell coloring in the Avg and Max cells and value coloring for the Min value).

If you select Time Series to Aggregations, you can add pre-defined columns to the table.

Columns for Aggregations

Auto

Columns and their order are determined by the data query. Only available setting when Time Series to Rows, Time Series to Columns, Annotations, or Table is selected.

Avg

Averages the recorded data for a given metric.

Min

Provides the lowest recorded value for a given metric.

Max

Provides the highest recorded valued for a given metric.

Total

Provides the sum of all values recorded in the table.

Current

Shows the current value for a given metric.

Count

Provides the total number of data points collected on the metric.

Paging (Options tab)

In the Options configuration tab, you can set pagination properties for tables so that they do not become to long and are more manageable.

Paging Properties

Rows per Page

Number of table rows allowed per page.

Scroll

Checkbox for making the table scrollable.

Font Size

Percentage of the default font size from 80% to 250%.

After you complete your configuration, you can open another configuration tab or click Save Changes. To exit the configuration and return to the dashboard, simply click the X.

In the Column Styles configuration tab, you can create (+Add) and apply one or more rules for table columns. The rules are listed on the left side of the Column Styles pane.

To remove a rule, you need to click it, then find and click the Remove Rule button near the bottom left of the screen.

Options (Column Styles tab)

Options

Apply To Columns Named

Identifies the column or columns to which the rule applies. You need to provides the name or a regular expression (regex) that matches the name of one or more columns in the table. For a regex, you the following syntax: /my.*regex/

Column Header

Provides a title for the column. For example, if you add the Avg column to a table that aggregates data, you might change the column name to Average. You can use strings such as $1 for a regular expression.

Render Value As Link

Treats values in the column as a link that you can configure through the Link settings.

In the Column Styles configuration tab, you can use configure a link from a value to a specified web page.

Note that Link settings are only available when Render Value As Link is checked.

Link

URL

Specifies a URL that you can open when you click a value in the column.

Tooltip

For providing a description of the link. This text appears when the end user hovers over the cell with the link. Use the same variables as for URL.

Open In New Tab

Displays the web content in a new browser tab when you click on the value.

Type

Type

Data type for values in the column. Valid values are Number, String, Date, and Hidden.

Unit

Label for the unit of measure to use for the value, such as bytes and megabytes/second. It is important to know the data type for your value before adding this label to the value. A wide variety of units are available.

Decimals

The level of precision allowed for a decimal value, for example, 2 to limit a value of 10.12345 to 10.12.

Thresholds (Column Styles tab)

In the Column Styles configuration tab, you can set thresholds your data when when Type is set to Number.

Thresholds

Thresholds

Comma-separated values, for example, 50000000,100000000. Values between the two values might be treated as warning values. Values below the first value might be treated as acceptable, while values above the second value might be treated as errors. Note that your threshold values must match the unit of measure used for your data (for example, byte) even if the specified Unit is converted to MB or GB in the table.

Color Mode

Indicates whether to apply the color code to the Value in a cell, to the Cell, to the entire Row, or whether color coding is Disabled.

Color

Color used to code values below (left-most color box), between (middle color box), and above (right-most color box) the specified threshold settings. For example, green values might represent OK, yellow a warning, and red an error. You can also invert the color coding.

After you complete your configuration, you can open another configuration tab or click Save Changes. To exit the configuration and return to the dashboard, simply click the X.