-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
types.ts
55 lines (51 loc) · 1.44 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
export type Cluster = {
// id of user
userId: string,
// name of cluster
clusterName: string,
// grafana host url
// ex output: "http://localhost:3000/"
url: string,
//
dashboards: DashboardUIds
}
export type DashboardUIds = {
// these are the dashboards on our grafana local host that have been imported from grafana
apiServer: {
dashboardUIDKey: string,
grafanaLinkDText: string
},
kubeStateMetrics: {
dashboardUIDKey: string,
grafanaLinkDText: string
},
kubePrometheus: {
dashboardUIDKey: string,
grafanaLinkDText: string
},
nodeExporter: {
dashboardUIDKey: string,
grafanaLinkDText: string
},
keda: {
dashboardUIDKey: string,
grafanaLinkDText: string
}
}
export type DBUIds = {
// here is where we will save each dashboard UID ex: wAfgtlsOl
apiServerUId?: string,
kubeStateMetricUId?: string,
kubePrometheusUId?: string,
nodeExporterUId?: string,
kedaUId?: string
};
// example of what link should be generated for each iframe
//<iframe src="http://localhost:3000/
// d-solo/ -> single panel only
// wAfgtlsOl/ -> dbUId
// kubestatemetrics? -> dashboard name ( in grafana local host)
// orgId=1& -> org id = 1 (only 1 org set up in grafana)
// from=now-1h
// to=now
// panelId=4" width="450" height="200" ></iframe>