forked from heidmotron/docs-metric-registrar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html.md.erb
41 lines (25 loc) · 2.45 KB
/
index.html.md.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
title: Configuring the Metric Registrar
owner: registrar
---
This topic describes the Metric Registrar for Pivotal Application Service (PAS). It also includes information about enabling and configuring the Metric Registrar.
## <a id="overview"></a> Overview
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 Pivotal App Metrics and configure autoscaling rules with Pivotal 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](./using.html).
For more information about the components and products mentioned, see the following:
- [Loggregator](https://docs.pivotal.io/pivotalcf/loggregator/architecture.html)
- [Pivotal App Metrics](https://docs.pivotal.io/app-metrics)
- [Pivotal Autoscaler](https://docs.pivotal.io/pivotalcf/appsman-services/autoscaler/using-autoscaler.html)
## <a id="architecture"></a> Architecture
The following diagram illustrates how the Metric Registrar sends your custom app metrics to Loggregator. The components of the Metric Registrar are:
* 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
<%# To edit the image, see https://docs.google.com/drawings/d/1A-1bwP3TuHtEDEg1I_68C3VsEKuCITNWDE-oVB9S0HU/edit?usp=sharing %>
<a target="_blank" href="./images/metrics-registrar-architecture.png"><img src="./images/metrics-registrar-architecture.png" alt="Metric Registrar Architecture Diagram"></a>
Click the image for a larger representation.
## <a id="configure"></a> Configure the Metric Registrar
<%= partial '/pcf/core/2-7/metric-registrar' %>