Spaces:
Sleeping
Sleeping
VenkateshRoshan
commited on
Commit
·
44ac321
1
Parent(s):
9bca988
Notes updated
Browse files
notes.txt
CHANGED
@@ -65,3 +65,29 @@ ngrok http 25561
|
|
65 |
ngrok http 25562
|
66 |
|
67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
ngrok http 25562
|
66 |
|
67 |
|
68 |
+
# Grafana visualization
|
69 |
+
docker pull grafana/grafana:latest
|
70 |
+
docker run -d -p 25563:3000 --name grafana grafana/grafana:latest
|
71 |
+
|
72 |
+
# created a prometheus.yml file
|
73 |
+
global:
|
74 |
+
scrape_interval: 5s # Adjust as needed
|
75 |
+
|
76 |
+
scrape_configs:
|
77 |
+
- job_name: 'node-exporter'
|
78 |
+
static_configs:
|
79 |
+
- targets: ['172.17.0.1:25561']
|
80 |
+
|
81 |
+
- job_name: 'app-metrics'
|
82 |
+
static_configs:
|
83 |
+
- targets: ['172.17.0.1:25562']
|
84 |
+
|
85 |
+
docker run -d -p 25564:9090 -v $(pwd)/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus
|
86 |
+
|
87 |
+
ssh -L 25560:localhost:25560 -L 25561:localhost:25561 -L 25562:localhost:25562 -L 25563:localhost:25563 -L 25564:localhost:25564 -p 2222 [email protected]
|
88 |
+
|
89 |
+
# To check whether the state of the site is up or down
|
90 |
+
http://localhost:25564/targets?search=
|
91 |
+
|
92 |
+
go to grafana http://localhost:25563
|
93 |
+
create a dashboard and add prometheus with the link as 192.168.0.230:25564
|