Skip to content

Commit 875adeb

Browse files
authored
Merge pull request #2 from awegrzyn/update-mon
Compatibility changes to new Configuration and Monitoring
2 parents 34aa1b7 + ccb63a6 commit 875adeb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmake/FindConfiguration.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
include(FindPackageHandleStandardArgs)
1515

1616
# find includes
17-
find_path(CONFIGURATION_INCLUDE_DIR Configuration.h
17+
find_path(CONFIGURATION_INCLUDE_DIR ConfigurationInterface.h
1818
HINTS ${Configuration_ROOT}/include ENV LD_LIBRARY_PATH PATH_SUFFIXES "../include/Configuration" "../../include/Configuration" )
1919
# Remove the final "Configuration"
2020
get_filename_component(CONFIGURATION_INCLUDE_DIR ${CONFIGURATION_INCLUDE_DIR} DIRECTORY)

src/ConsumerStats.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class ConsumerStats: public Consumer {
8080
const std::string configFile=cfg.getValue<std::string>(cfgEntryPoint + ".monitoringConfig");
8181
theLog.log("Monitoring enabled - period %ds - using configuration %s",monitoringUpdatePeriod,configFile.c_str());
8282

83-
monitoringCollector=MonitoringFactory::Create(configFile);
83+
monitoringCollector=MonitoringFactory::Get("influxdb-udp://localhost:1234"); // TODO: Set URL from Configuration
8484
monitoringCollector->addDerivedMetric("readout.BytesTotal", DerivedMetricMode::RATE);
8585

8686
monitoringUpdateTimer.reset(monitoringUpdatePeriod*1000000);

0 commit comments

Comments
 (0)