As part of the PASS Summit conference session that Bob Pusateri and I are presenting right now called “Cosmos DB for SQL Server Pros“, we are demonstrating a number of Azure Cosmos DB features that we feel strongly about helping you leverage through code. As a result, all of the code that we’re demonstrating today is now available for you to download and explore.
This code demonstrates how to collect Windows Perfmon metrics with C#, package them up into a Cosmos DB document, insert the document into Cosmos DB, and then fetch and query individual and multiple documents based on a SQL-like interface demonstration.
As always, there’s no warranty with this code, please don’t distribute as your own, yada yada yada. I’m not the best programmer, so if anyone has improvements, I’d love to have you send me your updates to check out!