Org.Cdk8s.Grafana
0.1.822
dotnet add package Org.Cdk8s.Grafana --version 0.1.822
NuGet\Install-Package Org.Cdk8s.Grafana -Version 0.1.822
<PackageReference Include="Org.Cdk8s.Grafana" Version="0.1.822" />
<PackageVersion Include="Org.Cdk8s.Grafana" Version="0.1.822" />
<PackageReference Include="Org.Cdk8s.Grafana" />
paket add Org.Cdk8s.Grafana --version 0.1.822
#r "nuget: Org.Cdk8s.Grafana, 0.1.822"
#:package Org.Cdk8s.Grafana@0.1.822
#addin nuget:?package=Org.Cdk8s.Grafana&version=0.1.822
#tool nuget:?package=Org.Cdk8s.Grafana&version=0.1.822
cdk8s-grafana
cdk8s-grafana is a library that lets you easily define a Grafana service for your kubernetes cluster along with associated dashboards and datasources, using a high level API.
Usage
To apply the resources generated by this construct, the Grafana operator must be installed on your cluster. See https://operatorhub.io/operator/grafana-operator for full installation instructions.
The following will define a Grafana cluster connected to a Prometheus datasource:
import { Grafana } from 'cdk8s-grafana';
// inside your chart:
const grafana = new Grafana(this, 'my-grafana', {
defaultDataSource: {
name: 'Prometheus',
type: 'prometheus',
access: 'proxy',
url: 'http://prometheus-service:9090',
}
});
Basic aspects of a dashboard can be customized:
const github = grafana.addDatasource('github', ...);
const dashboard = grafana.addDashboard('my-dashboard', {
title: 'My Dashboard',
refreshRate: Duration.seconds(10),
timeRange: Duration.hours(6), // show metrics from now-6h to now
plugins: [
{
name: 'grafana-piechart-panel',
version: '1.3.6',
}
],
});
Note: the kubernetes grafana operator only supports one Grafana instance per namespace (see https://github.com/grafana-operator/grafana-operator/issues/174). This may require specifying namespaces explicitly, e.g.:
const devGrafana = new Grafana(this, 'my-grafana', {
namespace: 'dev',
});
const prodGrafana = new Grafana(this, 'my-grafana', {
namespace: 'prod',
});
The grafana operator must be installed in each namespace for the resources in that namespace to be recognized.
Security
See CONTRIBUTING for more information.
License
This project is licensed under the Apache-2.0 License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net6.0
- Amazon.JSII.Runtime (>= 1.141.0 && < 2.0.0)
- Constructs (>= 10.3.0 && < 11.0.0)
- Org.Cdk8s (>= 2.68.91 && < 3.0.0)
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 |
|---|---|---|
| 0.1.822 | 99 | 10/5/2026 |
| 0.1.821 | 103 | 10/2/2026 |
| 0.1.820 | 106 | 9/28/2026 |
| 0.1.819 | 90 | 9/27/2026 |
| 0.1.818 | 100 | 9/21/2026 |
| 0.1.817 | 110 | 9/14/2026 |
| 0.1.816 | 112 | 9/7/2026 |
| 0.1.815 | 110 | 9/1/2026 |
| 0.1.814 | 105 | 8/31/2026 |
| 0.1.813 | 104 | 8/29/2026 |
| 0.1.812 | 118 | 8/28/2026 |
| 0.1.811 | 107 | 8/25/2026 |
| 0.1.810 | 108 | 8/24/2026 |
| 0.1.809 | 114 | 8/22/2026 |
| 0.1.808 | 129 | 8/17/2026 |
| 0.1.807 | 122 | 8/13/2026 |
| 0.1.806 | 114 | 8/10/2026 |
| 0.1.805 | 141 | 8/4/2026 |
| 0.1.804 | 136 | 8/3/2026 |
| 0.1.803 | 128 | 7/30/2026 |