Snapshot Detail Dashboard for vRealize Operations Manager

By Lerpong Intaraworrapath | September 21st, 2021

Snapshot

การสร้าง Snapshot Detail Dashboards in vRealize Operations Manager

ทำการ Download View and Dashboard จาก link ด้านล่าง มาเตรียมไว้

https://code.vmware.com/samples/4659/snapshot-detail-dashboard-for-vrealize-operations-8-2-and-cloud

เริ่มการติดตั้ง

  1. อันดับแรก เราจะต้องทำการแก้ไข Policy โดยไปที่ Menu -> Administrator -> Policies แล้วให้เลือก vSphere Solution’s Default Policy (DATE) ;Status / Active
Default Policy
Default Policy

2. ทำการ Edit Policy โดย ทำการเลือก Metrics and Properties ให้ทำการ Search คำว่า “Disk” หลังจากนั้นให้ expand -> Disk Space -> Snapshot เราจะพบคำว่า

  • Creator
  • Description

ให้เราทำการ “Enable” Metrics ทั้งสองค่า

Metrics Creator and Description
Metrics Creator and Description

3. ทำการ Import view โดยเลือก Dashboards -> Views -> Manage Views

Manage Views
Manage Views

4. ทำการ Import…

Import Views

5. ทำการ Browse ไปยัง location ที่เรา Save View “Views.zip”

Views.zip
Views successfully

6. ทำการ Import Dashboards โดยเลือก Menu Dashboards -> Dashboards -> Manage Dashboards

Manage Dashboards
Manage Dashboards

7. เลือก Import…

Import Dashboards
Import Dashboards

8. Browse file “Dashboards.zip”

Dashboards.zip file
Dashboards.zip
Dashboard Successfully

9. เลือก Dashboards -> “Snapshot Detail”

Snapshot Detail
Snapshot Detail Dashboards

Inconclusion – Dashboards

Dashboard Name: Snapshot Detail
Dashboard Path: Shared Dashboards (GBrandon)/Troubleshooting
Views
View Name Name on Dashboard View Type
Reclaim | Snapshot Age Distribution Snapshot Age Distribution
Reclaim | Snapshot Size Distribution Snapshot Size Distribution
Reclaim | Snapshot Summary Summary List
Reclaim | Snapshot Detail Snapshot Detail List

Support

This dashboard requires vRealize Operation 8.2 Advanced or Enterprise edition or vRealize Operations Cloud.

A version compatible with vRealize Operations 6.7, 7.0, 7.5, 8.0, and 8.1 is available here.

Reference

VMWorld 2021

PREMIER MULTI-CLOUD EVENT ONLINE AROUND THE GLOBE

OCTOBER 5 – 7, 2021

VMworld PREMIER MULTI-CLOUD EVENT ONLINE AROUND THE GLOBE

งาน Event VMware ประจำปีที่รวบรวม VMware Technology ในหัวข้อต่างๆให้ผู้ที่สนใจหรือใช้งาน ได้เรียนรู้ และสามารถ นำมาร่วมใช้งาน ใน Business ของลูกค้าไม่ว่าจะเป็น การทำ Business transformation, Digital foundation, Container รวมถึง Cloud Technology ต่างๆ ให้สามารถ ใช้งานได้มีประสิทธิภาพและ ตอบสนองในด้านธุรกิจ มากที่สุด ไม่ว่าจะเป็น Productivity, Performance, Operational , Efficiency และ Security

งานนี้จะจัดเป็นแบบ Virtual ในวันที่ 5–7 ตุลาคม 2564

https://www.vmware.com/vmworld/en/index.html

ที่สำคัญงานี้ Free!!! (หรือจะแบบเสียเงิน) ลูกค้า สามารถ เข้าไป Register และสามารถเข้าไป ดู Agenda รวมทั้งสามารถ สร้าง Schedule session ของตัวเราเองได้ในหัวข้อที่สนใจ

https://blogs.vmware.com/vmworld/2021/02/vmworld-2021-save-the-date.html

VMworld 2021 Passes

Track ต่างๆ ที่รวบรวม VMware Technology

VMworld 2021 Track
VMworld 2021 Learning Tracks

https://www.vmware.com/vmworld/en/index.html

Create vRealize Operations Dashboard for VM Uptime in Days, Hours, Minutes, Seconds

By Lerpong Intaraworrapath | September 17th, 2021

Day, Hours, Minutes, Second

เริ่มการติดตั้ง

เนื่องจาก ตัว vRealize Operations ไม่ได้มี Dashboard สำหรับแสดง ค่า Uptime ในจำนวน วัน ชั่วโมง นาที และวินาที (Days, Hours, Minutes, Seconds) เราจะสร้าง Uptime Dashboard ขึ้นมา

(สำหรับต้นฉบับ วิธีการคำนวณ Super Metrics ที่เราจะนำมาใช้ มาจากไหน สามารถดูได้จาก https://www.tilkens.com/2018/11/vrops-vm-uptime-days-hours-mins-secs/)

อันดับแรก เราจะมาทำการ สร้าง Super Metrics ขึ้นมาก่อนนะครับ โดยด้านล่างจะเป็น ค่า Super Metrics ที่เราจะสร้าง

Custom-GuestOSUptime-Days = floor(${this, metric=sys|osUptime_latest}/86400)
Custom-GuestOSUptime-Hours = floor(${this, metric=sys|osUptime_latest}/3600)-(floor(${this, metric=sys|osUptime_latest}/86400)*24)
Custom-GuestOSUptime-Minutes = floor(${this, metric=sys|osUptime_latest}/60)-(floor(${this, metric=sys|osUptime_latest}/3600)*60)
Custom-GuestOSUptime-Seconds = ${this, metric=sys|osUptime_latest}-(floor(${this, metric=sys|osUptime_latest}/60)*60)

  1. เรา Login ไปที่ vRealize Operation Manager (ต้องมีสิทธิ์ ในการ create Super Metices ด้วยนะครับ!!!)
  2. Go to -> Administrator -> Configuration -> Super Metrics
vROPs administrator Super Metrics

3. Click Add จากนั้นเพิ่ม Super Metrics สำหรับ Days

Custom-GuestOSUptime-Days

Create Super Metric Name

4. ใส่ Formula -> Click Next

floor(${this, metric=sys|osUptime_latest}/86400)

5. Assign to Object Types -> Select Virtual Machine -> Click Next

Virtual Machine

6. Enable in a Policy -> Click check box

7. Click Finish

8. Repeat ตั้งแต่ step ที่ 3 สำหรับ create Super Metrics for Hours, Minutes, Seconds

9. เราก็จะได้ Super Metrics ทั้งหมด 4 ค่า สำหรับ Days, Hours, Minutes, Seconds

ต่อมาเราก็จะมาทำการ สร้าง Dashboards

  1. Select Dashboards -> Dashboards -> Create Dashboard

2. ใส่ชื่อ Dashboard (ผมใส่ชื่อ VM Uptime) ทำการ เลือก Widget

Select ->Object List

Select -> Scoreboard

3. Select -> SHOW INTERACTIONS ทำการ โยง INTERACTION ระหว่าง Widget Object List กับ Scoreboard ทำการ Click -> SAVE

4. เราจะทำการ Edit Widget -> Scoreboard ทำการเลือก ดินสอที่ปุ่มมุมบนด้านขวา

5. เลือก Output Data -> Select -> Add New Metrics

6. ทำการ ใส่ Virtual Machine ที่ช่อง filter หลังจากนั้นกด Enter เลือก Virtual Machine จากช่องด้านล่าง ทำการ Double click ที่ Virtual Machine

ทำการขยาย Super Metrics -> Super Metrics ทำการเลือก Super Metrics -> Days หลังจากนั้นกด OK

7. Repeat Step ที่ 5 สำหรับ Hours, Minutes, Seconds แบบรูปด้านล่าง (แนะนำให้เลือกที่ละ อันเราก็จะได้ลำดับเรียงจาก Days, Hours, Minutes, Seconds)

8. ทำการแก้ไข ในช่อง Box Label โดนทำการ Double Click ในช่อง Box Label ใส่

Days

Hours

Minutes

Seconds

9. ใส่ครบแล้วทำการ Click -> SAVE

10. กลับมาที่หน้า Dashboards ทำการเลือก Virtual Machine ใน Object List เราก็จะเห็น Scoreboard แสดง ค่า Virtual Machine Uptime เป็น Days, Hours, Minutes, Seconds.

*ที่สำคัญสร้าง Dashboard เสร็จแล้ว อย่าลืม Share Dashboard permission ด้วยนะครับ เดี๋ยว User อื่น Login vROPs จะมองไม่เห็นนะครับ 🙂

Credit: https://www.tilkens.com/2018/11/vrops-vm-uptime-days-hours-mins-secs/