File tree 3 files changed +10
-8
lines changed
3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ include_directories(${CMAKE_SOURCE_DIR}/exporters/prometheus/include)
2
2
add_executable (prometheus_example main.cc)
3
3
target_link_libraries (
4
4
prometheus_example ${CMAKE_THREAD_LIBS_INIT} opentelemetry_metrics
5
- prometheus_exporter opentelemetry_resources common_metrics_foo_library)
5
+ opentelemetry_exporter_prometheus opentelemetry_resources
6
+ common_metrics_foo_library)
Original file line number Diff line number Diff line change @@ -17,23 +17,23 @@ if(NOT TARGET prometheus-cpp::core)
17
17
find_package (prometheus-cpp CONFIG REQUIRED)
18
18
endif ()
19
19
20
- add_library (prometheus_exporter src/exporter.cc src/collector.cc
21
- src/exporter_utils.cc)
20
+ add_library (opentelemetry_exporter_prometheus src/exporter.cc src/collector.cc
21
+ src/exporter_utils.cc)
22
22
target_include_directories (
23
- prometheus_exporter
23
+ opentelemetry_exporter_prometheus
24
24
PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR} /include>"
25
25
"$<INSTALL_INTERFACE:include>" )
26
26
27
- set (PROMETHEUS_EXPORTER_TARGETS prometheus_exporter )
27
+ set (PROMETHEUS_EXPORTER_TARGETS opentelemetry_exporter_prometheus )
28
28
if (TARGET pull)
29
29
list (APPEND PROMETHEUS_EXPORTER_TARGETS pull)
30
30
endif ()
31
31
if (TARGET core)
32
32
list (APPEND PROMETHEUS_EXPORTER_TARGETS core)
33
33
endif ()
34
34
target_link_libraries (
35
- prometheus_exporter PUBLIC opentelemetry_metrics prometheus-cpp::pull
36
- prometheus-cpp::core)
35
+ opentelemetry_exporter_prometheus
36
+ PUBLIC opentelemetry_metrics prometheus-cpp::pull prometheus-cpp::core)
37
37
install (
38
38
TARGETS ${PROMETHEUS_EXPORTER_TARGETS}
39
39
EXPORT "${PROJECT_NAME} -target"
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ foreach(testname exporter_test collector_test exporter_utils_test)
2
2
add_executable (${testname} "${testname} .cc" )
3
3
target_link_libraries (
4
4
${testname} ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}
5
- prometheus_exporter prometheus-cpp::pull opentelemetry_resources)
5
+ opentelemetry_exporter_prometheus prometheus-cpp::pull
6
+ opentelemetry_resources)
6
7
gtest_add_tests(
7
8
TARGET ${testname}
8
9
TEST_PREFIX exporter.
You can’t perform that action at this time.
0 commit comments