Network Traffic Monitoring Overview
    • PDF

    Network Traffic Monitoring Overview

    • PDF

    Article Summary

    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

    HeaderDescription
    x-ncp-apigw-timestampThe 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-keyAPI Key issued by Naver Cloud Platform or Access Key issued by Sub Account.
    x-ncp-apigw-signature-v2Signature
    HMAC encryption algorithm that encrypts the body in the above example with a SecretKey mapped to AccessKey uses HmacSHA256
    x-ncp-dmn_cdUse 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

    Chart-related API


    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.