Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
ZTB_LAB2020
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Robert Piotrowski
ZTB_LAB2020
Commits
f102f4ee
Commit
f102f4ee
authored
4 years ago
by
TD
Browse files
Options
Downloads
Patches
Plain Diff
update telegraf.conf
parent
32181bda
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lab02/telegraf.conf
+43
-43
43 additions, 43 deletions
lab02/telegraf.conf
with
43 additions
and
43 deletions
lab02/telegraf.conf
+
43
−
43
View file @
f102f4ee
...
@@ -176,46 +176,46 @@ token= "-Ukwi22XhqPYvXJQibqyOZhT4CDwwg5P3q874lAXTHG7BfOPnomUAFOf66mSTf6r5iaozF2d
...
@@ -176,46 +176,46 @@ token= "-Ukwi22XhqPYvXJQibqyOZhT4CDwwg5P3q874lAXTHG7BfOPnomUAFOf66mSTf6r5iaozF2d
conversion
=
"float(3)"
conversion
=
"float(3)"
[[
inputs
.
mqtt_consumer
]]
#
[[inputs.mqtt_consumer]]
# MQTT broker URLs to be used. The format should be scheme://host:port,
#
# MQTT broker URLs to be used. The format should be scheme://host:port,
# schema can be tcp, ssl, or ws.
#
# schema can be tcp, ssl, or ws.
servers
= [
"tcp://172.17.0.1:1883"
]
#
servers = ["tcp://172.17.0.1:1883"]
# Topics that will be subscribed to.
#
# Topics that will be subscribed to.
topics
= [
#
topics = [
"sensors/#"
#
"sensors/#"
]
#
]
## The message topic will be stored in a tag specified by this value. If set
#
## The message topic will be stored in a tag specified by this value. If set
## to the empty string no topic tag will be created.
#
## to the empty string no topic tag will be created.
topic_tag
=
"topic"
#
topic_tag = "topic"
## QoS policy for messages
#
## QoS policy for messages
## 0 = at most once
#
## 0 = at most once
## 1 = at least once
#
## 1 = at least once
## 2 = exactly once
#
## 2 = exactly once
##
#
##
qos
=
0
#
qos = 0
## Connection timeout for initial connection in seconds
#
## Connection timeout for initial connection in seconds
connection_timeout
=
"30s"
#
connection_timeout = "30s"
## Maximum messages to read from the broker that have not been written by an
#
## Maximum messages to read from the broker that have not been written by an
## output. For best throughput set based on the number of metrics within
#
## output. For best throughput set based on the number of metrics within
## each message and the size of the output's metric_batch_size.
#
## each message and the size of the output's metric_batch_size.
##
#
##
## For example, if each message from the queue contains 10 metrics and the
#
## For example, if each message from the queue contains 10 metrics and the
## output metric_batch_size is 1000, setting this to 100 will ensure that a
#
## output metric_batch_size is 1000, setting this to 100 will ensure that a
## full batch is collected and the write is triggered immediately without
#
## full batch is collected and the write is triggered immediately without
## waiting until the next flush_interval.
#
## waiting until the next flush_interval.
max_undelivered_messages
=
1000
#
max_undelivered_messages = 1000
## Persistent session disables clearing of the client session on connection.
#
## Persistent session disables clearing of the client session on connection.
## In order for this option to work you must also set client_id to identify
#
## In order for this option to work you must also set client_id to identify
## the client. To receive messages that arrived while the client is offline,
#
## the client. To receive messages that arrived while the client is offline,
## also set the qos option to 1 or 2 and don't forget to also set the QoS when
#
## also set the qos option to 1 or 2 and don't forget to also set the QoS when
## publishing.
#
## publishing.
persistent_session
=
false
#
persistent_session = false
## Data format to consume.
#
## Data format to consume.
## Each data format has its own unique set of configuration options, read
#
## Each data format has its own unique set of configuration options, read
## more about them here:
#
## more about them here:
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
#
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
data_format
=
"value"
#
data_format = "value"
# Print all metrics that pass through this filter.
#
# Print all metrics that pass through this filter.
[[
processors
.
printer
]]
#
[[processors.printer]]
This diff is collapsed.
Click to expand it.
Preview
0%
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