Mostlylucid.BotDetection.PrometheusPack 8.12.1

dotnet add package Mostlylucid.BotDetection.PrometheusPack --version 8.12.1
                    
NuGet\Install-Package Mostlylucid.BotDetection.PrometheusPack -Version 8.12.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Mostlylucid.BotDetection.PrometheusPack" Version="8.12.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mostlylucid.BotDetection.PrometheusPack" Version="8.12.1" />
                    
Directory.Packages.props
<PackageReference Include="Mostlylucid.BotDetection.PrometheusPack" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Mostlylucid.BotDetection.PrometheusPack --version 8.12.1
                    
#r "nuget: Mostlylucid.BotDetection.PrometheusPack, 8.12.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Mostlylucid.BotDetection.PrometheusPack@8.12.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Mostlylucid.BotDetection.PrometheusPack&version=8.12.1
                    
Install as a Cake Addin
#tool nuget:?package=Mostlylucid.BotDetection.PrometheusPack&version=8.12.1
                    
Install as a Cake Tool

Mostlylucid.BotDetection.PrometheusPack

Optional meter-ingest + metrics surface for the StyloBot dashboard. An optional add-on to Mostlylucid.BotDetection.UI: it ships the meter streams (IMeterStreamLocalMeterStream via a MeterListener, RemoteMeterStream via Prometheus text scrape) plus the dashboard's meter-health tile, contributed through the UI's IPackHealthSummaryProvider seam. The dashboard works without it — installing this pack just adds the metrics surface.

NuGet GitHub


Install

dotnet add package Mostlylucid.BotDetection.PrometheusPack

Quick start

builder.Services.AddPrometheusPack(opt => opt.Mode = PrometheusPackMode.Local);

Two ingest modes (pick ONE — they must not be combined):

  • Local — a MeterListener subscribes to process-local System.Diagnostics.Metrics meters. The in-gateway mode.
  • Remote — the stream scrapes a gateway's Prometheus /metrics endpoint over HTTP. The viewer-host mode; requires RemoteMeterStreamOptions.BaseUrl:
builder.Services.AddPrometheusPack(opt =>
{
    opt.Mode = PrometheusPackMode.Remote;
    opt.Remote = r => r.BaseUrl = "http://gateway:8080";
});

What it provides

  • IMeterStream — the read surface (ListAsync / GetAsync) implemented by LocalMeterStream (MeterListener) and RemoteMeterStream (text scrape)
  • The shared LFU MeterSummaryAtom storage and the meter-signals blackboard bridge (MeterSnapshotSignalContributor, MeterSignalCatalogSource)
  • The dashboard meter-health tile (via AddPrometheusPack, which registers MeterStreamHealthSummaryProvider through the UI's IPackHealthSummaryProvider seam) and its tick-driven freshness contributor

The pack is a read-only data plane — no write surfaces.

Full documentation

License

AGPL-3.0-only. See LICENSE.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
8.12.1 45 8/26/2026
8.12.0 45 8/26/2026
8.11.3 45 8/26/2026
8.11.2 43 8/26/2026
8.11.1 42 8/26/2026