Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
Add telemetry and dashboard configurations (#1319) (#1320)
Browse files Browse the repository at this point in the history
  • Loading branch information
breezewish authored Jun 29, 2020
1 parent c5e4cb7 commit 45868f7
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 0 deletions.
18 changes: 18 additions & 0 deletions conf/pd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,21 @@ replication:
# For example, ["zone", "rack"] means that we should place replicas to
# different zones first, then to different racks if we don't have enough zones.
# location-labels: []

dashboard:
## Configurations below are for the TiDB Dashboard embedded in the PD.
## The path of the CA certificate used to verify the TiDB server in TLS.
# tidb-cacert-path: ""
## The path of the certificate used to connect to TiDB server in TLS.
# tidb-cert-path: ""
## The path of the certificate private key.
# tidb-key-path: ""
## The public path prefix to serve Dashboard urls. It can be set when Dashboard
## is running behind a reverse proxy. Do not configure it if you access
## Dashboard directly.
# public-path-prefix: "/dashboard"
## When enabled, request will be proxied to the instance running Dashboard
## internally instead of result in a 307 redirection.
# internal-proxy: false
## When not disabled, usage data will be sent to PingCAP for improving user experience.
# disable-telemetry: false
5 changes: 5 additions & 0 deletions conf/tidb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ global:
# Whether new collations are enabled, as indicated by its name, this configuration entry take effect ONLY when a TiDB cluster bootstraps for the first time.
new_collations_enabled_on_first_bootstrap: false

# When enabled, usage data (for example, instance versions) will be reported to PingCAP periodically for user experience analytics.
# If this config is set to `false` on all TiDB servers, telemetry will be always disabled regardless of the value of the global variable `tidb_enable_telemetry`.
# See PingCAP privacy policy for details: https://pingcap.com/en/privacy-policy/
# enable-telemetry: true

log:
# Log level: debug, info, warn, error, fatal.
# level: "info"
Expand Down
5 changes: 5 additions & 0 deletions roles/pd/templates/pd.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@ enable-placement-rules = true
{% for item, value in pd_conf.replication | dictsort -%}
{{ item }} = {{ value | to_json}}
{% endfor %}

[dashboard]
{% for item, value in pd_conf.dashboard | dictsort -%}
{{ item }} = {{ value | to_json}}
{% endfor %}
5 changes: 5 additions & 0 deletions roles/pd/vars/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,8 @@ replication:
# For example, ["zone", "rack"] means that we should place replicas to
# different zones first, then to different racks if we don't have enough zones.
location-labels: []

dashboard:
public-path-prefix: "/dashboard"
internal-proxy: false
disable-telemetry: false
5 changes: 5 additions & 0 deletions roles/tidb/vars/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ global:
# Whether new collations are enabled, as indicated by its name, this configuration entry take effect ONLY when a TiDB cluster bootstraps for the first time.
new_collations_enabled_on_first_bootstrap: false

# When enabled, usage data (for example, instance versions) will be reported to PingCAP periodically for user experience analytics.
# If this config is set to `false` on all TiDB servers, telemetry will be always disabled regardless of the value of the global variable `tidb_enable_telemetry`.
# See PingCAP privacy policy for details: https://pingcap.com/en/privacy-policy/
enable-telemetry: true

log:
# Log level: debug, info, warn, error, fatal.
level: "info"
Expand Down

0 comments on commit 45868f7

Please sign in to comment.