Skip to content

syncromatics/Akka.Monitoring.Prometheus

Repository files navigation

Akka.Monitoring.Prometheus

Monitoring system instrumentation in Prometheus for Akka.NET actor systems.

Quickstart

Add the Akka.Monitoring.Prometheus package to your project:

dotnet add package Akka.Monitoring.Prometheus

Write code

  1. Register the Prometheus monitor. From Program:
var system = ActorSystem.Create("akka-performance-demo");

var didMonitorRegister = ActorMonitoringExtension.RegisterMonitor(system, new ActorPrometheusMonitor());
  1. 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.

Building

Travis NuGet NuGet Pre Release

The package targets .NET Standard 2.0 and can be built via .NET Core:

dotnet build

Code of Conduct

We are committed to fostering an open and welcoming environment. Please read our code of conduct before participating in or contributing to this project.

Contributing

We welcome contributions and collaboration on this project. Please read our contributor's guide to understand how best to work with us.

License and Authors

Syncromatics Engineering logo Syncromatics Engineering

license GitHub contributors

This software is made available by Syncromatics Engineering under the MIT license.