Commit 4f0cd26e authored by Michael Ott's avatar Michael Ott
Browse files

Print configuration for InfluxDB

parent 5af0eb23
...@@ -806,6 +806,27 @@ int main(int argc, char* const argv[]) { ...@@ -806,6 +806,27 @@ int main(int argc, char* const argv[]) {
LOG(info) << " REST Server: " << restAPISettings.host << ":" << restAPISettings.port; LOG(info) << " REST Server: " << restAPISettings.host << ":" << restAPISettings.port;
LOG(info) << " Certificate: " << restAPISettings.certificate; LOG(info) << " Certificate: " << restAPISettings.certificate;
LOG(info) << " Private key file: " << restAPISettings.privateKey; LOG(info) << " Private key file: " << restAPISettings.privateKey;
if (config.influxMap.size() > 0) {
LOG(info) << "InfluxDB Settings:";
for (auto &m: config.influxMap) {
LOG(info) << " Measurement: " << m.first;
LOG(info) << " Tag: " << m.second.tag;
if ((m.second.tagRegex.size() > 0) && (m.second.tagSubstitution.size() > 0))
if (m.second.tagSubstitution != "&") {
LOG(info) << " TagFilter: s/" << m.second.tagRegex.str() << "/" << m.second.tagSubstitution << "/";
} else {
LOG(info) << " TagFilter: " << m.second.tagRegex.str();
}
if (m.second.fields.size() > 0) {
stringstream ss;
copy(m.second.fields.begin(), m.second.fields.end(), ostream_iterator<std::string>(ss, ","));
string fields = ss.str();
fields.pop_back();
LOG(info) << " Fields: " << fields;
}
}
}
} }
LOG_VAR(vLogLevel) << "----- Analytics Configuration -----"; LOG_VAR(vLogLevel) << "----- Analytics Configuration -----";
for(auto& p : analyticsController->getManager()->getPlugins()) { for(auto& p : analyticsController->getManager()->getPlugins()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment