forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
59 lines (57 loc) · 1.45 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "metrics",
srcs = [
"bindinfo.go",
"ddl.go",
"distsql.go",
"domain.go",
"executor.go",
"gc_worker.go",
"log_backup.go",
"meta.go",
"metrics.go",
"owner.go",
"resourcemanager.go",
"server.go",
"session.go",
"sli.go",
"stats.go",
"telemetry.go",
"topsql.go",
"ttl.go",
"wrapper.go",
],
importpath = "github.com/pingcap/tidb/metrics",
visibility = ["//visibility:public"],
deps = [
"//parser/terror",
"//timer/metrics",
"//util/logutil",
"//util/mathutil",
"@com_github_pingcap_errors//:errors",
"@com_github_prometheus_client_golang//prometheus",
"@com_github_prometheus_client_golang//prometheus/collectors",
"@com_github_prometheus_client_model//go",
"@com_github_tikv_client_go_v2//metrics",
"@org_uber_go_zap//:zap",
],
)
go_test(
name = "metrics_test",
timeout = "short",
srcs = [
"main_test.go",
"metrics_test.go",
],
embed = [":metrics"],
flaky = True,
shard_count = 4,
deps = [
"//parser/terror",
"//testkit/testsetup",
"@com_github_pingcap_errors//:errors",
"@com_github_stretchr_testify//require",
"@org_uber_go_goleak//:goleak",
],
)