Giter Site home page Giter Site logo

orleans.telemetryconsumers.prometheus's Introduction

Orleans.TelemetryConsumers.Prometheus

Prometheus implementation of Orleans Telemetry API.

Installation

dotnet add package Orleans.TelemetryConsumers.Prometheus

Usage

Register in code before initializing the Orleans Silo:

var builder = new SiloHostBuilder()
    .AddPrometheusTelemetryConsumer()

// Or
// Use self prometheus metrics server
var builder = new SiloHostBuilder()
    // publishing the metrics on http://*:1234/metrics
    .AddPrometheusTelemetryConsumerWithSelfServer(port: 1234)

Then access http://host:port/metrics, You can see the content like below:

...
orleans_metrics{category="Storage",name="Storage.Read.Total.Current"} 1
orleans_metrics{category="Catalog",name="Catalog.Activation.Destroyed.Current"} 0
orleans_metrics{category="Networking",name="Networking.Sockets.Silo.Closed.Current"} 0
orleans_metrics{category="Messaging",name="Messaging.Processing.Dispatcher.Processed.Ok.Direction.Response.Current"} 1
orleans_metrics{category="App",name="App.Requests.Total.Requests.Current"} 222
orleans_metrics{category="Messaging",name="Messaging.Sent.LocalMessages.Current"} 434
...

Grafana dashboard

grafana-dashboard.json

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.