You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _cmd.py
+21-18Lines changed: 21 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -422,7 +422,7 @@ def __init__(self):
422
422
classTelemetryPostCommand(HiddenObdCommand):
423
423
424
424
def__init__(self):
425
-
super(TelemetryPostCommand, self).__init__("post", "Post telemetry data to OceanBase.By default, OBD telemetry is enabled. To disable OBD telemetry, run the `obd env set TELEMETRY_MODE 0` command. To enable OBD telemetry data printing, run `obd env set TELEMETRY_LOG_MODE 1`.")
425
+
super(TelemetryPostCommand, self).__init__('post', "Post telemetry data to OceanBase.By default, OBD telemetry is enabled. To disable OBD telemetry, run the `obd env set TELEMETRY_MODE 0` command. To enable OBD telemetry data printing, run `obd env set TELEMETRY_LOG_MODE 1`.")
super(TelemetryMajorCommand, self).__init__("telemetry", "Telemetry for OB-Deploy.By default, OBD telemetry is enabled. To disable OBD telemetry, run the `obd env set TELEMETRY_MODE 0` command. To enable OBD telemetry data printing, run `obd env set TELEMETRY_LOG_MODE 1`.")
448
+
super(TelemetryMajorCommand, self).__init__('telemetry', "Telemetry for OB-Deploy.By default, OBD telemetry is enabled. To disable OBD telemetry, run the `obd env set TELEMETRY_MODE 0` command. To enable OBD telemetry data printing, run `obd env set TELEMETRY_LOG_MODE 1`.")
self.parser.add_option('--to', type='string', help="specify the end of the time range. format: yyyy-mm-dd hh:mm:ss")
1570
1573
self.parser.add_option('--since', type='string', help="Specify time range that from 'n' [d]ays, 'n' [h]ours or 'n' [m]inutes. before to now. format: <n> <m|h|d>. example: 1h.",default='30m')
1571
1574
self.parser.add_option('--encrypt', type='string', help="Whether the returned results need to be encrypted, choices=[true, false]", default="false")
1572
-
self.parser.add_option('--store_dir', type='string', help='the dir to store gather result, current dir by default.', default=os.getcwd())
1575
+
self.parser.add_option('--store_dir', type='string', help='the dir to store gather result, current dir by default.', default='./')
self.parser.add_option('--to', type='string', help="specify the end of the time range. format: yyyy-mm-dd hh:mm:ss")
1590
1593
self.parser.add_option('--since', type='string', help="Specify time range that from 'n' [d]ays, 'n' [h]ours or 'n' [m]inutes. before to now. format: <n> <m|h|d>. example: 1h.",default='30m')
1591
1594
self.parser.add_option('--encrypt', type='string', help="Whether the returned results need to be encrypted, choices=[true, false]", default="false")
1592
-
self.parser.add_option('--store_dir', type='string', help='the dir to store gather result, current dir by default.', default=os.getcwd())
1595
+
self.parser.add_option('--store_dir', type='string', help='the dir to store gather result, current dir by default.', default='./')
Copy file name to clipboardExpand all lines: example/all-components-min.yaml
+123Lines changed: 123 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -107,6 +107,129 @@ obagent:
107
107
ip: 172.19.33.4
108
108
global:
109
109
home_path: /root/obagent
110
+
prometheus:
111
+
servers:
112
+
- 192.168.1.5
113
+
depends:
114
+
- obagent
115
+
global:
116
+
# The working directory for prometheus. prometheus is started under this directory. This is a required field.
117
+
home_path: /root/prometheus
118
+
# address: 0.0.0.0 # The ip address to bind to. Along with port, corresponds to the `web.listen-address` parameter.
119
+
# port: 9090 # The http port to use. Along with address, corresponds to the `web.listen-address` parameter.
120
+
# enable_lifecycle: true # Enable shutdown and reload via HTTP request. Corresponds to the `web.enable-lifecycle` parameter.
121
+
# data_dir: /root/prometheus/data # Base path for metrics storage. Corresponds to the `storage.tsdb.path` parameter.
122
+
# basic_auth_users: # Usernames and passwords that have full access to the web server via basic authentication. Corresponds to the `basic_auth_users` parameter.
123
+
# <username>: <password> # The format of `basic_auth_users` : the key is the user name and the value is the password.
124
+
# web_config: # Content of Prometheus web service config file. The format is consistent with the file. However, `basic_auth_users` cannot be set in it. Please set `basic_auth_users` above if needed. Corresponds to the `web.config.file` parameter.
125
+
# tls_server_config:
126
+
# # Certificate and key files for server to use to authenticate to client.
127
+
# cert_file: <filename>
128
+
# key_file: <filename>
129
+
# config: # Configuration of the Prometheus service. The format is consistent with the Prometheus config file. Corresponds to the `config.file` parameter.
130
+
# rule_files:
131
+
# - rules/*rules.yaml
132
+
# scrape_configs:
133
+
# - job_name: prometheus
134
+
# metrics_path: /metrics
135
+
# scheme: http
136
+
# static_configs:
137
+
# - targets:
138
+
# - localhost:9090
139
+
# - job_name: node
140
+
# basic_auth:
141
+
# username: admin
142
+
# password: root
143
+
# metrics_path: /metrics/node/host
144
+
# scheme: http
145
+
# file_sd_configs: # Set the targets to be collected by reading local files. The example is to collect targets corresponding to all yaml files in the 'targets' directory under $home_path.
146
+
# - files:
147
+
# - 'targets/*.yaml'
148
+
# - job_name: ob_basic
149
+
# basic_auth:
150
+
# username: admin
151
+
# password: root
152
+
# metrics_path: /metrics/ob/basic
153
+
# scheme: http
154
+
# file_sd_configs:
155
+
# - files:
156
+
# - 'targets/*.yaml'
157
+
# - job_name: ob_extra
158
+
# basic_auth:
159
+
# username: admin
160
+
# password: root
161
+
# metrics_path: /metrics/ob/extra
162
+
# scheme: http
163
+
# file_sd_configs:
164
+
# - files:
165
+
# - 'targets/*.yaml'
166
+
# - job_name: agent
167
+
# basic_auth:
168
+
# username: admin
169
+
# password: root
170
+
# metrics_path: /metrics/stat
171
+
# scheme: http
172
+
# file_sd_configs:
173
+
# - files:
174
+
# - 'targets/*.yaml'
175
+
# additional_parameters: # Additional parameters for Prometheus service, among which `web.listen-address`, `web.enable-lifecycle`, `storage.tsdb.path`, `config.file` and `web.config.file` cannot be set. Please set them in the corresponding configuration above if needed.
176
+
# - log.level: debug
177
+
grafana:
178
+
servers:
179
+
- 192.168.1.5
180
+
depends:
181
+
- prometheus
182
+
global:
183
+
home_path: /root/grafana
184
+
login_password: oceanbase # Grafana login password. The default value is 'oceanbase'.
185
+
# data_dir: # Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used).$data_dir can be empty. The default value is $home_path/data.
186
+
# logs_dir: # Directory where grafana can store logs, can be empty. The default value is $data_dir/log.
187
+
# plugins_dir: # Directory where grafana will automatically scan and look for plugins, can be empty. The default value is $data_dir/plugins.
188
+
# provisioning_dir: # folder that contains provisioning config files that grafana will apply on startup and while running, can be empty. The default value is $home_path/conf/provisioning.
189
+
# temp_data_lifetime: # How long temporary images in data directory should be kept. Supported modifiers h (hours), m (minutes), Use 0 to never clean up temporary files, can be empty. The default value is 24h.
190
+
# log_max_days: # Expired days of log file(delete after max days), can be empty. The default value is 7.
191
+
# domian: # The public facing domain name used to access grafana from a browser, can be empty. The default value is $server.ip.
192
+
# port: # The http port to use, can be empty. The default value is 3000.
193
+
194
+
# # list of datasources to insert/update depending on what's available in the database, can be empty.
195
+
# # For more parameter settings, please refer to https://grafana.com/docs/grafana/latest/administration/provisioning/#datasources
196
+
# datasources:
197
+
# name: # name of the datasource. Required and should not be 'OB-Prometheus'
198
+
# type: # datasource type. Required
199
+
# access: # access mode. direct or proxy. Required
200
+
# url: # the url of datasource
201
+
202
+
# list of dashboards providers that load dashboards into Grafana from the local filesystem, can be empty.
203
+
# For more information, please refer to https://grafana.com/docs/grafana/latest/administration/provisioning/#dashboards
204
+
# providers:
205
+
# name: # an unique provider name. Required and should not be 'OceanBase Metrics'
206
+
# type: # provider type. Default to 'file'
207
+
# options:
208
+
# path: # path to dashboard files on disk. Required when using the 'file' type
209
+
210
+
# # customize your Grafana instance by adding/modifying the custom configuration as follows
211
+
# # for more information, please refer to https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/#configure-grafana
212
+
# # Here, setting parameters is required for format conversion.
213
+
# # For example, if the original grafana configuration format is
214
+
# #
215
+
# # [section1.section2]
216
+
# # key1 = value1
217
+
# # key2 = value2
218
+
# #
219
+
# # Then when writing the configuration below, you need to write it as
220
+
# #
221
+
# # section1:
222
+
# # section2:
223
+
# # key1: value1
224
+
# # key2: value2
225
+
# #
226
+
# # Here we only list one item, because there are more than 500 items. Please add them according to your own needs.
0 commit comments