[TSDB]
name = prometheus # The type of time-series database. Options: prometheus.
host = # Address of time-series database.
port = # Port to connect to time-series database.
username = (null) # User name to connect to time-series database.
password = (null) # Password to connect to time-series database.
ssl_certfile = (null) # The certificate file for ssl connections.
ssl_keyfile = (null) # Certificate private key file.
ssl_keyfile_password = (null) # Password for ssl keyfile.
ssl_ca_file = (null) # CA certificate to validate requests.
[METADATABASE]
dbtype = sqlite # Database type. Options: sqlite, opengauss, postgresql.
host = # Address of meta-data database.
port = # Port to connect to meta-data database.
username = # User name to connect to meta-data database.
password = (null) # Password to connect to meta-data database.
database = # Database name to connect to meta-data database.
[WORKER]
process_num = 0 # Number of worker processes on a local node. Less than or equal to zero means adaptive.
[AGENT]
master_url = # You don't need to configure this parameter, then the autodiscovery mode will be started. And all agents registered in TSDB will be found, but you need to configure a set of unified username/password/SSL connection information. Otherwise, you can type the agent URL of the master node. e.g., https://127.0.0.1:9187, if you have multiple sets of clusters, you should separated them by comma (,).
username = # Username to login the monitoring database. Credential for agent. If you configure and monitor multiple sets of clusters, and the usernames and passwords of these clusters are different, you need to enter multiple configuration usernames, which are separated by commas (,), and need to correspond to the above master_url option one by one.
password = # Password to login the monitoring database. Credential for agent. If you configure to monitor multiple clusters, they need to be separated by comma(,). The specific configuration method is the same as the above parameters.
ssl_certfile = (null) # The certificate file for ssl connections. This is optional. If you configure to monitor multiple clusters, they need to be separated by comma(,). The specific configuration method is the same as the above parameters.
ssl_keyfile = (null) # Certificate private key file. This is optional. If you configure to monitor multiple clusters, they need to be separated by comma(,). The specific configuration method is the same as the above parameters.
ssl_keyfile_password = (null) # Password for ssl keyfile. This is optional. If you configure to monitor multiple clusters, they need to be separated by comma(,). The specific configuration method is the same as the above parameters.
ssl_ca_file = (null) # CA certificate to validate requests. This is optional. If you configure to monitor multiple clusters, they need to be separated by comma(,). The specific configuration method is the same as the above parameters.
# Configure scheduled tasks including start tasks and intervals
# List of currently supported tasks:
# 1. anomaly_detection: enabled by default, monitor for abnormal metrics.
# 2. discard_expired_results: enabled by default, does not support user management(avoid disk bloat).
# 3. daily_inspection: Database daily check.
# 4. weekly_inspection: Database weekly check.
# 5. monthly_inspection: Database monthly check.
# 6. index_recommend: Workload level index recommendation.
# 7. knob_recommend: Recommend appropriate parameter based on current business.
# 8. slow_query_killer: kill timeout SQL(The default timeout time is 60 seconds).
# 9. slow_sql_diagnosis: Diagnose the root cause of SLOW-SQL based on its context.
# Note: 'monthly_inspection' and 'weekly_inspection' need to be based on 'daily_inspection' and
# cannot be started separately.
[TIMED_TASK]
TASK = discard_expired_results,anomaly_detection,daily_inspection,weekly_inspection,monthly_inspection # select the scheduled task to start,separated by ','.
anomaly_detection_interval = 180 # unit: second.
slow_sql_diagnosis_interval = 120 # unit: second.
index_recommend_interval = 30 # unit: second.
knob_recommend_interval = 30 # unit: second.
slow_query_killer_interval = 30 # unit: second.
discard_expired_results_interval = 3600 # unit: second.
[WEB-SERVICE]
host = 127.0.0.1 # Which host to bind for web service. '0.0.0.0' means to bind all.
port = 8080 # Port to listen for web serivce.
ssl_certfile = (null) # The certificate file for ssl connections.
ssl_keyfile = (null) # Certificate private key file.
ssl_keyfile_password = (null) # Password for ssl keyfile.
ssl_ca_file = (null) # CA certificate to validate requests.
[LOG]
maxbytes = 10485760 # Default is 10Mb. Maximum size of a single log file. If maxbytes is zero, the file grows indefinitely.
backupcount = 1 # Number of backups of log files.
level = INFO # Options: DEBUG, INFO, WARNING, ERROR.
log_directory = logs # Directory to log.
[COMMENT]
worker = The form of executing compute-intensive tasks. Tasks can be executed locally or distributed to multiple nodes for execution.
tsdb = Configure the data source for time series data, which come from monitoring the openGauss instance.
metadatabase = Configure the database to record meta-data, which the database can store meta-data for the forecasting and diagnosis process. The database should be an openGauss instance.
self-monitoring = Set up parameters for monitoring and diagnosing openGauss instance.
self-optimization = Set up parameters for openGauss optimization.
[IP_MAP]
ip_map = (null) #