企业版 轻量版




源码方式:python --help


        python start [--role {{agent,server,monitor}}]
        # start local service.
        python stop [--role {{agent,server,monitor}}]
        # stop local service.
        python start [--user USER] [--host HOST] [--project-path PROJECT_PATH] [--role {{agent,server,monitor}}]
        # start the remote service.
        python stop [--user USER] [--host HOST] [--project-path PROJECT_PATH] [--role {{agent,server,monitor}}]
        # stop the remote service.
        python deploy [--user USER] [--host HOST] [--project-path PROJECT_PATH]
        # deploy project in remote host.
        python show_metrics
        # display all monitored metrics(can only be executed on 'detector' machine).
        python forecast [--metric-name METRIC_NAME] [--forecast-periods FORECAST_PERIODS] [--forecast-method {{auto_arima, fbprophet}}] [--save-path SAVE_PATH]
        # forecast future trend of metric(can only be executed on 'detector' machine).

abnomaly_detection: a timeseries forecast and anomaly detection tool.

positional arguments:

optional arguments:
  -h, --help            show this help message and exit
  --user USER           User of remote server.
  --host HOST           IP of remote server.
  --project-path PROJECT_PATH
                        Project location in remote server.
  --role {agent,server,monitor}
                        Run as 'agent', 'server', 'monitor'. notes: ensure the
                        normal operation of the openGauss in agent.
  --metric-name METRIC_NAME
                        Metric name to be predicted, if this parameter is not
                        provided, all metric in database will be predicted.
  --forecast-periods FORECAST_PERIODS
                        Forecast periods of metric, it should be integer plus
                        time unit format such as '1S', '2H', '10D'; now we
                        support time unit: S: Second, M: Minute, H: Hour, D:
                        Day, W: Week. notes: the specific value should be
                        determined to the trainnig data.if this parameter is
                        not provided, the default value '100S' will be used.
  --forecast-method FORECAST_METHOD
                        Forecast method, default method is 'auto_arima',if
                        want to use 'fbprophet', you should install fbprophet
  --save-path SAVE_PATH
                        Save the results to this path using csv format, if
                        this parameter is not provided,, the result wil not be
  -v, --version         show program's version number and exit

     the 'a-detection.conf' and 'metric_task.conf' will be read when the program is running,
     the location of them is:
     a-detection.conf: xxx/a-detection.conf.
     metric_config: xxx/metric_task.conf.

本文档遵循知识共享许可协议CC 4.0 (。