Service Metrics for Pivotal Cloud Foundry
The service-metrics SDK allows service authors to integrate with Loggregator, the Cloud Foundry logging and metrics system, using a co-locatable BOSH release.
Service metrics are co-located with the service job. The service job runs as a daemon process and executes a metrics generation command at regular intervals. The service author generally provides a binary for that purpose. In this case the metrics generation command invokes the binary.
Service metrics receives the output of the metrics generation command and performs validation on the format.
If validation succeeds, Service metrics sends the metrics to the Metron agent deployed on the VM. Metron forwards metrics to Doppler. In turn, Doppler can send the metrics to a third-party app such as Papertrail or to the Loggregator Traffic Controller.