Commit Graph

8 Commits

Author SHA1 Message Date
357f9d7363 metrics: add db QPS metric (#9151) 2019-02-13 19:17:44 +08:00
877cbd33c7 *: spilt the internal SQLs in the transaction related metrics (#8255) 2018-11-09 20:47:36 +08:00
4212e44c03 metrics: register the metrics when TiDB starting up (#7642) 2018-09-10 20:19:07 +08:00
8c44f562f5 metrics: add different labels for restricted SQL and general SQL (#7631)
The newly added label is `sql_type`, it has value: `general` and `internal`,
users can use this label to filter metrics they have interest.

Also, add keyword `[INTERNAL]` for restricted SQL printed in slow log for
convenient identification.
2018-09-07 14:23:48 +08:00
a687650c9f metrics,tidb: add StatementsPerTransaction and TransactionDuration (#5859) 2018-02-11 21:01:37 -06:00
b7f6e4ac73 metrics: rename _count to _num (#5868)
Prometheus has a builtin suffix `_count` for histogram metrics, change `_count` to `_num` to avoid conflict.
2018-02-11 20:16:41 +08:00
0157fe5e70 metrics: unify metrics naming (#5863) 2018-02-11 18:31:38 +08:00
c5ca3a950a tidb, metrics: update metrics for session. (#5762)
Move metrics to `metrics` package, and two more, fix retry count metrics.
2018-02-01 21:44:05 +08:00