pivotal-cf / metric-registrar-cli

Allow users to register metric sources for CF
Apache License 2.0
7 stars 3 forks source link

Register a metrics endpoint via manifest file #2

Open honnel opened 5 years ago

honnel commented 5 years ago

At the moment we are registering metrics endpoints with:

 $ cf register-metrics-endpoint app /actuator/prometheus

Is there a possibility to do this in a declarative way in manifest.yaml like other service bindings?

odedia commented 5 years ago

I haven't test this, but if you'll take a look at the generated user-provided service, it appears that it simply creates a syslog drain url in the followng format:

metrics-endpoint:///actuator/metrics

Should be fairly simple to create a user-provided service in advance with the same configuration.