forked from open-telemetry/opentelemetry-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
128 lines (120 loc) · 2.83 KB
/
BUILD
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
package(default_visibility = ["//visibility:public"])
cc_library(
name = "prometheus_exporter",
srcs = [
"src/exporter.cc",
"src/exporter_factory.cc",
"src/exporter_options.cc",
],
hdrs = [
"include/opentelemetry/exporters/prometheus/exporter.h",
"include/opentelemetry/exporters/prometheus/exporter_factory.h",
"include/opentelemetry/exporters/prometheus/exporter_options.h",
],
strip_include_prefix = "include",
tags = ["prometheus"],
deps = [
":prometheus_collector",
":prometheus_exporter_utils",
"//api",
"//sdk:headers",
"@com_github_jupp0r_prometheus_cpp//core",
"@com_github_jupp0r_prometheus_cpp//pull",
],
)
cc_library(
name = "prometheus_exporter_utils",
srcs = [
"src/exporter_utils.cc",
],
hdrs = [
"include/opentelemetry/exporters/prometheus/exporter_utils.h",
],
strip_include_prefix = "include",
tags = ["prometheus"],
deps = [
"//api",
"//sdk:headers",
"@com_github_jupp0r_prometheus_cpp//core",
"@com_github_jupp0r_prometheus_cpp//pull",
],
)
cc_library(
name = "prometheus_collector",
srcs = [
"src/collector.cc",
],
hdrs = [
"include/opentelemetry/exporters/prometheus/collector.h",
],
strip_include_prefix = "include",
tags = ["prometheus"],
deps = [
":prometheus_exporter_utils",
"//api",
"//sdk:headers",
"@com_github_jupp0r_prometheus_cpp//core",
"@com_github_jupp0r_prometheus_cpp//pull",
],
)
cc_library(
name = "prometheus_test_helper",
hdrs = [
"test/prometheus_test_helper.h",
],
tags = ["prometheus"],
deps = [
"//api",
"//sdk:headers",
"//sdk/src/trace",
],
)
cc_test(
name = "prometheus_exporter_test",
srcs = [
"test/exporter_test.cc",
],
tags = [
"prometheus",
"test",
],
deps = [
":prometheus_exporter",
":prometheus_test_helper",
"//sdk/src/metrics",
"@com_google_googletest//:gtest_main",
],
)
cc_test(
name = "prometheus_collector_test",
srcs = [
"test/collector_test.cc",
],
tags = [
"prometheus",
"test",
],
deps = [
":prometheus_collector",
":prometheus_test_helper",
"//sdk/src/metrics",
"@com_google_googletest//:gtest_main",
],
)
cc_test(
name = "prometheus_exporter_utils_test",
srcs = [
"test/exporter_utils_test.cc",
],
tags = [
"prometheus",
"test",
],
deps = [
":prometheus_exporter_utils",
":prometheus_test_helper",
"@com_google_googletest//:gtest_main",
],
)