Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-warpzone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Show more breadcrumbs
specki
ansible-warpzone
Commits
d486ad2a
Commit
d486ad2a
authored
2 years ago
by
void
Browse files
Options
Downloads
Patches
Plain Diff
wert konvertierungen
parent
4398fe0f
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
intern/docker_mqtt/templates/telegraf.conf
+28
-68
28 additions, 68 deletions
intern/docker_mqtt/templates/telegraf.conf
with
28 additions
and
68 deletions
intern/docker_mqtt/templates/telegraf.conf
+
28
−
68
View file @
d486ad2a
...
@@ -159,79 +159,39 @@
...
@@ -159,79 +159,39 @@
# INPUT PLUGINS #
# INPUT PLUGINS #
###############################################################################
###############################################################################
# # Read metrics from MQTT topic(s)
[[
inputs
.
mqtt_consumer
]]
[[
inputs
.
mqtt_consumer
]]
# ## Broker URLs for the MQTT server or cluster. To connect to multiple
# ## clusters or standalone servers, use a seperate plugin instance.
# ## example: servers = ["tcp://localhost:1883"]
# ## servers = ["ssl://localhost:1883"]
# ## servers = ["ws://localhost:1883"]
servers
= [
"tcp://app:1883"
]
servers
= [
"tcp://app:1883"
]
#
# ## Topics that will be subscribed to.
# topics = [
# "telegraf/host01/cpu",
# "telegraf/+/mem",
# "sensors/#",
# ]
topics
= [
topics
= [
"warpzone/door/status"
,
"ESPHome/+/sensor/+/state"
,
"ESPHome/+/sensor/+/state"
,
"ESPHome/+/binary_sensor/+/state"
]
]
# ## The message topic will be stored in a tag specified by this value. If set
# https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
# ## to the empty string no topic tag will be created.
# # topic_tag = "topic"
#
# ## QoS policy for messages
# ## 0 = at most once
# ## 1 = at least once
# ## 2 = exactly once
# ##
# ## When using a QoS of 1 or 2, you should enable persistent_session to allow
# ## resuming unacknowledged messages.
# # qos = 0
#
# ## Connection timeout for initial connection in seconds
# # connection_timeout = "30s"
#
# ## 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
# ## 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
# ## 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
# ## waiting until the next flush_interval.
# # max_undelivered_messages = 1000
#
# ## 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
# ## 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
# ## publishing.
# # persistent_session = false
#
# ## If unset, a random client ID will be generated.
# # client_id = ""
client_id
=
"telegraf"
#
# ## Username and password to connect MQTT server.
# # username = "telegraf"
# # password = "metricsmetricsmetricsmetrics"
#
# ## Optional TLS Config
# # tls_ca = "/etc/telegraf/ca.pem"
# # tls_cert = "/etc/telegraf/cert.pem"
# # tls_key = "/etc/telegraf/key.pem"
# ## Use TLS but skip chain & host verification
# # insecure_skip_verify = false
#
# ## Data format to consume.
# ## Each data format has its own unique set of configuration options, read
# ## more about them here:
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
# data_format = "influx"
data_format
=
"value"
data_format
=
"value"
data_type
=
"float"
data_type
=
"string"
# https://github.com/influxdata/telegraf/blob/master/plugins/processors/enum/README.md
[[
processors
.
enum
]]
[[
processors
.
enum
.
mapping
]]
field
=
"value"
default
=
0
[
processors
.
enum
.
mapping
.
value_mappings
]
true
=
1
True
=
1
ON
=
1
OFF
=
1
OPEN
=
1
# https://github.com/influxdata/telegraf/blob/master/plugins/processors/converter/README.md
[[
processors
.
converter
]]
order
=
2
[
processors
.
converter
.
fields
]
float
= [
"value"
]
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