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
0cfa0d41
Commit
0cfa0d41
authored
8 years ago
by
Cameron Sparr
Browse files
Options
Downloads
Patches
Plain Diff
udp_listener & tcp_listener set default values
closes #1936
parent
522658bd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
plugins/inputs/tcp_listener/tcp_listener.go
+8
-4
8 additions, 4 deletions
plugins/inputs/tcp_listener/tcp_listener.go
plugins/inputs/udp_listener/udp_listener.go
+6
-3
6 additions, 3 deletions
plugins/inputs/udp_listener/udp_listener.go
with
15 additions
and
7 deletions
CHANGELOG.md
+
1
−
0
View file @
0cfa0d41
...
...
@@ -44,6 +44,7 @@ continue sending logs to /var/log/telegraf/telegraf.log.
### Bugfixes
-
[
#1955
](
https://github.com/influxdata/telegraf/issues/1955
)
: Fix NATS plug-ins reconnection logic.
-
[
#1936
](
https://github.com/influxdata/telegraf/issues/1936
)
: Set required default values in udp_listener & tcp_listener.
-
[
#1926
](
https://github.com/influxdata/telegraf/issues/1926
)
: Fix toml unmarshal panic in Duration objects.
-
[
#1746
](
https://github.com/influxdata/telegraf/issues/1746
)
: Fix handling of non-string values for JSON keys listed in tag_keys.
-
[
#1628
](
https://github.com/influxdata/telegraf/issues/1628
)
: Fix mongodb input panic on version 2.2.
...
...
This diff is collapsed.
Click to expand it.
plugins/inputs/tcp_listener/tcp_listener.go
+
8
−
4
View file @
0cfa0d41
...
...
@@ -52,14 +52,14 @@ var malformedwarn = "E! tcp_listener has received %d malformed packets" +
const
sampleConfig
=
`
## Address and port to host TCP listener on
service_address = ":8094"
#
service_address = ":8094"
## Number of TCP messages allowed to queue up. Once filled, the
## TCP listener will start dropping packets.
allowed_pending_messages = 10000
#
allowed_pending_messages = 10000
## Maximum number of concurrent TCP connections to allow
max_tcp_connections = 250
#
max_tcp_connections = 250
## Data format to consume.
## Each data format has it's own unique set of configuration options, read
...
...
@@ -276,6 +276,10 @@ func (t *TcpListener) remember(id string, conn *net.TCPConn) {
func
init
()
{
inputs
.
Add
(
"tcp_listener"
,
func
()
telegraf
.
Input
{
return
&
TcpListener
{}
return
&
TcpListener
{
ServiceAddress
:
":8094"
,
AllowedPendingMessages
:
10000
,
MaxTCPConnections
:
250
,
}
})
}
This diff is collapsed.
Click to expand it.
plugins/inputs/udp_listener/udp_listener.go
+
6
−
3
View file @
0cfa0d41
...
...
@@ -51,11 +51,11 @@ var malformedwarn = "E! udp_listener has received %d malformed packets" +
const
sampleConfig
=
`
## Address and port to host UDP listener on
service_address = ":8092"
#
service_address = ":8092"
## Number of UDP messages allowed to queue up. Once filled, the
## UDP listener will start dropping packets.
allowed_pending_messages = 10000
#
allowed_pending_messages = 10000
## Data format to consume.
## Each data format has it's own unique set of configuration options, read
...
...
@@ -178,6 +178,9 @@ func (u *UdpListener) udpParser() error {
func
init
()
{
inputs
.
Add
(
"udp_listener"
,
func
()
telegraf
.
Input
{
return
&
UdpListener
{}
return
&
UdpListener
{
ServiceAddress
:
":8092"
,
AllowedPendingMessages
:
10000
,
}
})
}
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