Mostlylucid.BotDetection.PrometheusPack
8.12.0
See the version list below for details.
dotnet add package Mostlylucid.BotDetection.PrometheusPack --version 8.12.0
NuGet\Install-Package Mostlylucid.BotDetection.PrometheusPack -Version 8.12.0
<PackageReference Include="Mostlylucid.BotDetection.PrometheusPack" Version="8.12.0" />
<PackageVersion Include="Mostlylucid.BotDetection.PrometheusPack" Version="8.12.0" />
<PackageReference Include="Mostlylucid.BotDetection.PrometheusPack" />
paket add Mostlylucid.BotDetection.PrometheusPack --version 8.12.0
#r "nuget: Mostlylucid.BotDetection.PrometheusPack, 8.12.0"
#:package Mostlylucid.BotDetection.PrometheusPack@8.12.0
#addin nuget:?package=Mostlylucid.BotDetection.PrometheusPack&version=8.12.0
#tool nuget:?package=Mostlylucid.BotDetection.PrometheusPack&version=8.12.0
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 (IMeterStream — LocalMeterStream 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.
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— aMeterListenersubscribes to process-localSystem.Diagnostics.Metricsmeters. The in-gateway mode.Remote— the stream scrapes a gateway's Prometheus/metricsendpoint over HTTP. The viewer-host mode; requiresRemoteMeterStreamOptions.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 byLocalMeterStream(MeterListener) andRemoteMeterStream(text scrape)- The shared LFU
MeterSummaryAtomstorage and the meter-signals blackboard bridge (MeterSnapshotSignalContributor,MeterSignalCatalogSource) - The dashboard meter-health tile (via
AddPrometheusPack, which registersMeterStreamHealthSummaryProviderthrough the UI'sIPackHealthSummaryProviderseam) 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 | Versions 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. |
-
net10.0
- Microsoft.Extensions.Http (>= 10.0.10)
- mostlylucid.botdetection (>= 8.12.0)
- Mostlylucid.BotDetection.UI (>= 8.12.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.