Configuring the Metric Registrar

This topic describes the Metric Registrar for Pivotal Application Service (PAS). It also includes information about enabling and configuring the Metric Registrar.


The Metric Registrar allows app developers to export custom app metrics in a format that Loggregator can consume. App developers can then use the custom metrics to monitor apps with PCF Metrics and configure autoscaling rules with PCF Autoscaler.

App developers can export custom metrics to Loggregator by configuring their apps in one of the following ways:

  • Metrics Endpoint—Publish and register a Prometheus Exposition metrics endpoint to an app. The Metric Registrar will then poll this endpoint every 35 seconds and convert the metrics found in the response to Loggregator metrics.
  • Structured Log—Modify your app to emit metrics using a specific JSON or DogStatsD format. The Metric Registrar then converts all matching log messages into Loggregator metrics or events.

For more information about installing the Metric Registrar Plugin and registering your app, see Emitting Custom App Metrics to the Metric Registrar.

For more information about the components and products mentioned, see the following: - Loggregator - PCF Metrics - PCF Autoscaler


The following diagram illustrates how the Metric Registrar sends your custom app metrics to Loggregator. The components of the Metric Registrar are as follows:

  • The cf CLI plugin
  • The metric_registrar_endpoint_worker and metric_registrar_log_worker jobs running on the Doppler VM of the PAS deployment
  • The metric_registrar_orchestrator and metric_registrar_smoke_test jobs running on the Clock Global VM of the PAS deployment

Metric Registrar Architecture Diagram

Click the image for a larger representation.

Configure the Metric Registrar

Note: The Metric Registrar is bundled with PAS, and you configure it within the PAS tile. You do not install and configure Metric Registrar as a separate product tile.

You configure the Metric Registrar in the tile > Metric Registrar pane. Metric Registrar allows the conversion of structured logs into metrics. It also scrapes metrics endpoints and forwards the metrics to Loggregator. If enabled, Pivotal recommends also enabling the Metric Registrar Smoke Test errand.

You can configure the Metric Registrar from this pane in the following ways:

  • Enable
  • Edit default scraping interval
  • Add blacklisted tags

Enable the Metric Registrar

The Metric Registrar is disabled by default.

To enable the Metric Registrar, do the following:

  1. In the PAS tile, click Metric Registrar.

  2. Select the Enable Metric Registrar checkbox.

Edit Default Scraping Interval

The scraping interval defines how often the Metric Registrar polls custom metric endpoints. The default is 35 seconds.

To edit the Metric Registrar scraping interval, do the following:

  1. In the PAS tile, click Metric Registrar.

  2. Edit the Endpoint Scraping Interval field.

Add Blacklisted Tags

To prevent the Metric Registrar from consuming the value of a metric or event tag, you can add the tag to the Blacklisted Tags field. For example, if you tag your metrics with a customer_id, you may want to add customer_id to the list of blacklisted tags. The field accepts a comma-separated list.

By default, the following tags are blacklisted to prevent interference with other products like PCF Metrics that use and rely on such tags.

  • deployment
  • job
  • index
  • id

To prevent the Metric Registrar from consuming the value of a metric or event tag, do the following:

  1. In the PAS tile, click Metric Registrar.

  2. Add the desired tag to the Blacklisted Tags field.