Custom Metrics and Logs
ServiceWatch can collect user-defined custom metrics and log files from user-created resources.
Custom metrics and logs can be collected in the following two ways.
| Collection Methods | Detailed Description |
|---|---|
| ServiceWatch Agent | Install the Agent directly on the resource and configure the metrics and logs to collect. |
| ServiceWatch Custom Metrics and Logs API | Collected through the OpenAPI/CLI provided by ServiceWatch |
To request firewall release, submit a request via Support Center > Inquiry.
Billable Metrics API
The following metrics APIs are billed when collecting custom metrics and logs. ListMetricData and DownloadMetricDataImage are always billed without a free tier, while all other APIs are free up to 1,000,000 calls per month.
| API | Description | Billing unit | Provided for free |
|---|---|---|---|
| ListMetricData | Retrieve the list of metric data | Per 1,000 requested metrics | None |
| DownloadMetricDataImage | Download metric data widget image | Per 1,000 requested metrics | None |
| ListMetricInfos | Query metric data | Per 1,000 calls | 1,000,000 per month |
| CreateCustomMetricMetas | Create custom metric metadata | Per 1,000 calls | 1,000,000 per month |
| CreateCustomMetrics | Generate (Send) Custom Metric Data | Per 1,000 calls | 1,000,000 per month |
| ShowDashboard | View Dashboard | Per 1,000 calls | 1,000,000 per month |
| ListDashboards | Retrieve dashboard list | Per 1,000 calls | 1,000,000 per month |
| CreateDashboard | Create Dashboard | Per 1,000 calls | 1,000,000 per month |
| SetDashboard | Edit Dashboard | Per 1,000 calls | 1,000,000 per month |
| DeleteBulkDashboards | Delete Dashboard | Per 1,000 calls | 1,000,000 per month |
- Direct API calls, the user console, and the ServiceWatch Agent also use the ServiceWatch API and are therefore included in API calls.
- When making
ListMetricDataandDownloadMetricDataImageAPI requests, you can include up to 500 metrics per request, and billing is based on the number of requested metrics rather than the number of API requests. - APIs other than
ListMetricDataandDownloadMetricDataImageare billed based on the number of API requests, with the first 1,000,000 requests per month free of charge.CreateCustomMetricMetasis called once when configuring custom metric collection.CreateCustomMetricsis called to send metric data to ServiceWatch at 1-minute intervals.
- Logs are billed based on the collected volume, so no additional charges are applied for API calls.
For detailed pricing information, refer to the ServiceWatch pricing information in the Samsung Cloud Platform Service Portal.
ServiceWatch Agent
You can install the ServiceWatch Agent on user resources such as Virtual Servers, GPU Servers, and Bare Metal Servers to collect custom metrics and logs.
ServiceWatch Agent Network Environment
The ServiceWatch Agent is designed to send collected metrics and logs using OpenAPI. Therefore, a network environment that can communicate with the ServiceWatch OpenAPI endpoint from server resources is required, and one of the following two methods is used.
- How to Use an Internet Gateway: Create an Internet Gateway in the VPC where the resources are located, and configure a NAT IP on the server resources to enable communication with external networks.
- How to Use PrivateLink: Create a PrivateLink Endpoint in the VPC to communicate over the internal network without going through the internet.
For the configuration procedures and supported actions for each method, refer to Pre-Environment Configuration for ServiceWatch Agent.
Supported OS Images for ServiceWatch Agent
The following OS images are available for the ServiceWatch Agent.
| OS Image version | EOS Date |
|---|---|
| Alma Linux 8.10 | 2029-05-31 |
| Alma Linux 9.6 | 2025-11-17 |
| Oracle Linux 8.10 | 2029-07-31 |
| Oracle Linux 9.6 | 2025-11-25 |
| RHEL 8.10 | 2029-05-31 |
| RHEL 9.4 | 2026-04-30 |
| RHEL 9.6 | 2027-05-31 |
| Rocky Linux 8.10 | 2029-05-31 |
| Rocky Linux 9.6 | 2025-11-30 |
| Ubuntu 22.04 | 2027-06-30 |
| Ubuntu 24.04 | 2029-06-30 |
| Windows 2019 | 2029-01-09 |
| Windows 2022 | 2031-10-14 |
It is provided in the same manner as the OS image for the virtual server. See Virtual Server > OS Image provided versions.
Quick Guide for Using the ServiceWatch Agent
The following is a quick guide for collecting OS metrics and logs for Virtual Servers in a Linux environment.
- Refer to Installing Node Exporter to install Node Exporter on the server for collecting custom metrics.
- Installing Node Exporter allows ServiceWatch to collect OS metrics through Node Exporter, in addition to the metrics provided by default monitoring.
- Refer to ServiceWatch Agent Configuration to download the ServiceWatch_Agent archive, then configure and run the ServiceWatch Agent Manager.
- Refer to the
os-metrics-min-examplesfolder in the compressed file to configure the minimum metrics (4) and run the ServiceWatch Agent.
- Refer to the
Metric collection through the ServiceWatch Agent is categorized as custom metrics and is subject to charges, unlike the default metrics collected from each service. Therefore, be careful not to configure unnecessary metric collection. Configure the system to collect only the metrics that are essential.
- Free provision is available for up to 10 per account/region.
ServiceWatch Custom Metrics and Logs API
You can collect custom metrics and logs using the OpenAPI/CLI provided by ServiceWatch.
You can send custom metric data and custom logs to ServiceWatch via the ServiceWatch OpenAPI/CLI and view the visualized information in the Console.
Metric collection via ServiceWatch OpenAPI/CLI is billed as custom metrics, unlike the default metrics collected from each service. Therefore, be careful not to configure unnecessary metric collection. Configure the system to collect only the metrics that are essential.
- Free tier: Up to 10 per account/region.
Custom Metrics API
Create Custom Metric Metadata
To collect metric data generated by user resources or applications, rather than metrics provided by Samsung Cloud Platform services (such as Virtual Server), you must create custom metric metadata in ServiceWatch.
| Parameter | Description |
|---|---|
| namespace | In ServiceWatch, users can define a namespace to distinguish it from other metrics. |
| A namespace must be 3 to 128 characters long, start with an English letter, and can include letters, numbers, spaces, and special characters (_- /). | |
| For more information, see Namespace. | |
| metricMetas > metricName | Set the name of the metric to collect. The metric name must be 3 to 128 characters long, start with an English letter, and may include letters, numbers, and special characters (_).
|
| metricMetas > storageResolution | Sets the collection interval for the specified metric. The default value is 60 (1 minute), and the interval can be configured in seconds. |
| metricMetas > unit | You can set the unit for a metric.
|
| metricMetas > dimensions | To identify custom metric data, configure dimensions to visualize and display it in the Console. When visualizing collected metrics in the Console, they are displayed in combinations based on the configured dimensions. |
| metricMetas > descriptionKo | Korean description of the metrics being collected |
| metricMetas > descriptionEn | English description of the metrics being collected |
For details on creating custom metric metadata, see CreateCustomMetricMetas.
Create Custom Metrics
After creating custom metric metadata, you can send the resulting metric data to ServiceWatch using the CreateCustomMetrics API.
The delivered metric data can be queried by the configured namespace.
For details on creating custom metric data, see CreateCustomMetrics.
Querying Metrics Data
You can query metric data, including custom metrics, by using the Console and the ListMetricInfos and ListMetricData APIs.
For details on querying metric data, refer to ListMetricInfos and ListMetricData.
Custom Log API
Create a Log Stream
A ServiceWatch log group is required for custom log collection. Log groups can only be created in the Console. After creating a log group in advance, you can use the Create Log Stream API to create a log stream to be sent to ServiceWatch.
For details on creating a log stream, see CreateCustomLogStream.
Create a log event
To send individual log messages (log events) to ServiceWatch for custom log collection, use the log event creation API after creating a log group and a log stream.
For details on creating log events, see CreateCustomLogEvents.