Skip to content

Commit 9d44020

Browse files
author
charlyF
committed
updating 201-monitoring instructions for Cloud9 users
1 parent d7e0b51 commit 9d44020

File tree

1 file changed

+24
-2
lines changed
  • 02-path-working-with-clusters/201-cluster-monitoring

1 file changed

+24
-2
lines changed

02-path-working-with-clusters/201-cluster-monitoring/readme.adoc

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,17 @@ Prometheus is now scraping metrics from the different scraping targets and we fo
258258
$ kubectl port-forward $(kubectl get po -l prometheus=prometheus -n monitoring -o jsonpath={.items[0].metadata.name}) 9090 -n monitoring
259259
Forwarding from 127.0.0.1:9090 -> 9090
260260
261-
Now open the browser at http://localhost:9090/targets and all targets should be shown as `UP` (it might take a couple of minutes until data collectors are up and running for the first time). The browser displays the output as shown:
261+
Now open the browser at http://localhost:9090/targets.
262+
263+
If you are running this in the Cloud9 IDE, you will need to run the following to be able to visualize your dashboard:
264+
265+
$ kubectl port-forward $(kubectl get po -l prometheus=prometheus -n monitoring -o jsonpath={.items[0].metadata.name}) 8080:9090 -n monitoring
266+
Forwarding from 127.0.0.1:8080 -> 9090
267+
Forwarding from [::1]:8080 -> 9090
268+
269+
The dashboard will be available at https://<ENV_ID>.vfs.cloud9.<REGION_ID>.amazonaws.com/targets.
270+
271+
All targets should be shown as `UP` (it might take a couple of minutes until data collectors are up and running for the first time). The browser displays the output as shown:
262272
263273
image::monitoring-grafana-prometheus-dashboard-1.png[]
264274
image::monitoring-grafana-prometheus-dashboard-2.png[]
@@ -287,7 +297,17 @@ Lets forward the grafana dashboard to a local port:
287297
$ kubectl port-forward $(kubectl get pod -l app=grafana -o jsonpath={.items[0].metadata.name} -n monitoring) 3000 -n monitoring
288298
Forwarding from 127.0.0.1:3000 -> 3000
289299
290-
Grafana dashboard is now accessible at http://localhost:3000/. The complete list of dashboards is available using the search button at the top:
300+
Grafana dashboard is now accessible at http://localhost:3000/.
301+
302+
If you are running this in the Cloud9 IDE, you will need to run the following to be able to visualize your dashboard:
303+
304+
$ kubectl port-forward $(kubectl get pod -l app=grafana -o jsonpath={.items[0].metadata.name} -n monitoring) 8080:3000 -n monitoring
305+
Forwarding from 127.0.0.1:8080 -> 3000
306+
Forwarding from [::1]:8080 -> 3000
307+
308+
The dashboard will be available at https://<ENV_ID>.vfs.cloud9.<REGION_ID>.amazonaws.com/.
309+
310+
The complete list of dashboards is available using the search button at the top:
291311
292312
image::monitoring-grafana-prometheus-dashboard-dashboard-home.png[]
293313
@@ -316,6 +336,8 @@ Convenient link for other dashboards are listed below:
316336
* http://localhost:3000/dashboard/db/kubernetes-resource-requests?orgId=1
317337
* http://localhost:3000/dashboard/db/pods?orgId=1
318338
339+
(For Cloud9 users, just replace `http://localhost:3000/` by `https://<ENV_ID>.vfs.cloud9.<REGION_ID>.amazonaws.com/`
340+
319341
=== Cleanup
320342
321343
Remove all the installed components:

0 commit comments

Comments
 (0)