获取帮助
模块命令行说明:
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}
9. Workload Forecasting: Forecast monitoring metrics
11. positional arguments:
12. {show,clean,early-warning}
13. Choose a functionality to perform
15. optional arguments:
16. -h, --help show this help message and exit
17. -c DIRECTORY, --conf DIRECTORY
18. Set the directory of configuration files
19. --metric-name METRIC_NAME
20. Set a metric name you want to retrieve
21. --host HOST Set a host you want to retrieve. IP only or IP with
22. port.
23. --labels LABELS A list of label (format is label=name) separated by
24. comma(,). Using in warning.
25. --start-time TIMESTAMP_IN_MICROSECONDS
26. Set a start time for retrieving, supporting UNIX-
27. timestamp with microsecond or datetime format
28. --end-time TIMESTAMP_IN_MICROSECONDS
29. Set an end time for retrieving, supporting UNIX-
30. timestamp with microsecond or datetime format
31. --retention-days DAYS
32. Clear historical diagnosis results and set the maximum
33. number of days to retain data
34. --upper UPPER The upper value of early-warning. Using in warning.
35. --lower LOWER The lower value of early-warning. Using in warning.
36. --warning-hours WARNING-HOURS
37. warning length, unit is hour.
38. --csv-dump-path CSV_DUMP_PATH
39. Dump the result CSV file to the path if it is
40. specified. Use in warning.
