File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed
Expand file tree Collapse file tree 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)
22add_executable (prometheus_example main.cc)
33target_link_libraries (
44 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)
1717 find_package (prometheus-cpp CONFIG REQUIRED)
1818endif ()
1919
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)
2222target_include_directories (
23- prometheus_exporter
23+ opentelemetry_exporter_prometheus
2424 PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR} /include>"
2525 "$<INSTALL_INTERFACE:include>" )
2626
27- set (PROMETHEUS_EXPORTER_TARGETS prometheus_exporter )
27+ set (PROMETHEUS_EXPORTER_TARGETS opentelemetry_exporter_prometheus )
2828if (TARGET pull)
2929 list (APPEND PROMETHEUS_EXPORTER_TARGETS pull)
3030endif ()
3131if (TARGET core)
3232 list (APPEND PROMETHEUS_EXPORTER_TARGETS core)
3333endif ()
3434target_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)
3737install (
3838 TARGETS ${PROMETHEUS_EXPORTER_TARGETS}
3939 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)
22 add_executable (${testname} "${testname} .cc" )
33 target_link_libraries (
44 ${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)
67 gtest_add_tests(
78 TARGET ${testname}
89 TEST_PREFIX exporter.
You can’t perform that action at this time.
0 commit comments