https://github.com/orleanscontrib/orleansmonitor
Use this library to monitor the Silos in your Orleans Deployment
https://github.com/orleanscontrib/orleansmonitor
orleans
Last synced: 6 months ago
JSON representation
Use this library to monitor the Silos in your Orleans Deployment
- Host: GitHub
- URL: https://github.com/orleanscontrib/orleansmonitor
- Owner: OrleansContrib
- Created: 2015-01-15T12:21:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-27T06:27:38.000Z (over 9 years ago)
- Last Synced: 2024-04-29T10:42:58.113Z (over 1 year ago)
- Topics: orleans
- Language: C#
- Size: 12.7 KB
- Stars: 29
- Watchers: 22
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Orleans Monitor
[](https://travis-ci.org/OrleansContrib/OrleansMonitor) [](https://ci.appveyor.com/project/richorama/orleansmonitor)
Use this library to monitor the Silos in your Orleans Deployment.
## Installation
Install using the [nuget package](https://www.nuget.org/packages/Two10.OrleansMonitor).
```
PM> Install-Package Two10.OrleansMonitor
```## Usage
```c#
// start with the Azure storage account you're using to monitor Orleans
var azureStorageAccount = CloudStorageAccount.Parse("UseDevelopmentStorage=true");// create an OrleansMonitorClient
var orleansMonitorClient = azureStorageAccount.CreateOrleansMonitorClient();// query the silo metrics for a given deployment
var siloMetrics = orleansMonitorClient.QuerySiloMetrics("deploymentId")foreach (var silo in siloMetrics)
{
Console.WriteLine("Activations: {0}", silo.Activations);
Console.WriteLine("RequestQueue: {0}", silo.RequestQueue);
Console.WriteLine("CPU: {0}", silo.CPU);
// etc...
}```
## License
MIT