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
7e312797
Commit
7e312797
authored
9 years ago
by
Cameron Sparr
Browse files
Options
Downloads
Patches
Plain Diff
Grammar corrections and consistency for output-list, input-list
closes #788
parent
fe44fa64
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
cmd/telegraf/telegraf.go
+14
-11
14 additions, 11 deletions
cmd/telegraf/telegraf.go
with
15 additions
and
11 deletions
CHANGELOG.md
+
1
−
0
View file @
7e312797
...
...
@@ -9,6 +9,7 @@
-
[
#769
](
https://github.com/influxdata/telegraf/issues/769
)
: httpjson plugin: allow specifying SSL configuration.
-
[
#735
](
https://github.com/influxdata/telegraf/pull/735
)
: SNMP Table feature. Thanks @titilambert!
-
[
#754
](
https://github.com/influxdata/telegraf/pull/754
)
: docker plugin: adding
`docker info`
metrics to output. Thanks @titilambert!
-
[
#788
](
https://github.com/influxdata/telegraf/pull/788
)
: -input-list and -output-list command-line options. Thanks @ebookbug!
### Bugfixes
-
[
#748
](
https://github.com/influxdata/telegraf/issues/748
)
: Fix sensor plugin split on ":"
...
...
This diff is collapsed.
Click to expand it.
cmd/telegraf/telegraf.go
+
14
−
11
View file @
7e312797
...
...
@@ -31,11 +31,12 @@ var fSampleConfig = flag.Bool("sample-config", false,
var
fPidfile
=
flag
.
String
(
"pidfile"
,
""
,
"file to write our pid to"
)
var
fInputFilters
=
flag
.
String
(
"input-filter"
,
""
,
"filter the inputs to enable, separator is :"
)
var
fInpuList
=
flag
.
Bool
(
"input-list"
,
false
,
"print all the plugins inputs"
)
var
fInputList
=
flag
.
Bool
(
"input-list"
,
false
,
"print available output plugins."
)
var
fOutputFilters
=
flag
.
String
(
"output-filter"
,
""
,
"filter the outputs to enable, separator is :"
)
var
fOutputList
=
flag
.
Bool
(
"output-list"
,
false
,
"print
all the
available output
s
"
)
"print available output
plugins.
"
)
var
fUsage
=
flag
.
String
(
"usage"
,
""
,
"print usage for a plugin, ie, 'telegraf -usage mysql'"
)
var
fInputFiltersLegacy
=
flag
.
String
(
"filter"
,
""
,
...
...
@@ -64,7 +65,7 @@ The flags are:
-input-filter filter the input plugins to enable, separator is :
-input-list print all the plugins inputs
-output-filter filter the output plugins to enable, separator is :
-output-list print all the available outputs
-output-list print all the available outputs
-usage print usage for a plugin, ie, 'telegraf -usage mysql'
-debug print metrics as they're generated to stdout
-quiet run in quiet mode
...
...
@@ -121,10 +122,19 @@ func main() {
}
if
*
fOutputList
{
fmt
.
Println
(
"
Th
e
o
utput
s available
:"
)
fmt
.
Println
(
"
Availabl
e
O
utput
Plugins
:"
)
for
k
,
_
:=
range
outputs
.
Outputs
{
fmt
.
Printf
(
" %s
\n
"
,
k
)
}
return
}
if
*
fInputList
{
fmt
.
Println
(
"Available Input Plugins:"
)
for
k
,
_
:=
range
inputs
.
Inputs
{
fmt
.
Printf
(
" %s
\n
"
,
k
)
}
return
}
if
*
fVersion
{
...
...
@@ -147,13 +157,6 @@ func main() {
return
}
if
*
fInpuList
{
fmt
.
Println
(
"The plugin inputs available:"
)
for
k
,
_
:=
range
inputs
.
Inputs
{
fmt
.
Printf
(
" %s
\n
"
,
k
)
}
}
var
(
c
*
config
.
Config
err
error
...
...
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