diff --git a/docs-2.0/nebula-dashboard-ent/2.deploy-connect-dashboard-ent.md b/docs-2.0/nebula-dashboard-ent/2.deploy-connect-dashboard-ent.md index dffdec97084..23e6f04d8d9 100644 --- a/docs-2.0/nebula-dashboard-ent/2.deploy-connect-dashboard-ent.md +++ b/docs-2.0/nebula-dashboard-ent/2.deploy-connect-dashboard-ent.md @@ -64,7 +64,7 @@ Before deploying Dashboard Enterprise Edition, you must do a check of these: Enable: false Log: # Dashboard run log settings. KeepDays: 7 # The number of days for keeping log. - Mode: console # The save mode of the log. + Mode: console # The save mode of logs, including console and file. console means the service logs are logged in webserver.log. file means the service logs are logged in access.log, error.log, severe.log, slow.log, and stat.log respectively. Database: Dialect: sqlite # The database type used to store metadata. Only support SQLite and MySQL currently. The default value is SQLite. AutoMigrate: true # Whether to automatically create a database table. Defaults to true. @@ -141,41 +141,6 @@ Before deploying Dashboard Enterprise Edition, you must do a check of these: If you change the configuration file after starting Dashboard, you can run `dashboard.service restart all` in the `scripts` directory to synchronize the changes to the Dashboard client page. -### Manage Dashboard Service - -You can use the `dashboard.service` script to start, stop, and check the Dashboard services. - -```bash -sudo /dashboard/scripts/dashboard.service -[-v] [-h] - -``` - -| Parameter | Description | -| :------------------------- | :------------------- | -| `dashboard_path` | Dashboard installation path. | -| `-v` | Display detailed debugging information. | -| `-h` | Display help information. | -| `start` | Start the target services. | -| `stop` | Stop the target services. | -| `status` | Check the status of the target services. | -| `prometheus` | Set the prometheus Service as the target service. | -| `webserver` | Set the webserver Service as the target service. | -| `exporter` | Set the exporter Service as the target service. | -| `gateway` | Set the gateway Service as the target service. | -| `all` | Set all the Dashboard services as the target services. | - -### Examples - -Dashboard is installed in the current directory, and you can use the following commands to manage services. - -```bash -sudo /dashboard/scripts/dashboard.service start all #Start Dashboard. -sudo /dashboard/scripts/dashboard.service stop all #Stop Dashboard. -sudo /dashboard/scripts/dashboard.service status all #Check Dashboard status. -sudo /dashboard/scripts/dashboard.service restart all #Restart Dashboard. -``` - ## Deploy Dashboard Enterprise Edition with RPM ### Installation @@ -250,28 +215,6 @@ sudo /dashboard/scripts/dashboard.service restart all #Restart Dashboard. emailKey: mail # Set the field name used to restore email in LDAP. ``` -### View logs - -You can view the Dashboard Enterprise Edition operation logs in the `/var/log/messages` path. - -For example: - -``` -sudo cat /var/log/messages -``` - -Run the following command to view the logs of each service in Dashboard: - -``` -journalctl -u {nbd-prometheus.service|nbd-alert-manager.service|nbd-stats-exporter.service|nbd-webserver.service} -b -``` - -For example, to view the logs of the Prometheus service, run the following command: - -``` -journalctl -u nbd-prometheus.service -b -``` - ### Uninstallation To uninstall Dashboard Enterprise Edition deployed with RPM, run the following command. @@ -346,36 +289,79 @@ sudo rpm -e messageStore: 90 # It sets the number of days to keep alert messages, the value of which is 90 by default. ``` -### View logs - -You can view the Dashboard Enterprise Edition operation logs in the `/var/log/syslog` path. +### Uninstallation -For example: +To uninstall Dashboard Enterprise Edition, run the following command. ``` -sudo cat /var/log/syslog +sudo dpkg -r ``` -Run the following command to view the logs of each service in Dashboard: +## Manage services in Dashboard -``` -journalctl -u {nbd-prometheus.service|nbd-alert-manager.service|nbd-stats-exporter.service|nbd-webserver.service} -b +You can use the `dashboard.service` script to start, restart, stop, and check the Dashboard services. + +```bash +sudo /scripts/dashboard.service +[-v] [-h] + ``` -For example, to view the logs of the Prometheus service, run the following command: +| Parameter | Description | +| :------------------------- | :------------------- | +| `dashboard_path` | Dashboard installation path. | +| `-v` | Display detailed debugging information. | +| `-h` | Display help information. | +| `start` | Start the target services. | +| `restart` | Restart the target services. | +| `stop` | Stop the target services. | +| `status` | Check the status of the target services. | +| `prometheus` | Set the prometheus Service as the target service. | +| `webserver` | Set the webserver Service as the target service. | +| `exporter` | Set the exporter Service as the target service. | +| `gateway` | Set the gateway Service as the target service. | +| `all` | Set all the Dashboard services as the target services. | -``` -journalctl -u nbd-prometheus.service -b +!!! note + + To view the Dashboard version, run the command `./dashboard.service -version`. + +### Examples + +Dashboard is installed in the current directory, and you can use the following commands to manage services. + +```bash +sudo /dashboard/scripts/dashboard.service start all #Start Dashboard. +sudo /dashboard/scripts/dashboard.service stop all #Stop Dashboard. +sudo /dashboard/scripts/dashboard.service status all #Check Dashboard status. +sudo /dashboard/scripts/dashboard.service restart all #Restart Dashboard. ``` -### Uninstallation +## View logs -To uninstall Dashboard Enterprise Edition, run the following command. +You can view the Dashboard Enterprise Edition logs in the `logs` path. + +For example: ``` -sudo dpkg -r +cat logs/prometheus.log ``` +The descriptions of the log files are as follows. + +|Log file| Description | +|:--|:--| +|`alertmanager.log`| Alertmanager service log. | +|`nebula-stats-exporter.log`| nebula-stats-exporter service log. | +|`prometheus.log`| Prometheus service log. | +|`br`| Backup and restore service log. | +|`webserver.log`| Dashboard service log.
It takes effect only when the `Log.Mode` in the Dashboard configuration is `console`. | +|`access.log`| Access log.
It takes effect only when the `Log.Mode` in the Dashboard configuration is `file`. | +|`error.log`| Error log.
It takes effect only when the `Log.Mode` in the Dashboard configuration is `file`. | +|`severe.log`| Severe log.
It takes effect only when the `Log.Mode` in the Dashboard configuration is `file`. | +|`slow.log`| Slow log.
It takes effect only when the `Log.Mode` in the Dashboard configuration is `file`. | +|`stat.log`| Statistic log.
It takes effect only when the `Log.Mode` in the Dashboard configuration is `file`. | + ## Next to do -[Connect to Dashboard](3.connect-dashboard.md) \ No newline at end of file +[Connect to Dashboard](3.connect-dashboard.md) diff --git a/docs-2.0/nebula-dashboard-ent/4.cluster-operator/operator/service.md b/docs-2.0/nebula-dashboard-ent/4.cluster-operator/operator/service.md index 4fb2108af1d..2ab63a76cc2 100644 --- a/docs-2.0/nebula-dashboard-ent/4.cluster-operator/operator/service.md +++ b/docs-2.0/nebula-dashboard-ent/4.cluster-operator/operator/service.md @@ -19,3 +19,5 @@ On **Service** page, you can view the host, path, and status of the services, an - Select multiple services and perform batch operations at the upper corner of the page. - Click the ![nav](https://docs-cdn.nebula-graph.com.cn/figures/nav-dashboard.png) icon to quickly view the [service monitoring information](../2.monitor.md). + +- When synchronizing data, you can view and manage related services on the **Dependency** page. For details about data synchronization, see [Synchronize between two clusters](../../../synchronization-and-migration/replication-between-clusters.md). \ No newline at end of file