forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
73 lines (71 loc) · 2.05 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "telemetry",
srcs = [
"data.go",
"data_cluster_hardware.go",
"data_cluster_info.go",
"data_feature_usage.go",
"data_slow_query.go",
"data_telemetry_host_extra.go",
"data_window.go",
"id.go",
"status.go",
"telemetry.go",
"util.go",
],
importpath = "github.com/pingcap/tidb/telemetry",
visibility = ["//visibility:public"],
deps = [
"//config",
"//domain/infosync",
"//infoschema",
"//kv",
"//metrics",
"//parser/model",
"//parser/mysql",
"//sessionctx",
"//sessionctx/variable",
"//util/logutil",
"//util/sqlexec",
"@com_github_google_uuid//:uuid",
"@com_github_iancoleman_strcase//:strcase",
"@com_github_pingcap_errors//:errors",
"@com_github_prometheus_client_golang//api",
"@com_github_prometheus_client_golang//api/prometheus/v1:prometheus",
"@com_github_prometheus_common//model",
"@com_github_shirou_gopsutil_v3//cpu",
"@com_github_shirou_gopsutil_v3//host",
"@com_github_tikv_client_go_v2//metrics",
"@io_etcd_go_etcd_client_v3//:client",
"@org_golang_x_exp//slices",
"@org_uber_go_atomic//:atomic",
"@org_uber_go_zap//:zap",
],
)
go_test(
name = "telemetry_test",
timeout = "short",
srcs = [
"data_cluster_hardware_test.go",
"data_feature_usage_test.go",
"data_window_test.go",
"main_test.go",
"telemetry_test.go",
"util_test.go",
],
embed = [":telemetry"],
deps = [
"//config",
"//kv",
"//session",
"//sessionctx",
"//sessionctx/variable",
"//testkit",
"//testkit/testsetup",
"@com_github_jeffail_gabs_v2//:gabs",
"@com_github_stretchr_testify//require",
"@io_etcd_go_etcd_tests_v3//integration",
"@org_uber_go_goleak//:goleak",
],
)