- Node.js (>= 10.12.0)
- Linux
wget https://oss-cdn.nebula-graph.com.cn/nebula-graph-dashboard/nebula-graph-dashboard-${version}.x86_64.tar.gz
tar -xvf nebula-graph-dashboard-${version}.x86_64.tar.gz
Five packages in nebula-graph-dashboard
- nebula-graph-dashboard ------------------------- FE service
- nebula-stats-exporter --------------------- Nebula Graph Metric Service
- node-exporter ----------------------------- Machine Metric Service
- prometheus -------------------------------- Data saving Service
- nebula-http-gateway ----------------------- Network Service
Attention: the file under these packages is compiled under Linux environment, can only be used in Linux. If you want to use dashboard in other enviroments, please download package according to README.md
- Node-exporter:for machine metrics
- packages:
node-exporter
- location:if you want in cluster,each machine needs install node exporter
- Start:
Service address: http://127.0.0.1:9100
## node-exporter should run in $ cd /nebula-dashboard/vendors/node-exporter $ nohup ./node-exporter --web.listen-address=":9100" &
- Nebula-stats-exporter:for nebula graph metrics
- packages:
nebula-stats-exporter
- location:in the same machine with nebula-graph-dashboard
- dependency: modify :
config.yml
according to nebula graph service address Start:Service address: http://127.0.0.1:9200$ cd /nebula-dashboard/vendors/nebula-stats-exporter $ nohup ./nebula-stats-exporter --listen-address=":9200" --bare-metal --bare-metal-config=./config.yaml &
- Prometheus
- packages
prometheus
- location:in the same machine with nebula-graph-dashboard
- dependency:modify :
./vendors/prometheus/prometheus.yaml
according to node-exporter and nebula-stats-exporter service address - Start:
Service address: http://127.0.0.1:9090
$ cd /nebula-dashboard/vendors/prometheus $ nohup ./prometheus --config.file=./prometheus.yaml &
- Nebula-http-gateway
- packages:
nebula-http-gateway
- location:in the same machine with nebula-graph-dashboard
- Start:
$ cd /nebula-dashboard/vendors/nebula-http-gateway $ nohup ./nebula-httpd &
- Service address: http://127.0.0.1:8090
- nebula-graph-dashboard
-
packages:
nebula-graph-dashboard
-
Modify proxy and connection setting:
./config.json
port: 7003 proxy: gateway: target: "127.0.0.1:8090" // change gateway service proxy prometheus: target: "127.0.0.1:9091" // change prometheus service proxy nebulaServer: "ip": "192.168.8.143" // change to nebula graph service ip "port": 9669 // change to nebula graph service port
-
Start:
$ ./dashboard &
-
service address: http://127.0.0.1:7003
- Open Nebula Graph Dashboard in browser url: http://{{ip}}:7003
Using kill pid
:
$ kill $(lsof -t -i :9200) # stop nebula-stats-exporter service
$ kill $(lsof -t -i :9100) # stop node-exporter service
$ kill $(lsof -t -i :9090) # stop prometheus service
$ kill $(lsof -t -i :8090) # stop nebula-http-gateway
$ kill $(lsof -t -i :7003) # stop nebula-graph-dashboard