/
Metrics Collecting Application

Metrics Collecting Application

 

Description

The Metrics Collecting Application collects data for all of the pre-configured metrics in DDF and stores them in custom JMX Management Bean (MBean) attributes. Samples of each metric's data is collected every 60 seconds and stored in the <DDF_INSTALL_DIR>/data/metrics directory, with each metric stored in its own .rrd file. Refer to the Metrics Reporting Application for how the stored metrics data can be viewed.

Do not remove the <DDF_INSTALL_DIR>/data/metrics directory or any files in it. If this is done, then all existing metrics data will be permanently lost.

Also note that if DDF is uninstalled/re-installed that all existing metrics data will be permanently lost.

 

The metrics currently being collected by DDF are:

MetricJMX MBean NameMBean Attribute NameDescription
Catalog Exceptionsddf.metrics.catalog:name=ExceptionsCount

A count of the total number of exceptions, of all types, thrown across all catalog queries executed.

Catalog Exceptions Federationddf.metrics.catalog:name=Exceptions.FederationCount

A count of the total number of Federation exceptions thrown across all catalog queries executed.

Catalog Exceptions Source Unavailableddf.metrics.catalog:name=Exceptions.SourceUnavailableCount

A count of the total number of SourceUnavailable exceptions thrown across all catalog queries executed. These exceptions occur when the source being queried is currently not available. 

Catalog Exceptions Unsupported Queryddf.metrics.catalog:name=Exceptions.UnsupportedQueryCount

A count of the total number of UnsupportedQuery exceptions thrown across all catalog queries executed. These exceptions occur when the query being executed is not supported or is invalid.

Catalog Ingest Createdddf.metrics.catalog:name=Ingest.CreatedCountA count of the number of catalog entries created in the Metadata Catalog.
Catalog Ingest Deletedddf.metrics.catalog:name=Ingest.DeletedCountA count of the number of catalog entries updated in the Metadata Catalog.
Catalog Ingest Updatedddf.metrics.catalog:name=Ingest.UpdatedCountA count of the number of catalog entries deleted from the Metadata Catalog.
Catalog Queriesddf.metrics.catalog:name=QueriesCountA count of the number of queries attempted.
Catalog Queries Comparisonddf.metrics.catalog:name=Queries.ComparisonCount

A count of the number of queries attempted that included a string comparison criteria as part of the search criteria, e.g., PropertyIsLike, PropertyIsEqualTo, etc.

Catalog Queries Federatedddf.metrics.catalog:name=Queries.FederatedCountA count of the number of federated queries attempted.
Catalog Queries Fuzzyddf.metrics.catalog:name=Queries.FuzzyCount

A count of the number of queries attempted that included a string comparison criteria with fuzzy searching enabled as part of the search criteria.

Catalog Queries Spatialddf.metrics.catalog:name=Queries.SpatialCount

A count of the number of queries attempted that included

a spatial criteria as part of the search criteria.

Catalog Queries Temporalddf.metrics.catalog:name=Queries.TemporalCount

A count of the number of queries attempted that included a temporal criteria as part of the search criteria.

Catalog Queries Total Resultsddf.metrics.catalog:name=Queries.TotalResultsMean

An average of the total number of results returned

from executed queries. This total results data is averaged over the metric's sample rate.

Catalog Queries Xpathddf.metrics.catalog:name=Queries.XpathCount

A count of the number of queries attempted that included a Xpath criteria as part of the search criteria.

Catalog Resource Retrievalddf.metrics.catalog:name=ResourceCountA count of the number of products retrieved.
Services Latencyddf.metrics.services:name=LatencyMean

The response time from receipt of the request at the endpoint until the response is about to be sent to the client from the endpoint. This response time data is averaged over the metric's sample rate.

Source Metrics

Metrics are also collected on a per Source basis for each configured Federated Source and Catalog Provider. When the Source is configured, the metrics listed in the table below are automatically created. With each request that is either an enterprise query or a query that lists the source(s) to query, these metrics are collected. When the Source is deleted, the associated metrics' MBeans and Collectors are also deleted. However, the RRD file in the data/metrics directory containing the collected metrics remain indefinitely and remain accessible from the Metrics tab in the Admin console.

In the table below, the metric name is based on the Source's ID (indicated by <sourceId>).

MetricJMX MBean Name

MBean Attribute

Name

Description
Source <sourceId> Exceptionsddf.metrics.catalog.source:name=<sourceId>.ExceptionsCount

A count of the total number of exceptions, of all types, thrown from catalog

queries executed on this Source.

Source <sourceId> Queriesddf.metrics.catalog.source:name=<sourceId>.QueriesCountA count of the number of queries attempted on this Source.
Source <sourceId> Queries Total Resultsddf.metrics.catalog.source:name=<sourceId>.Queries.TotalResultsMean

An average of the total number of results returned

from executed queries on this Source.

This total results data is averaged over the metric's sample rate.

Usage

The Metrics Collecting Application is used when collection of historical metrics data, such as catalog query metrics or message latency type of data, is desired.

Installation and Uninstallation

The Metrics Collecting Application is installed by default. It should not be uninstalled because the JMX Collector will not be removed.  The next time the system is restarted, the JMX Collector will try to find the JMX MBean but it won't be created since the metrics bundle was uninstalled.  It will timeout after a few minutes.

Configuration

No configuration is made for the Metrics Collecting Application. All of the metrics that it collects data on are either pre-configured in DDF out of the box, or dynamically created

as Sources are created or deleted.

Known Issues

  • None