PostgresStudio.Diagnostics 1.0.1

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

PostgresStudio.Diagnostics

The diagnostics engine of Postgres Studio and Marten Studio, as a package of its own with no ASP.NET Core in it: the health sweep and its checks, the facts they read, IPostgresDiagnostics and its typed, stable-coded read model, and an opt-in health check built on Microsoft.Extensions.Diagnostics.HealthChecks. It answers "is this database healthy, and what should I look at?" for any host that registers an NpgsqlDataSource - a worker, a job host, a shared library - without a UI to mount.

Take PostgresStudio.Diagnostics when you want the findings in your own code. Take PostgresStudio when you want the Blazor UI over the same databases, or MartenStudio when the application uses Marten; both bring this package with them, at exactly their own version, and you need not reference it.

dotnet add package PostgresStudio.Diagnostics

It brings Npgsql (floor 8.0.3) and the Microsoft.Extensions.* abstractions it registers into (DependencyInjection.Abstractions, Logging.Abstractions, Options, Diagnostics.HealthChecks, floor 10.0.0), and references no ASP.NET Core, Marten, JasperFx or Weasel package. Target framework: net10.0.

var builder = Host.CreateApplicationBuilder(args);

builder.Services.AddNpgsqlDataSource(connectionString);      // found by itself, as the source "default"
builder.Services.AddPostgresDiagnostics();                   // options are validated on start

// ... in a hosted service:
await foreach (PostgresDatabaseRef db in diagnostics.ListDatabasesAsync(ct))
{
    PostgresDiagnosticsSnapshot snapshot = await diagnostics.GetSnapshotAsync(db, PostgresDiagnosticsRequest.FindingsOnly, ct);

    foreach (PostgresFinding finding in snapshot.Findings.Where(f => f.Severity <= PostgresSeverity.Warning))
    {
        Console.WriteLine($"{finding.Code} {finding.Severity}: {finding.Title}");
    }
}

AddPostgresDiagnostics() is refused in an application that also calls AddPostgresStudio() or AddMartenStudio(): they register the engine themselves. There are no mutes without a UI, and a finding's studio path is a string relative to a mount that does not exist here.

The long form - the request and the snapshot, findings and their codes, IncludeActivity, cost, the JSON shape and what it guarantees - is docs/diagnostics.md, and a complete worker is samples/PostgresStudio.Worker. From 1.0 the package follows Semantic Versioning over the contract in docs/stability.md: the read model is extend-only, and a finding's code never changes meaning.

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 (1)

Showing the top 1 NuGet packages that depend on PostgresStudio.Diagnostics:

Package Downloads
PostgresStudio

An embeddable Blazor Server admin UI for the PostgreSQL databases an ASP.NET Core application already registers as NpgsqlDataSource.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 0 11/2/2026
1.0.0 0 11/2/2026
0.11.0 38 11/1/2026