Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
telegraf-nftables
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Due to inactivity, this project is scheduled to be deleted on 2035-04-24.
Why is this scheduled?
Show more breadcrumbs
vqgroup
telegraf-nftables
Commits
6a50fcee
Commit
6a50fcee
authored
9 years ago
by
Thibault Cohen
Committed by
Cameron Sparr
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Replace plugins by inputs in some strings
closes #542
parent
7efe1086
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmd/telegraf/telegraf.go
+4
-4
4 additions, 4 deletions
cmd/telegraf/telegraf.go
with
4 additions
and
4 deletions
cmd/telegraf/telegraf.go
+
4
−
4
View file @
6a50fcee
...
...
@@ -28,14 +28,14 @@ var fSampleConfig = flag.Bool("sample-config", false,
"print out full sample configuration"
)
var
fPidfile
=
flag
.
String
(
"pidfile"
,
""
,
"file to write our pid to"
)
var
fInputFilters
=
flag
.
String
(
"input-filter"
,
""
,
"filter the
plugin
s to enable, separator is :"
)
"filter the
input
s to enable, separator is :"
)
var
fOutputFilters
=
flag
.
String
(
"output-filter"
,
""
,
"filter the outputs to enable, separator is :"
)
var
fUsage
=
flag
.
String
(
"usage"
,
""
,
"print usage for a plugin, ie, 'telegraf -usage mysql'"
)
var
fInputFiltersLegacy
=
flag
.
String
(
"filter"
,
""
,
"filter the
plugin
s to enable, separator is :"
)
"filter the
input
s to enable, separator is :"
)
var
fOutputFiltersLegacy
=
flag
.
String
(
"outputfilter"
,
""
,
"filter the outputs to enable, separator is :"
)
var
fConfigDirectoryLegacy
=
flag
.
String
(
"configdirectory"
,
""
,
...
...
@@ -170,7 +170,7 @@ func main() {
log
.
Fatalf
(
"Error: no outputs found, did you provide a valid config file?"
)
}
if
len
(
c
.
Inputs
)
==
0
{
log
.
Fatalf
(
"Error: no
plugin
s found, did you provide a valid config file?"
)
log
.
Fatalf
(
"Error: no
input
s found, did you provide a valid config file?"
)
}
ag
,
err
:=
telegraf
.
NewAgent
(
c
)
...
...
@@ -217,7 +217,7 @@ func main() {
log
.
Printf
(
"Starting Telegraf (version %s)
\n
"
,
Version
)
log
.
Printf
(
"Loaded outputs: %s"
,
strings
.
Join
(
c
.
OutputNames
(),
" "
))
log
.
Printf
(
"Loaded
plugin
s: %s"
,
strings
.
Join
(
c
.
InputNames
(),
" "
))
log
.
Printf
(
"Loaded
input
s: %s"
,
strings
.
Join
(
c
.
InputNames
(),
" "
))
log
.
Printf
(
"Tags enabled: %s"
,
c
.
ListTags
())
if
*
fPidfile
!=
""
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment