cover your paas - meetupfiles.meetup.com/11153092/cover-your-paas-nyccf-daniel-krook.pdf · cover...

39
‹#› Cover your PaaS with the Cloud Foundry dashboard for operational metrics Daniel Krook Senior Certified IT Specialist, IBM @danielkrook - krook.info

Upload: others

Post on 14-Aug-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

‹#›

Cover your PaaSwith the Cloud Foundry dashboard for operational metrics

Daniel KrookSenior Certified IT Specialist, IBM@danielkrook - krook.info

Page 2: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

Your presenter▪ Built the DevOps infrastructure to deploy and manage the first large scale

Cloud Foundry clusters on OpenStack inside of IBM !

▪ Helps customers understand the value of the Platform-as-a-Service cloud delivery model and adopt systems of engagement !

▪ Enjoys meeting and sharing knowledge with the community that builds open cloud architectures (and founded NYC CF)

Page 3: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

IBM runs Cloud Foundry on hundreds of SoftLayer VMs

BlueMix

In the past year, we’ve learned how to

• Manage hundreds of DEAs, service nodes, fabric nodes in the beta • Several other development and staging environments before that • Deployed first with Chef, then with BOSH over 18 months • All environments have benefited from the Admin UI

• Keep Cloud Foundry running smoothly • Discover and prevent impending problems • Resolve unexpected issues quickly

Page 4: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

1. Show the type and volume of data and why we want to monitor it

2. Show how we monitor that data with the Admin UI (the dashboard for operational metrics)

3. Show you a demo of the Admin UI and how to install it either standalone or via BOSH

4. Show you how to get involved with the GitHub incubator project and improve it

Goals for this talk

We are looking to get better at this, and help the community get better as well.

Page 5: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

What’s the important data and how do we find it?

Page 6: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

What metrics matter?

Data that can be tracked over time to see trends and behaviors

Data that can help us predict problems before they happen

DEAs and apps health

▪Memory reserved as a proportion of the memory available

General health of all components

▪Health of the virtual machines ▪Status of the processes running on them

Database nodes and services

▪Number of provisioned services against capacity available

At the PaaS layer, that means:

Page 7: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

▪ Deliver continuous availability in the cloud !

▪ Proactively solve problems rather than react to them !

▪ Understand the behavior of the system to automate it

Why do we need this data?

Page 8: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

▪ NATS message bus • Discover the components to interrogate • Query their varz endpoints

Where can we find it?

▪ Cloud Controller REST API ▪ UAA REST API

!

Page 9: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

Enter the Admin UI

Page 10: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

1. Views of component health !

2. Resource usage details !

3. Ongoing growth trends !

4. Access to logs and raw varz !

5. Email notifications

The Admin UI provides…

Page 11: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

▪ Components nearing capacity or failure ▪ Already failed components ▪ Out of control apps and noisy users

!!!

▪ Active/inactive users and apps ▪ Growth trends and runtime/service adoption

It helps us find (and fix) problems

It helps us see patterns

Page 12: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

Link to the spaces, users, and apps tabs above, with search filter enabled

Organizations

Clicking the icon will dump raw JSON data

Page 13: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

Link to the orgs, users, and apps tabs above, with search filter enabled

Spaces

Clicking the icon will dump raw JSON data

Page 14: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

Apps

Link to the spaces, orgs, and DEAs tabs above, with search filter

App URL is linked and the bound services are listed

Clicking the icon will dump raw JSON data

Page 15: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

Link to the spaces and orgs tabs above, with search filter enabled

Users

Clicking the icon will dump raw JSON data

Page 16: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

Link to the apps tabs above, with search filter enabled

DEAs

Clicking the varz link will dump raw JSON data

Page 17: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

Cloud controllers

Clicking the varz link will dump raw JSON data

Page 18: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

Health manager

Clicking the varz link will dump raw JSON data

Page 19: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

Service gateways

Individual service node capacities are listed

Clicking the varz link will dump raw JSON data

Page 20: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

Routers

Clicking the varz link will dump raw JSON data

Page 21: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

Components

Clicking the varz link will dump raw JSON data

Page 22: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

LogsThis only shows logs on the VM where the app is installed !Logs are vertically and horizontally scrollable

Page 23: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

Nightly stats

This summary page is publicly viewable

Page 24: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

Running the Admin UI

Run the Admin UI as a standalone service !

$ git clone https://github.com/cloudfoundry-incubator/admin-ui.git $ cd admin-ui $ ruby bin/admin

Then open http://localhost:8070 !!Run the Admin UI as a BOSH job

- name: admin_ui release: admin-ui template: - admin_ui_v2 instances: 1 resource_pool: logger persistent_disk: 10240 networks: - name: default default: [dns, gateway]

Update config/default.yml (works as is for BOSH-lite)

Page 25: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

Thanks!

Daniel KrookSenior Certified IT Specialist, IBM@danielkrook - krook.info

Page 26: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

Older screenshots of the Admin UI

Latest screenshots are on GitHub https://github.com/cloudfoundry-incubator/admin-ui

Page 27: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

User and app trends

There is also one unauthenticated page for high level stats

Page 28: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

DEA list

Page 29: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

DEA details

Page 30: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

Service node list

Page 31: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

Service node details

Page 32: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

User list

Page 33: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

User details

Page 34: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

App list

Page 35: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

App details

Page 36: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

Log list

Page 37: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

Log details

Page 38: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

Email notifications

Page 39: Cover your PaaS - Meetupfiles.meetup.com/11153092/Cover-Your-PaaS-NYCCF-Daniel-Krook.pdf · Cover your PaaS with the Cloud ... Built the DevOps infrastructure to deploy and manage

ibm.com/cloud