获取帮助

模块命令行说明:

  1. gs_dbmind component forecast --help
  1. usage: forecast.py [-h] -c DIRECTORY [--metric-name METRIC_NAME] [--host HOST]
  2. [--labels LABELS] [--start-time TIMESTAMP_IN_MICROSECONDS]
  3. [--end-time TIMESTAMP_IN_MICROSECONDS]
  4. [--retention-days DAYS] [--upper UPPER] [--lower LOWER]
  5. [--warning-hours WARNING-HOURS]
  6. [--csv-dump-path CSV_DUMP_PATH]
  7. {show,clean,early-warning}
  8. Workload Forecasting: Forecast monitoring metrics
  9. positional arguments:
  10. {show,clean,early-warning}
  11. Choose a functionality to perform
  12. optional arguments:
  13. -h, --help show this help message and exit
  14. -c DIRECTORY, --conf DIRECTORY
  15. Set the directory of configuration files
  16. --metric-name METRIC_NAME
  17. Set a metric name you want to retrieve
  18. --host HOST Set a host you want to retrieve. IP only or IP with
  19. port.
  20. --labels LABELS A list of label (format is label=name) separated by
  21. comma(,). Using in warning.
  22. --start-time TIMESTAMP_IN_MICROSECONDS
  23. Set a start time for retrieving, supporting UNIX-
  24. timestamp with microsecond or datetime format
  25. --end-time TIMESTAMP_IN_MICROSECONDS
  26. Set an end time for retrieving, supporting UNIX-
  27. timestamp with microsecond or datetime format
  28. --retention-days DAYS
  29. Clear historical diagnosis results and set the maximum
  30. number of days to retain data
  31. --upper UPPER The upper value of early-warning. Using in warning.
  32. --lower LOWER The lower value of early-warning. Using in warning.
  33. --warning-hours WARNING-HOURS
  34. warning length, unit is hour.
  35. --csv-dump-path CSV_DUMP_PATH
  36. Dump the result CSV file to the path if it is
  37. specified. Use in warning.