Re: Forwrad container metrics to syslog drain


Johannes Tuchscherer
 

That is not quite true. From the Firehose you can get ContainerMetrics for
an app as long as you have access to that app. The Firehose CLI plugin for
example shows all application related messages - log messages,
httpstartstop events and container metrics. And that plugin works even for
a 'normal' space developer.

Here is the method from the noaa library that you can use to get access to
that data:
https://github.com/cloudfoundry/noaa/blob/master/consumer/async.go#L53-L55

Johannes

On Wed, Oct 5, 2016 at 4:09 PM Mehran Saliminia <msaliminia(a)gmail.com>
wrote:

thank you for your response! it works for app logs with a regular user
token but streaming ContainerMetrics will only succeed if you have admin
credentials.

Join {cf-dev@lists.cloudfoundry.org to automatically receive all group messages.