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.
- Select Cloud Monitoring > Manage Metrics.
- On the Manage Metrics page, check out the service-specific metrics provided by Cloud Monitoring.
- Click the Metrics Collection Settings toggle for the service you want to collect metrics for to enable the service.
- When "Do you want to start collecting metrics?" appears, click Confirm.
- Once collection starts, you can add widgets using those metrics.
- 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.
You are now ready to configure your dashboard.
Let's create a dashboard and add a widget.
Create a dashboard
- +Create Dashboard.
- Enter a name and description for your dashboard, then click Confirm.
- Check the created dashboard.
- Click Add Widgetto go to the Add widget page.
- Enter a name for the widget, and select a graph type and service.
- In Manage Metrics, you can only select services that have collection settings enabled.
- Select the resource type and metric items that correspond to the selected service.
-
You'll see boxes to set filters and a legend for each selected metric item.
-
You can set filters to selectively see only the metrics you want.
- 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.
- You can set the name of the legend, units, and position of the y-axis as needed.
- If the metrics have the same units, they will be displayed as one y-axis.
-
In Y-Axis Positioning, Auto will automatically position the y-axis in left, then right order if the units are different for each metric.
-
Use the preview feature to make sure the graph looks the way you want.
- Once checked, click Add to add the widget to your dashboard.
Edit Dashboard
Check the widgets added to your dashboard and edit them to your liking.
- Click the toggle in the top-right corner of the dashboard to change from View Modeto Edit Mode.
- Drag and drop widgets to change their position or add groups of widgets to organize your dashboard.
- Click Add Widget Group to add a group at the bottom. Drag and drop widgets into the group to place them.
Notification Settings
Enable the setting to receive notifications when events occur for more efficient monitoring.
Create a notification
- Select Cloud Monitoring > Manage Notifications > Notifications Settings.
-
Click Create Notifications to go to the creation page.
-
In Basic information, enter a name and descriptionfor the notification and select a service.
- Select the resource type and metrics that correspond to the selected service.
-
You'll see a filter for the selected metric and a box to set notification conditions.
-
Set up filters to set up notifications on the metrics you want.
- Enter the threshold and duration, which are the conditions under which the notifications will occur.
-
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
30
for the threshold and 3
for the duration.
-
Select a notification recipient.
- You can select the notification recipient group that you created in your project.
- Create a group to receive project notifications first.
You can also quickly set up notifications from the dashboard widget.
- Click the More icon in the top-right corner of the widget, then click Create Notifications from the drop-down menu.
- You will be taken to the Create Notifications page, and the metric-specific filters you selected when creating the widget will still be applied.
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.
- Click Cloud Monitoring > Dashboard > Manage Dashboard.
- Click the Project Dashboard Visibility Settings toggle for the dashboard you want to show on the project main screen to enable it.
You can also view the dashboards you've set up in your project's custom dashboard for quick monitoring.