Skip to content

Commit 0d8c400

Browse files
committed
edit reademe
1 parent ca2dbc3 commit 0d8c400

File tree

4 files changed

+26
-17
lines changed

4 files changed

+26
-17
lines changed

app/containers/Inspect.jsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ const Inspect = () => {
9898
node, // lookAt ({ x, y, z })
9999
3000 // ms transition duration
100100
);
101+
102+
// Show label
103+
const nodeEl = document.createElement('div');
104+
nodeEl.innerHTML = node.path;
105+
nodeEl.style.color = node.color;
106+
nodeEl.className = 'node-label';
107+
return new CSS2DObject(nodeEl);
101108
})
102109
.nodeThreeObject((node) => {
103110
const nodeEl = document.createElement('div');

chronos_npm_package/server/kuberControllers.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,17 @@ kuberControllers.getResources = async (req, res, next) => {
119119
}
120120

121121
const data = [];
122-
data.push({ size: '', path: 'default' })
122+
data.push({ size: '', path: 'Namespace: default' })
123123
for (let d of deployments) {
124124
const obj = {};
125125
for (let s in d.services) {
126-
let path = 'default/' + 'service: ' + s
126+
let path = 'Namespace: default/' + 'Service: ' + s
127127
for (let p of d.services[s]) {
128-
let path = 'default/' + 'service: ' + s
129-
path += '/pod: ' + p;
128+
let path = 'Namespace: default/' + 'Service: ' + s
129+
path += '/Pod: ' + p;
130130
data.push({ size: '', path: path })
131131
}
132-
path = 'default/' + 'service: ' + s
132+
path = 'Namespace: default/' + 'Service: ' + s
133133
data.push({ size: '', path: path })
134134
}
135135

chronos_npm_package/server/output.csv

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
size,path
2-
"",default
3-
"",default/service: grafana/pod: grafana-85d768d55b-jkr84
4-
"",default/service: grafana
5-
"",default/service: frontend/pod: nginx-frontend-55b44fbc7-q4glh
6-
"",default/service: frontend/pod: nginx-frontend-55b44fbc7-s47v4
7-
"",default/service: frontend
8-
"",default/service: backend/pod: node-backend-d597768c-rtwwx
9-
"",default/service: backend
10-
"",default/service: prometheus-service/pod: prometheus-deployment-96898bbc9-km5cf
11-
"",default/service: prometheus-service
2+
"",Namespace: default
3+
"",Namespace: default/Service: grafana/Pod: grafana-85d768d55b-jkr84
4+
"",Namespace: default/Service: grafana
5+
"",Namespace: default/Service: frontend/Pod: nginx-frontend-55b44fbc7-q4glh
6+
"",Namespace: default/Service: frontend/Pod: nginx-frontend-55b44fbc7-s47v4
7+
"",Namespace: default/Service: frontend
8+
"",Namespace: default/Service: backend/Pod: node-backend-d597768c-rtwwx
9+
"",Namespace: default/Service: backend
10+
"",Namespace: default/Service: prometheus-service/Pod: prometheus-deployment-96898bbc9-km5cf
11+
"",Namespace: default/Service: prometheus-service

examples/kubernetes/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ This example has been developed and tested using the Kubernetes Engine packaged
2121

2222
## Setup Prometheus and Grafana
2323
1. `cd` into the *scripts* folder and run the setup script with `./setup.sh` - the process of configuring Prometheus and Grafana.
24+
**Note**: If you run into `Permission denied` error, try run this command: `chmod +x [the_file_name]` in the terminal and re-run `./setup.sh`.
2425

2526
2. In your browser, go to `localhost:32000`, which will be the login page of grafana. Use `admin` as both username and password to login. You can change the password after login.
2627

@@ -76,7 +77,8 @@ kubectl apply -f frontend.yml
7677

7778
#
7879

79-
2. Check in Docker desktop if your containers have been created. You should see something similar to the following:
80+
2. `cd` into the `server` folder inside `chronos_npm_package`, then run `npm install` and `npm start`
81+
3. Check in Docker desktop if your containers have been created. You should see something similar to the following:
8082

8183
<p align="center">
8284
<img alt="Kubernetes containers created" src="../../assets/examples_kubernetes_created.png">
@@ -97,7 +99,7 @@ kubectl delete -f frontend.yml
9799

98100
**Mac Users:** Alternative to running the above commands, `cd` into the *scripts* folder and run the `stopKuber.sh` script
99101

100-
**note**: The above part only teardown Prometheus and Kubernetes, it leaves Grafana running. This is because if you teardown Grafana, the next time you redeploy you will be login with a new account, the access token and dashboard you created within this account will lose.
102+
**Note**: The above part only teardown Prometheus and Kubernetes, it leaves Grafana running. This is because if you teardown Grafana, the next time you redeploy you will be login with a new account, the access token and dashboard you created within this account will lose.
101103

102104
To teardown grafana, run the following commands:
103105
```

0 commit comments

Comments
 (0)