Monitoring > Cloud Monitoring > Usage Scenarios

This document describes overall usage scenarios, from configuring dashboard to creating notifications.
To use Cloud Monitoring, follow the steps below.

  • Select the service
    Cloud Monitoring is provided by default when you create a project.
    So you can use the service after creating a project without doing anything else.
    To create a project, see the NHN Cloud Console User Guide.
  • Set up metric collection
    Set up metric collection for each service.
  • Configure the dashboard
    Add widgets to your dashboard to customize it.
  • Create notifications
    You can set thresholds to be notified when events occur.

Enable metric collection

To configure the dashboard, you first set up metric collection by service.

  1. Select Cloud Monitoring > Manage Metrics.
  2. On the Manage Metrics page, check out the service-specific metrics provided by Cloud Monitoring.
  3. Click the Metrics Collection Settings toggle for the service you want to collect metrics for to enable the service.
  4. When "Do you want to start collecting metrics?" appears, click Confirm.
  5. Once collection starts, you can add widgets using those metrics.

image

  • Metrics for Instance and GPU Instance are provided by default.
  • Only enabled services collect metrics. Please note that the service is enabled.
  • Clicking the Metrics Collection Settings toggle to disable it will stop collecting that metric and it will not appear in the dashboard.

Configure the dashboard

You are now ready to configure your dashboard.
Let's create a dashboard and add a widget.

Create a dashboard

  1. +Create Dashboard. Select the image
  2. Enter a name and description for your dashboard, then click Confirm. image
  3. Check the created dashboard.

Add widgets

  1. Click Add Widgetto go to the Add widget page. Add an image
  2. Enter a name for the widget, and select a graph type and service.
  3. In Manage Metrics, you can only select services that have collection settings enabled.
  4. Select the resource type and metric items that correspond to the selected service.
  5. You'll see boxes to set filters and a legend for each selected metric item. image

  6. You can set filters to selectively see only the metrics you want.

  7. For example, to monitor specific instances that are only in the Korea (Pangyo) region, you would set it up like this
    • Click +Add to add a filter.
    • Set the filter Region``=``kr1 (Korea (Pangyo)) in the order of label, operator, and condition.
    • Add a filter to select Instances = {Instance name}by label, operator, and condition.
    • This will display the specific instance metrics for the KR1 (Korea (Pangyo)) region in the graph.
  8. You can set the name of the legend, units, and position of the y-axis as needed.
  9. If the metrics have the same units, they will be displayed as one y-axis.
  10. In Y-Axis Positioning, Auto will automatically position the y-axis in left, then right order if the units are different for each metric. image

  11. Use the preview feature to make sure the graph looks the way you want.

  12. Once checked, click Add to add the widget to your dashboard. image

Edit Dashboard

Check the widgets added to your dashboard and edit them to your liking.

  1. Click the toggle in the top-right corner of the dashboard to change from View Modeto Edit Mode.
  2. Drag and drop widgets to change their position or add groups of widgets to organize your dashboard.
  3. Click Add Widget Group to add a group at the bottom. Drag and drop widgets into the group to place them. image

Notification Settings

Enable the setting to receive notifications when events occur for more efficient monitoring.

Create a notification

  1. Select Cloud Monitoring > Manage Notifications > Notifications Settings.
  2. Click Create Notifications to go to the creation page. Enter an image

  3. In Basic information, enter a name and descriptionfor the notification and select a service.

  4. Select the resource type and metrics that correspond to the selected service.
  5. You'll see a filter for the selected metric and a box to set notification conditions. image

  6. Set up filters to set up notifications on the metrics you want.

  7. Enter the threshold and duration, which are the conditions under which the notifications will occur.
  8. For example, if your CPU utilization is above 30% and you want to be notified when this state lasts for more than 3 minutes, you would set it up like this

    • Select the metric as CPU usage, and set filters as needed.
    • Select >=(greater than or equal to) for the comparison method.
    • Enter 30for the threshold and 3 for the duration. image
  9. Select a notification recipient.

  10. You can select the notification recipient group that you created in your project.
  11. Create a group to receive project notifications first. image

You can also quickly set up notifications from the dashboard widget.

  1. Click the More icon in the top-right corner of the widget, then click Create Notifications from the drop-down menu.
  2. You will be taken to the Create Notifications page, and the metric-specific filters you selected when creating the widget will still be applied. image

Notifications are now fired when the threshold you set is reached, and you can view the history of the firing in Manage Notifications > Notifications History.

Project Dashboard Visibility Settings

You can view the dashboards generated by the Cloud Monitoring service on the project main screen.

  1. Click Cloud Monitoring > Dashboard > Manage Dashboard.
  2. Click the Project Dashboard Visibility Settings toggle for the dashboard you want to show on the project main screen to enable it. image

You can also view the dashboards you've set up in your project's custom dashboard for quick monitoring.

TOP