RageZBla / metric-registrar-examples

Examples on how to use metric registrar endpoint scraping

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NOTE: Deprecated in favor of the examples directory in Metric Registrar Release

Examples for the Metric Registrar

The examples are organized in the following folders

Prerequisites

These plugins will allow you to register & test apps with the Metric Registrar

cf install-plugin -r CF-Community "metric-registrar"
cf install-plugin -r CF-Community "log-cache"

Register the endpoint

To register an app's metric endpoint with the Metric Registrar, run:

cf register-metrics-endpoint <APP_NAME> /actuator/metrics

Make sure the app is emitting metrics

To look at all the counters emitted by an app, run:

cf tail -f --envelope-type=counter <APP_NAME>

To look at all the gauges emitted by an app, run:

cf tail -f --envelope-type=gauge <APP_NAME>

If you don't see anything contact your platform support to enable the Metric Registrar.

Want to make a change?

Make sure you run all the tests before submitting a PR

./gradlew tests

About

Examples on how to use metric registrar endpoint scraping

License:Apache License 2.0


Languages

Language:Java 54.3%Language:HTML 19.1%Language:Go 16.8%Language:Kotlin 9.8%