CK.AppIdentity.Monitoring.Metrics.InfluxDb
0.3.1
See the version list below for details.
dotnet add package CK.AppIdentity.Monitoring.Metrics.InfluxDb --version 0.3.1
NuGet\Install-Package CK.AppIdentity.Monitoring.Metrics.InfluxDb -Version 0.3.1
<PackageReference Include="CK.AppIdentity.Monitoring.Metrics.InfluxDb" Version="0.3.1" />
<PackageVersion Include="CK.AppIdentity.Monitoring.Metrics.InfluxDb" Version="0.3.1" />
<PackageReference Include="CK.AppIdentity.Monitoring.Metrics.InfluxDb" />
paket add CK.AppIdentity.Monitoring.Metrics.InfluxDb --version 0.3.1
#r "nuget: CK.AppIdentity.Monitoring.Metrics.InfluxDb, 0.3.1"
#:package CK.AppIdentity.Monitoring.Metrics.InfluxDb@0.3.1
#addin nuget:?package=CK.AppIdentity.Monitoring.Metrics.InfluxDb&version=0.3.1
#tool nuget:?package=CK.AppIdentity.Monitoring.Metrics.InfluxDb&version=0.3.1
CK.AppIdentity.Monitoring.Metrics.InfluxDb
Metrics consumer that posts measurements to InfluxDB v2.x using the line protocol format over HTTP(S).
Configuration
Add the InfluxDB consumer configuration to your AppIdentity local configuration:
{
"CK-AppIdentity": {
"FullName": "MyDomain/$MyApp/#Dev",
"Local": {
"Metrics": {
"Path": "FasterLog/Metrics"
},
"MetricsInfluxDb": {
"Name": "influxdb",
"ServerUrl": "https://influxdb.example.com:8086",
"Org": "my-org",
"Bucket": "metrics",
"Token": "my-api-token",
"UseGzip": true,
"FlushIntervalMs": 1000,
"RetryDelayMs": 2000,
"BatchThresholdBytes": 4194304
}
}
}
}
Configuration Options
| Option | Default | Description |
|---|---|---|
Name |
influxdb-export |
Consumer name (max 20 chars, must be unique) |
ServerUrl |
required | InfluxDB server URL (e.g., https://localhost:8086) |
Org |
required | InfluxDB organization name |
Bucket |
required | InfluxDB bucket name |
Token |
- | API token for authentication |
Username |
- | Username for basic auth (alternative to Token) |
Password |
- | Password for basic auth |
UseGzip |
true |
Compress HTTP requests with gzip |
FlushIntervalMs |
1000 |
Maximum delay between flushes |
RetryDelayMs |
2000 |
Delay before retrying after failure |
BatchThresholdBytes |
4194304 |
Size threshold for batching (4 MiB) |
Tags |
- | Optional static tags added to every measurement. Values support environment variables (e.g., %COMPUTERNAME%). |
Line Protocol Format
Metrics are written using the InfluxDB line protocol:
<instrument_name>,ck_domain=<domain>,ck_environment=<env>,ck_party=<party>,meter=<meter_name>,<tags> value=<value> <timestamp_ns>
Example:
http.requests,ck_domain=MyCompany,ck_environment=Production,ck_party=MyApp,meter=System.Net.Http,method=GET value=42 1705329000000000000
Tags
The consumer automatically includes these tags:
ck_domain: AppIdentity domain nameck_environment: AppIdentity environment nameck_party: AppIdentity party namemeter: The meter name that owns the instrument
Plus all measurement-specific tags from the metrics entry.
Static Tags
You can configure static tags that are included in every measurement. This is useful when multiple machines share the same domain/party/environment and you need additional discriminators for querying.
Tag values support environment variable expansion using the %VARIABLE% syntax:
"MetricsInfluxDb": {
"ServerUrl": "https://influxdb.example.com:8086",
"Org": "my-org",
"Bucket": "metrics",
"Token": "my-api-token",
"Tags": {
"host": "%COMPUTERNAME%",
"user": "%USERNAME%",
"region": "eu-west-1"
}
}
These tags appear after the automatic ck_* tags in the line protocol:
http.requests,ck_domain=MyCompany,ck_environment=Production,ck_party=MyApp,meter=System.Net.Http,host=SERVER01,user=john,region=eu-west-1,method=GET value=42 1705329000000000000
GrandOutput Handler
Remember to configure the metrics handler in your GrandOutput configuration:
{
"CK-Monitoring": {
"GrandOutput": {
"Handlers": {
"MetricsLogHandler, CK.Monitoring.Metrics": {
"CommitRate": 1
}
}
}
}
}
| Product | Versions 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. |
-
net8.0
- CK.AppIdentity.Monitoring.Metrics (>= 0.3.1)
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 | 91 | 10/7/2026 |
| 1.0.0 | 100 | 9/25/2026 |
| 0.4.6 | 102 | 9/23/2026 |
| 0.4.5 | 97 | 9/20/2026 |
| 0.4.4 | 97 | 9/11/2026 |
| 0.4.3 | 104 | 9/4/2026 |
| 0.4.2 | 93 | 9/1/2026 |
| 0.4.1 | 122 | 5/28/2026 |
| 0.4.0 | 131 | 4/21/2026 |
| 0.3.3 | 154 | 1/26/2026 |
| 0.3.2 | 133 | 1/26/2026 |
| 0.3.1 | 134 | 1/25/2026 |
| 0.3.0 | 136 | 1/24/2026 |