Skip to content

Commit 72cb13c

Browse files
committed
fix dashboard urls
1 parent 78c765a commit 72cb13c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

lib/single-new-eks-opensource-observability-construct/graviton-index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ export default class SingleNewEksOpenSourceGravitonObservabilityConstruct {
2727
const amgEndpointUrl = process.env.COA_AMG_ENDPOINT_URL;
2828

2929
// All Grafana Dashboard URLs from `cdk.json` if present
30-
const clusterDashUrl: string = utils.valueFromContext(scope, "cluster.dashboard.url", clusterDefaultDashUrl);
31-
const kubeletDashUrl: string = utils.valueFromContext(scope, "kubelet.dashboard.url", kubeletDefaultDashUrl);
32-
const namespaceWorkloadsDashUrl: string = utils.valueFromContext(scope, "cluster.dashboard.url", namespaceWorkloadsDefaultDashUrl);
33-
const nodeExporterDashUrl: string = utils.valueFromContext(scope, "kubelet.dashboard.url", nodeExporterDefaultDashUrl);
34-
const nodesDashUrl: string = utils.valueFromContext(scope, "cluster.dashboard.url", nodesDefaultDashUrl);
35-
const workloadsDashUrl: string = utils.valueFromContext(scope, "kubelet.dashboard.url", workloadsDefaultDashUrl);
30+
const clusterDashUrl: string = utils.valueFromContext(scope, "cluster.dashboard.url", undefined);
31+
const kubeletDashUrl: string = utils.valueFromContext(scope, "kubelet.dashboard.url", undefined);
32+
const namespaceWorkloadsDashUrl: string = utils.valueFromContext(scope, "namespaceworkloads.dashboard.url", undefined);
33+
const nodeExporterDashUrl: string = utils.valueFromContext(scope, "nodexporter.dashboard.url", undefined);
34+
const nodesDashUrl: string = utils.valueFromContext(scope, "nodes.dashboard.url", undefined);
35+
const workloadsDashUrl: string = utils.valueFromContext(scope, "workloads.dashboard.url", undefined);
3636

3737
Reflect.defineMetadata("ordered", true, blueprints.addons.GrafanaOperatorAddon);
3838
const addOns: Array<blueprints.ClusterAddOn> = [

lib/single-new-eks-opensource-observability-construct/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ export default class SingleNewEksOpenSourceobservabilityConstruct {
2424
// All Grafana Dashboard URLs from `cdk.json` if presentgi
2525
const clusterDashUrl: string = utils.valueFromContext(scope, "cluster.dashboard.url", undefined);
2626
const kubeletDashUrl: string = utils.valueFromContext(scope, "kubelet.dashboard.url", undefined);
27-
const namespaceWorkloadsDashUrl: string = utils.valueFromContext(scope, "cluster.dashboard.url", undefined);
28-
const nodeExporterDashUrl: string = utils.valueFromContext(scope, "kubelet.dashboard.url", undefined);
29-
const nodesDashUrl: string = utils.valueFromContext(scope, "cluster.dashboard.url", undefined);
30-
const workloadsDashUrl: string = utils.valueFromContext(scope, "kubelet.dashboard.url", undefined);
27+
const namespaceWorkloadsDashUrl: string = utils.valueFromContext(scope, "namespaceworkloads.dashboard.url", undefined);
28+
const nodeExporterDashUrl: string = utils.valueFromContext(scope, "nodexporter.dashboard.url", undefined);
29+
const nodesDashUrl: string = utils.valueFromContext(scope, "nodes.dashboard.url", undefined);
30+
const workloadsDashUrl: string = utils.valueFromContext(scope, "workloads.dashboard.url", undefined);
3131

3232

3333
Reflect.defineMetadata("ordered", true, blueprints.addons.GrafanaOperatorAddon);

0 commit comments

Comments
 (0)