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: docs/operation-guide.md
+27
Original file line number
Diff line number
Diff line change
@@ -131,6 +131,33 @@ Then open your browser at http://localhost:3000 The default username and passwor
131
131
132
132
The Grafana service is exposed as `NodePort` by default, you can change it to `LoadBalancer` if the underlining Kubernetes has load balancer support. And then view the dashboard via load balancer endpoint.
133
133
134
+
### View TiDB Slow Query Log
135
+
136
+
For default setup, tidb is configured to export slow query log to STDOUT along with normal server logs. You can obtain the slow query log by `grep` the keyword `SLOW_QUERY`:
To retrieve logs from multiple pods, [`stern`](https://github.com/wercker/stern) is recommended.
156
+
157
+
```shell
158
+
$ stern -n ${namespace} tidb -c slowlog
159
+
```
160
+
134
161
## Backup
135
162
136
163
Currently, TiDB Operator supports two kinds of backup: incremental backup via binlog and full backup(scheduled or ad-hoc) via [Mydumper](https://github.com/maxbube/mydumper).
0 commit comments