Azure Storage Account Metrics only visible for Classic Storage Account -


i've tested creating both classic storage account (manage.windowsazure.com) , "new" storage account in new azure portal. set them similar , run same code create , configure queue. metrics showing classic storage account in portal (able see both accounts in new portal)

i have set serviceproperties this, , can see these changes saved when fetching service properties or looking in azure portal.

        cloudstorageaccount storageaccount =                 cloudstorageaccount.parse(storageconnectionstring);          cloudqueueclient queueclient = storageaccount.createcloudqueueclient();          metricsproperties metricsproperties = new metricsproperties();         metricsproperties.setmetricslevel(metricslevel.service_and_api);         metricsproperties.setretentionintervalindays(2);          loggingproperties loggingproperties = new loggingproperties();         loggingproperties.setretentionintervalindays(10);         loggingproperties.setlogoperationtypes(enumset.of(loggingoperations.read, loggingoperations.write, loggingoperations.delete));           serviceproperties serviceproperties = new serviceproperties();         serviceproperties.sethourmetrics(metricsproperties);         serviceproperties.setminutemetrics(metricsproperties);         serviceproperties.setlogging(loggingproperties);          queueclient.uploadserviceproperties(serviceproperties); 

when use microsoft azure storage explorer both accounts has tables metrics , logging set up, both , tables contains data. here looks similar. metrics graphs , options available classic storage account in azure portal. "new" storage account says "no available data".

is bug? or classic storage account default configured properties manually need apply new storage account make behave similar?

screenshot microsoft azure storage explorer

according code setting, leverage windowsazure.storage (version 7.2.1) configure storage account metrics both on classic storage account , new storage account follows:

    var blobclient = storageaccount.createcloudblobclient();      metricsproperties metricsproperties = new metricsproperties();     metricsproperties.metricslevel = metricslevel.serviceandapi;     metricsproperties.retentiondays = 2;      loggingproperties loggingproperties = new loggingproperties();     loggingproperties.retentiondays = 10;     loggingproperties.loggingoperations = loggingoperations.read | loggingoperations.write | loggingoperations.delete;       serviceproperties serviceproperties = new serviceproperties();     serviceproperties.hourmetrics=metricsproperties;     serviceproperties.minutemetrics=metricsproperties;     serviceproperties.logging=loggingproperties;      blobclient.setserviceproperties(serviceproperties); 

upon code snippet, configure minute/hour metrics blob storage.

since have confirmed related tables contain metric records, try log azure portal, choose storage account, click queue service > metrics, click edit chart , change time range follows:

note: time range set today default if there has metric records. there data latency, try specify time range , find out whether retrieve metrics data expected.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -