locked
Interpretation of IP usage RRS feed

  • Question

  • I'm trying to interpret the Dyamic IP usage metrics. It gives me 3 different values for same period. The metric should be (according to documentation) in number of IP addresses. In order get actual usage for this period, should I calculate the mean value? (6+7+17)/3 ?

    Se the below returned values:

    {
                "id" => "/subscriptions/8cb9d7eb-d4df-4fb5-a52f-xxxxxxxxxx/providers/Microsoft.Commerce/UsageAggregate/4afdbf51-a87b-431b-a9f1-20d9f51c66d6-9E2739BA86744796B465F64674B822BA",
              "name" => "4afdbf51-a87b-431b-a9f1-20d9f51c66d6-9E2739BA86744796B465F64674B822BA",
              "type" => "Microsoft.Commerce/UsageAggregate",
        "properties" => {
            "subscriptionId" => "4afdbf51-a87b-431b-a9f1-xxxxxxxxx",
            "usageStartTime" => "2018-01-24T00:00:00+00:00",
              "usageEndTime" => "2018-01-25T00:00:00+00:00",
              "instanceData" => "{\"Microsoft.Resources\":{\"resourceUri\":\"/subscriptions/4afdbf51-a87b-431b-a9f1-xxxxxxxxx/resourceGroups/winvmrg1/providers/Microsoft.Network/publicIPAddresses/winvm1-ip\",\"location\":\"local\",\"tags\":null,\"additionalInfo\":\"InUse\"}}",
                  "quantity" => 6.0,
                   "meterId" => "9E2739BA86744796B465F64674B822BA"
        }
    }
    {
                "id" => "/subscriptions/8cb9d7eb-d4df-4fb5-a52f-xxxxxxxxx/providers/Microsoft.Commerce/UsageAggregate/4afdbf51-a87b-431b-a9f1-20d9f51c66d6-9E2739BA86744796B465F64674B822BA",
              "name" => "4afdbf51-a87b-431b-a9f1-20d9f51c66d6-9E2739BA86744796B465F64674B822BA",
              "type" => "Microsoft.Commerce/UsageAggregate",
        "properties" => {
            "subscriptionId" => "4afdbf51-a87b-431b-a9f1-xxxxxxxxx",
            "usageStartTime" => "2018-01-24T00:00:00+00:00",
              "usageEndTime" => "2018-01-25T00:00:00+00:00",
              "instanceData" => "{\"Microsoft.Resources\":{\"resourceUri\":\"/subscriptions/4afdbf51-a87b-431b-a9f1-xxxxxxxx/resourceGroups/winvmrg1/providers/Microsoft.Network/publicIPAddresses/winvm1-ip\",\"location\":\"local\",\"tags\":null,\"additionalInfo\":\"InUse\"}}",
                  "quantity" => 17.0,
                   "meterId" => "9E2739BA86744796B465F64674B822BA"
        }
    }
    {
                "id" => "/subscriptions/8cb9d7eb-d4df-4fb5-a52f-xxxxxxxxx/providers/Microsoft.Commerce/UsageAggregate/4afdbf51-a87b-431b-a9f1-20d9f51c66d6-9E2739BA86744796B465F64674B822BA",
              "name" => "4afdbf51-a87b-431b-a9f1-20d9f51c66d6-9E2739BA86744796B465F64674B822BA",
              "type" => "Microsoft.Commerce/UsageAggregate",
        "properties" => {
            "subscriptionId" => "4afdbf51-a87b-431b-a9f1-xxxxxxxxxx",
            "usageStartTime" => "2018-01-24T00:00:00+00:00",
              "usageEndTime" => "2018-01-25T00:00:00+00:00",
              "instanceData" => "{\"Microsoft.Resources\":{\"resourceUri\":\"/subscriptions/4afdbf51-a87b-431b-a9f1-xxxxxxxxx/resourceGroups/winvmrg1/providers/Microsoft.Network/publicIPAddresses/winvm1-ip\",\"location\":\"local\",\"tags\":null,\"additionalInfo\":\"InUse\"}}",
                  "quantity" => 7.0,
                   "meterId" => "9E2739BA86744796B465F64674B822BA"
        }
    }


    Friday, January 26, 2018 9:05 AM

Answers

  • Hello,

    Regarding NRP usage

    NRP reports usage at an hourly basis for every IP. However if you are running the usage API with daily granularity you will get IP * hours instead of just the IP address count.

    From the example you posted, it looks like you are using daily granularity and hence get the aggregated value.

     

    Let us know how it goes

         

    We apologize for any inconvenience and appreciate your time and interest in Azure Stack.

    If you experience any issues with Azure Stack or the current ASDK release, please feel free to contact us.

          

     Thanks





    Tuesday, January 30, 2018 7:40 PM

All replies

  • Hello,

    Ideally, there should have been only one record returned with quantity 30 (6+17+7).

    However, certain rules in our aggregation logic may split the usage records for the same day into multiple usage records. We are working on improving this.

     

    For the time being, you’ll need to add the numbers as (6+17+7)=30

     

    Let us know how it goes

          

    We apologize for any inconvenience and appreciate your time and interest in Azure Stack.

    If you experience any issues with Azure Stack or the current ASDK release, please feel free to contact us.

          

     Thanks


    Gary Gallanes

    Saturday, January 27, 2018 2:21 AM
  • Ok, I see. But according to the documentation there should "IP Addresses" as unit for this metric. But getting 30 IP addresses for one created VM seems a bit odd, don't you think?

    Monday, January 29, 2018 7:34 AM
  • Hello,

    Regarding NRP usage

    NRP reports usage at an hourly basis for every IP. However if you are running the usage API with daily granularity you will get IP * hours instead of just the IP address count.

    From the example you posted, it looks like you are using daily granularity and hence get the aggregated value.

     

    Let us know how it goes

         

    We apologize for any inconvenience and appreciate your time and interest in Azure Stack.

    If you experience any issues with Azure Stack or the current ASDK release, please feel free to contact us.

          

     Thanks





    Tuesday, January 30, 2018 7:40 PM
  • Yes, I ask for daily usage. Earlier versions of the stack it was not possible to retrieve for month, is that possible now?

    But retrieving 30 IP address usage hours for one VM still seems odd? Wouldn't it be <= 24 since I have one VM for this one day? (all entries are for the VM "winvm1")



    Wednesday, January 31, 2018 7:35 AM
  • Hello,

    I'm researching this now and will get back to you ASAP. 

     Thanks,


    Gary Gallanes

    Friday, February 2, 2018 2:18 AM