CK.AppIdentity.Monitoring.Metrics.Csv 0.4.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package CK.AppIdentity.Monitoring.Metrics.Csv --version 0.4.0
                    
NuGet\Install-Package CK.AppIdentity.Monitoring.Metrics.Csv -Version 0.4.0
                    
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="CK.AppIdentity.Monitoring.Metrics.Csv" Version="0.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CK.AppIdentity.Monitoring.Metrics.Csv" Version="0.4.0" />
                    
Directory.Packages.props
<PackageReference Include="CK.AppIdentity.Monitoring.Metrics.Csv" />
                    
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 CK.AppIdentity.Monitoring.Metrics.Csv --version 0.4.0
                    
#r "nuget: CK.AppIdentity.Monitoring.Metrics.Csv, 0.4.0"
                    
#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 CK.AppIdentity.Monitoring.Metrics.Csv@0.4.0
                    
#: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=CK.AppIdentity.Monitoring.Metrics.Csv&version=0.4.0
                    
Install as a Cake Addin
#tool nuget:?package=CK.AppIdentity.Monitoring.Metrics.Csv&version=0.4.0
                    
Install as a Cake Tool

CK.AppIdentity.Monitoring.Metrics.Csv

A CSV export consumer for CK.AppIdentity.Monitoring.Metrics. Writes metrics measurements to a CSV file for analysis or integration with other tools.

Overview

This package provides:

  • CsvMetricsConsumer: A metrics consumer that writes measurements to CSV format
  • CsvMetricsConsumerFeatureDriver: An ApplicationIdentityFeatureDriver that manages the consumer lifecycle

Configuration

{
  "CK-AppIdentity": {
    "FullName": "MyDomain/$MyApp/#Dev",
    "Local": {
      "Metrics": {
        "Path": "FasterLog/Metrics"
      },
      "MetricsCsv": {
        "Name": "csv-export",
        "Path": "Exports/metrics.csv",
        "RetryDelayMs": 2000,
        "BatchThresholdBytes": 4194304
      }
    }
  }
}

Configuration Options

Property Type Default Description
Name string csv-export Consumer name (max 20 chars, used for FasterLog iterator)
Path string Exports/metrics.csv Relative path within LocalFileStore for CSV output
RetryDelayMs int 2000 Delay before retrying on write failure
BatchThresholdBytes int 4194304 Size threshold for batching entries

CSV Format

The output CSV has the following columns:

Column Description
Timestamp ISO 8601 formatted timestamp
MeterName Name of the meter (e.g., System.Net.Http)
InstrumentName Name of the instrument (e.g., http.client.request.duration)
InstrumentType Type of instrument (Counter, Histogram, etc.)
Value The measurement value
Tags Comma-separated key=value pairs

Example output:

Timestamp,MeterName,InstrumentName,InstrumentType,Value,Tags
2024-01-15T10:30:00.0000000Z,myapp.metrics,http.requests,Counter,42,"method=GET,status=200"
2024-01-15T10:30:00.0000000Z,myapp.metrics,http.duration,Histogram,0.125,"method=GET"

Usage

  1. Add the package reference
  2. Configure both Metrics and MetricsCsv sections in your AppIdentity configuration
  3. The consumer starts automatically when the application starts

The CSV file is created in append mode, so data persists across restarts. A header row is written only when creating a new file or when the file is empty.

Recovery

Like all metrics consumers, the CSV consumer:

  • Resumes from its last position on restart (no duplicate entries)
  • Retries on write failures without losing data
  • Is automatically cleaned up if removed from configuration
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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
2.0.1 101 10/8/2026
2.0.0 93 10/7/2026
1.0.0 102 9/25/2026
0.4.6 102 9/23/2026
0.4.5 101 9/20/2026
0.4.4 111 9/11/2026
0.4.3 112 9/4/2026
0.4.2 104 9/1/2026
0.4.1 125 5/28/2026
0.4.0 132 4/21/2026
0.3.3 147 1/26/2026
0.3.2 148 1/26/2026
0.3.1 145 1/25/2026
0.3.0 151 1/24/2026