Monitoring system instrumentation in Prometheus for Akka.NET actor systems.
dotnet add package Akka.Monitoring.Prometheus
- Register the Prometheus monitor. From Program:
var system = ActorSystem.Create("akka-performance-demo");
var didMonitorRegister = ActorMonitoringExtension.RegisterMonitor(system, new ActorPrometheusMonitor());
- Instrument your actor system as normal. From PlutoActor:
Receive<string>(_ =>
{
Context.IncrementCounter("revolutions");
Context.GetLogger().Debug("Whee!");
Context.Gauge("revolutions.enjoyment", random.Next(1, 11));
});
For more information on instrumenting Akka.NET actor systems, please see Akka.Monitoring.
The package targets .NET Standard 2.0 and can be built via .NET Core:
dotnet build
We are committed to fostering an open and welcoming environment. Please read our code of conduct before participating in or contributing to this project.
We welcome contributions and collaboration on this project. Please read our contributor's guide to understand how best to work with us.
This software is made available by Syncromatics Engineering under the MIT license.