ECSTeam / cloudfoundry-top-plugin

Cloud Foundry CF cli plugin - show top stats
Apache License 2.0
73 stars 21 forks source link

Cell Stats not working for a new foundation #4

Closed ichandan16 closed 7 years ago

ichandan16 commented 7 years ago

Hi ECS team,

We are not getting Cell Stats or Capacity Plan info for a newly installed foundation. The ERT version is 1.7.35.

Attached the screenshot.

cf_top_issue

Thanks, Chandan

kkellner commented 7 years ago

Can you open the log window (CTRL-D after cf top startup) and send a screenshot of the screen? Also, can you try using the nozzle plugin and see if you are getting container metrics? (e.g., cf nozzle -filter ContainerMetric)

ichandan16 commented 7 years ago

I did cf nozzle and hit enter to collect all the log types. I got only ValueMetric and CounterEvent.

akoranne commented 7 years ago

What user are you running the cf top with? Does the user have admin privileges?

ichandan16 commented 7 years ago

I am running as admin user for CF foundation. We have 8 foundations with ERT-1.7.35. This plugin works fine with foundations having more than 5 Diego cells but in this case which is a new foundation, it fails to pull Cell Stats.

Thanks, Chandan

kkellner commented 7 years ago

So something is odd -- cf nozzle should return container metrics every 30 seconds --- assuming you have running applications. I can see you have 14 apps deployed but are they "started" AND running? Or are they crashing / failed?

akoranne commented 7 years ago

Can you review the privileges assigned to the firehose nozzle user?

    $> uaac token client get admin -s [admin client secret]
    $> uaac user get [firehose nozzle user] | grep -i display
kkellner commented 7 years ago

Closing issue as there was no response from reporter.