Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
4f0cd26e
Commit
4f0cd26e
authored
Oct 30, 2020
by
Michael Ott
Browse files
Print configuration for InfluxDB
parent
5af0eb23
Changes
1
Hide whitespace changes
Inline
Side-by-side
collectagent/collectagent.cpp
View file @
4f0cd26e
...
@@ -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
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment