-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
constants.ts
44 lines (40 loc) · 3.54 KB
/
constants.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
import getConfig from 'next/config';
const { publicRuntimeConfig } = getConfig();
export const name_local: string = publicRuntimeConfig.LOCAL_CLUSTER_NAME;
export const name_deployed: string = publicRuntimeConfig.DEPLOYED_CLUSTER_NAME;
export const name_deployed_2: string =
publicRuntimeConfig.DEPLOYED_CLUSTER_NAME_2;
const IP_local_env: string = publicRuntimeConfig.LOCAL_CLUSTER_IP;
const IP_deployed_env: string = publicRuntimeConfig.DEPLOYED_CLUSTER_IP;
export const dashUrls: string[][] = [
// ARRAY FOR DEPLOYED CLUSTER
[
`http://${IP_deployed_env}/d-solo/${name_deployed_2}/node-exporter-nodes?orgId=1&refresh=30s&from=now-2h&to=now&panelId=2`,
`http://${IP_deployed_env}/d-solo/${name_deployed_2}/node-exporter-nodes?orgId=1&refresh=30s&from=now-2h&to=now&panelId=3`,
`http://${IP_deployed_env}/d-solo/${name_deployed_2}/node-exporter-nodes?orgId=1&refresh=30s&from=now-2h&to=now&panelId=4`,
`http://${IP_deployed_env}/d-solo/${name_deployed_2}/node-exporter-nodes?orgId=1&refresh=30s&from=now-2h&to=now&panelId=5`,
`http://${IP_deployed_env}/d-solo/${name_deployed_2}/node-exporter-nodes?orgId=1&refresh=30s&from=now-2h&to=now&panelId=6`,
`http://${IP_deployed_env}/d-solo/${name_deployed_2}/node-exporter-nodes?orgId=1&refresh=30s&from=now-2h&to=now&panelId=10`,
`http://${IP_deployed_env}/d-solo/${name_deployed_2}/node-exporter-nodes?orgId=1&refresh=30s&from=now-2h&to=now&panelId=8`,
`http://${IP_deployed_env}/d-solo/${name_deployed_2}/node-exporter-nodes?orgId=1&refresh=30s&from=now-2h&to=now&panelId=9`,
`http://${IP_deployed_env}/d-solo/${name_deployed}/node-exporter-nodes?orgId=1&refresh=30s&from=now-2h&to=now&panelId=2`,
`http://${IP_deployed_env}/d-solo/${name_deployed}/node-exporter-nodes?orgId=1&refresh=30s&from=now-2h&to=now&panelId=3`,
`http://${IP_deployed_env}/d-solo/${name_deployed}/node-exporter-nodes?orgId=1&refresh=30s&from=now-2h&to=now&panelId=4`,
`http://${IP_deployed_env}/d-solo/${name_deployed}/node-exporter-nodes?orgId=1&refresh=30s&from=now-2h&to=now&panelId=5`,
`http://${IP_deployed_env}/d-solo/${name_deployed}/node-exporter-nodes?orgId=1&refresh=30s&from=now-2h&to=now&panelId=6`,
`http://${IP_deployed_env}/d-solo/${name_deployed}/node-exporter-nodes?orgId=1&refresh=30s&from=now-2h&to=now&panelId=7`,
`http://${IP_deployed_env}/d-solo/${name_deployed}/node-exporter-nodes?orgId=1&refresh=30s&from=now-2h&to=now&panelId=8`,
`http://${IP_deployed_env}/d-solo/${name_deployed}/node-exporter-nodes?orgId=1&refresh=30s&from=now-2h&to=now&panelId=9`,
],
// ARRAY FOR LOCAL CLUSTER (MINIKUBE), grafana iframe embed links example
[
`http://${IP_local_env}/d-solo/${name_local}/node-exporter-nodes?orgId=1&refresh=30s&from=now-24h&to=now&panelId=2`,
`http://${IP_local_env}/d-solo/${name_local}/node-exporter-nodes?orgId=1&refresh=30s&from=now-24h&to=now&panelId=3`,
`http://${IP_local_env}/d-solo/${name_local}/node-exporter-nodes?orgId=1&refresh=1d&from=now-24h&to=now&panelId=4`,
`http://${IP_local_env}/d-solo/${name_local}/node-exporter-nodes?orgId=1&refresh=1d&from=now-24h&to=now&panelId=5`,
`http://${IP_local_env}/d-solo/${name_local}/node-exporter-nodes?orgId=1&refresh=1d&from=now-24h&to=now&panelId=6`,
`http://${IP_local_env}/d-solo/${name_local}/node-exporter-nodes?orgId=1&refresh=1d&from=now-24h&to=now&panelId=7`,
`http://${IP_local_env}/d-solo/${name_local}/node-exporter-nodes?orgId=1&refresh=1d&from=now-24h&to=now&panelId=8`,
`http://${IP_local_env}/d-solo/${name_local}/node-exporter-nodes?orgId=1&refresh=1d&from=now-24h&to=now&panelId=9`,
],
];