Network Traffic Monitoring Overview
- Print
- PDF
Network Traffic Monitoring Overview
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Overview
The Network Traffic Monitoring API allows you to analyze and monitor traffic from Naver's cloud platform. It is achieved through HTTP-based GET/POST/PUT/DELETE method sales.
Common Setting
API URL
https://vpc-ntm.apigw.ntruss.com
Request Header
Header | Description |
---|---|
x-ncp-apigw-timestamp | The elapsed time from 00:00:00 on January 1, 1970 is expressed in milliseconds (UTC) and is deemed invalid if there is a time difference of more than 5 minutes with the APIGW server. |
x-ncp-iam-access-key | API Key issued by Naver Cloud Platform or Access Key issued by Sub Account. |
x-ncp-apigw-signature-v2 | Signature HMAC encryption algorithm that encrypts the body in the above example with a SecretKey mapped to AccessKey uses HmacSHA256 |
x-ncp-dmn_cd | Use PUB on Naver's cloud platform (default: PUB) |
The following is an example of creating 'x-ncp-apigw-signature-v2' in Java.For more information, please refer to the API Gateway document.
public String makeSignature() {
String space = " "; // one space
String newLine = "\n"; // new line
String method = "GET"; // method
String url = "/photos/puppy.jpg?query1=&query2"; // url (include query string)
String timestamp = "{timestamp}"; // current timestamp (epoch)
String accessKey = "{accessKey}" // access key id (from portal or sub account)
String secretKey = "{secretKey}";
String message = new StringBuilder()
.append(method)
.append(space)
.append(url)
.append(newLine)
.append(timestamp)
.append(newLine)
.append(accessKey)
.toString();
SecretKeySpec signingKey = new SecretKeySpec(secretKey.getBytes("UTF-8"), "HmacSHA256");
Mac mac = Mac.getInstance("HmacSHA256");
mac.init(signingKey);
byte[] rawHmac = mac.doFinal(message.getBytes("UTF-8"));
String encodeBase64String = org.apache.commons.codec.binary.Base64.encodeBase64String(rawHmac);
return encodeBase64String;
}
Basic information
Before using the Network Traffic Monitoring API, I'll give you some basic information.
Metric and Dimension
- Metric means a numerical value that the user wants to handle.
- Dimension is a property of specific data that means which server belongs to, where it is located, and what value it is.
Aggregation
- Traffic collects performance data at 1-minute intervals and, if necessary, collects more often or rarely than 1-minute.
- There may be a delay of about 4 minutes in near real time.
Interval
- Aggregation currently runs every minute, 15 minutes, 30 minutes, 1 hour, and 1 day. For example, the 5-minute tally is based on the values collected at 10:00 to 10:04:59, 10:05 to 10:09:59, ...
- The aggregated results produce AVG and MAX values every 1 minute, 15 minutes, 30 minutes, 1 hour, and 1 day.
Operation
Meta-related API
- Region Inquiry: As
- AS Inquiry: As
- Subnet Inquiry: Subnet
- Server Inquiry: Server
- Load Balancer Inquiry: Load Balancer
- Country Inquiry : Country
- VPC Inquiry: VPC
Chart-related API
- Linechart Inquiry: GetLineChart
- Topchart Inquiry: GetTopsChart
Was this article helpful?