- 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 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-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 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-http-gateway $ nohup ./nebula-httpd &
- Service address: http://127.0.0.1:8090
- nebula-graph-dashboard
- packages:
nebula-graph-dashboard
- setting:
./static/custom.json
connection: { ip: '127.0.0.1', // change to running nebula graph address port: 9669, // change to running nebula graph port },
- Start:
$ cd nebula-graph-dashboard $ npm run start
- 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
$ cd nebula-graph-dashboard
$ npm run stop # stop nebula-graph-dashboard