Bravellian.InfraMonitor.Metrics.Ui 2026.1.25.1377

dotnet add package Bravellian.InfraMonitor.Metrics.Ui --version 2026.1.25.1377
                    
NuGet\Install-Package Bravellian.InfraMonitor.Metrics.Ui -Version 2026.1.25.1377
                    
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="Bravellian.InfraMonitor.Metrics.Ui" Version="2026.1.25.1377" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bravellian.InfraMonitor.Metrics.Ui" Version="2026.1.25.1377" />
                    
Directory.Packages.props
<PackageReference Include="Bravellian.InfraMonitor.Metrics.Ui" />
                    
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 Bravellian.InfraMonitor.Metrics.Ui --version 2026.1.25.1377
                    
#r "nuget: Bravellian.InfraMonitor.Metrics.Ui, 2026.1.25.1377"
                    
#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 Bravellian.InfraMonitor.Metrics.Ui@2026.1.25.1377
                    
#: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=Bravellian.InfraMonitor.Metrics.Ui&version=2026.1.25.1377
                    
Install as a Cake Addin
#tool nuget:?package=Bravellian.InfraMonitor.Metrics.Ui&version=2026.1.25.1377
                    
Install as a Cake Tool

Bravellian.InfraMonitor.Metrics.Ui

Razor Pages UI for Bravellian Infra Monitor metrics. Provides a simple dashboard that scrapes Prometheus endpoints and renders common charts.

Usage

  • Register the UI services via AddBravellianMetricsUi(...).
  • Configure endpoints to scrape in your setup store.
builder.Services.AddBravellianMetricsUi();

The UI is exposed under the /metrics-report Razor Pages route.

Configuration example

{
  "MetricsUi": {
    "RefreshSeconds": 15,
    "Endpoints": [
      {
        "ServiceName": "SampleApp",
        "InstanceName": "Local",
        "EndpointUrl": "http://localhost:5000/metrics"
      }
    ],
    "PinnedMetrics": [
      "process.cpu.time",
      "http.server.request.duration_count"
    ]
  }
}

Wire a setup store (see the sample host for a complete runnable setup):

builder.Services.Configure<MetricsUiOptions>(builder.Configuration.GetSection("MetricsUi"));
builder.Services.AddSingleton<IMetricsSetupStore, OptionsMetricsSetupStore>();
public sealed class MetricsUiOptions
{
    public IList<MetricsEndpointRegistration> Endpoints { get; init; } = new List<MetricsEndpointRegistration>();
    public IList<string> PinnedMetrics { get; init; } = new List<string>();
    public int RefreshSeconds { get; init; } = 20;
}

public sealed class OptionsMetricsSetupStore : IMetricsSetupStore
{
    private readonly MetricsUiOptions options;

    public OptionsMetricsSetupStore(IOptions<MetricsUiOptions> options)
    {
        this.options = options.Value;
    }

    public bool TryGetMetricsEndpoints(HttpContext context, out IReadOnlyList<MetricsEndpointRegistration> endpoints)
    {
        endpoints = (IReadOnlyList<MetricsEndpointRegistration>)options.Endpoints;
        return endpoints.Count > 0;
    }

    public bool TryGetMetricsRefreshSeconds(HttpContext context, out int refreshSeconds)
    {
        refreshSeconds = options.RefreshSeconds;
        return true;
    }

    public bool TryGetPinnedMetrics(HttpContext context, out IReadOnlyList<string> metricNames)
    {
        metricNames = (IReadOnlyList<string>)options.PinnedMetrics;
        return metricNames.Count > 0;
    }

    public void SetPinnedMetrics(HttpContext context, IReadOnlyList<string> metricNames)
    {
    }
}
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
2026.1.25.1377 545 1/25/2026
2026.1.25.206 145 1/25/2026
2026.1.22.310 138 1/22/2026
2026.1.21.1126 144 1/21/2026