Soenneker.Grafana.HttpClients
11.0.194
Prefix Reserved
dotnet add package Soenneker.Grafana.HttpClients --version 11.0.194
NuGet\Install-Package Soenneker.Grafana.HttpClients -Version 11.0.194
<PackageReference Include="Soenneker.Grafana.HttpClients" Version="11.0.194" />
<PackageVersion Include="Soenneker.Grafana.HttpClients" Version="11.0.194" />
<PackageReference Include="Soenneker.Grafana.HttpClients" />
paket add Soenneker.Grafana.HttpClients --version 11.0.194
#r "nuget: Soenneker.Grafana.HttpClients, 11.0.194"
#:package Soenneker.Grafana.HttpClients@11.0.194
#addin nuget:?package=Soenneker.Grafana.HttpClients&version=11.0.194
#tool nuget:?package=Soenneker.Grafana.HttpClients&version=11.0.194
Soenneker.Grafana.HttpClients
Provide a cached, authenticated HttpClient for the generated Grafana OpenAPI client.
Installation
dotnet add package Soenneker.Grafana.HttpClients
Configuration
{
"Grafana": {
"ApiKey": "grafana-service-account-token",
"ClientBaseUrl": "https://grafana.example.com/api"
}
}
ClientBaseUrl is required and must be the absolute URL of the Grafana HTTP API, including /api. Requests use Authorization: Bearer <token> by default.
To use another header format, set AuthHeaderName and AuthHeaderValueTemplate; {token} is replaced with ApiKey.
Registration and usage
services.AddGrafanaOpenApiHttpClientAsSingleton();
HttpClient client = await grafanaHttpClient.Get(cancellationToken);
Get returns the same client for the lifetime of that provider instance. AddGrafanaOpenApiHttpClientAsScoped() creates one provider-owned client per scope. Disposing the provider removes and disposes only the client it owns.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Extensions.Configuration (>= 11.0.921)
- Soenneker.Utils.HttpClientCache (>= 11.0.2188)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Grafana.HttpClients:
| Package | Downloads |
|---|---|
|
Soenneker.Grafana.OpenApiClientUtil
Provides a cached Grafana OpenAPI client backed by an authenticated HTTP provider |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.194 | 62 | 12/3/2026 |
| 11.0.193 | 60 | 12/3/2026 |
| 11.0.192 | 66 | 12/3/2026 |
| 11.0.191 | 61 | 12/3/2026 |
| 11.0.190 | 61 | 12/3/2026 |
| 11.0.189 | 63 | 12/2/2026 |
| 11.0.188 | 74 | 12/2/2026 |
| 11.0.187 | 69 | 12/2/2026 |
| 11.0.186 | 67 | 12/2/2026 |
| 11.0.185 | 56 | 12/2/2026 |
| 11.0.184 | 83 | 12/2/2026 |
| 11.0.183 | 101 | 12/2/2026 |
| 11.0.182 | 90 | 12/2/2026 |
| 11.0.181 | 92 | 12/1/2026 |
| 11.0.180 | 98 | 12/1/2026 |
| 11.0.179 | 99 | 12/1/2026 |
| 11.0.178 | 95 | 12/1/2026 |
| 11.0.177 | 99 | 12/1/2026 |
| 11.0.176 | 121 | 11/30/2026 |
| 11.0.175 | 122 | 11/30/2026 |
Updated Multiple NuGet packages