# Global tags can be specified here in key="value" format. [global_tags] # Configuration for telegraf agent [agent] ## Default data collection interval for all inputs interval = "30s" ## Rounds collection interval to 'interval' ## ie, if interval="10s" then always collect on :00, :10, :20, etc. round_interval = true ## Telegraf will send metrics to outputs in batches of at most ## metric_batch_size metrics. ## This controls the size of writes that Telegraf sends to output plugins. metric_batch_size = 1000 ## Maximum number of unwritten metrics per output. metric_buffer_limit = 1000 ## Collection jitter is used to jitter the collection by a random amount. ## Each plugin will sleep for a random time within jitter before collecting. ## This can be used to avoid many plugins querying things like sysfs at the ## same time, which can have a measurable effect on the system. collection_jitter = "0s" ## Default flushing interval for all outputs. Maximum flush_interval will be ## flush_interval + flush_jitter flush_interval = "10s" ## Jitter the flush interval by a random amount. This is primarily to avoid ## large write spikes for users running a large number of telegraf instances. ## ie, a jitter of 5s and interval 10s means flushes will happen every 10-15s flush_jitter = "0s" ## By default or when set to "0s", precision will be set to the same ## timestamp order as the collection interval, with the maximum being 1s. ## ie, when interval = "10s", precision will be "1s" ## when interval = "250ms", precision will be "1ms" ## Precision will NOT be used for service inputs. It is up to each individual ## service input to set the timestamp at the appropriate precision. ## Valid time units are "ns", "us" (or "µs"), "ms", "s". precision = "" ## Log at debug level. ##debug = true ## Log only error level messages. ## quiet = false ## Log file name, the empty string means to log to stderr. # logfile = "" ## The logfile will be rotated after the time interval specified. When set ## to 0 no time based rotation is performed. # logfile_rotation_interval = "0d" ## The logfile will be rotated when it becomes larger than the specified ## size. When set to 0 no size based rotation is performed. # logfile_rotation_max_size = "0MB" ## Maximum number of rotated archives to keep, any older logs are deleted. ## If set to -1, no archives are removed. # logfile_rotation_max_archives = 5 ## Override default hostname, if empty use os.Hostname() hostname = "" ## If set to true, do no set the "host" tag in the telegraf agent. omit_hostname = false ############################################################################### # OUTPUT PLUGINS # ############################################################################### # Configuration for sending metrics to InfluxDB [[outputs.influxdb]] ## The full HTTP or UDP URL for your InfluxDB instance. urls = ["http://127.0.0.1:8086"] ## The target database for metrics; will be created as needed. ## For UDP url endpoint database needs to be configured on server side. database = "solar" ## The value of this tag will be used to determine the database. If this ## tag is not set the 'database' option is used as the default. # database_tag = "" ## If true, no CREATE DATABASE queries will be sent. Set to true when using ## Telegraf with a user without permissions to create databases or when the ## database already exists. skip_database_creation = false ## Name of existing retention policy to write to. Empty string writes to ## the default retention policy. Only takes effect when using HTTP. # retention_policy = "" ## Write consistency (clusters only), can be: "any", "one", "quorum", "all". ## Only takes effect when using HTTP. # write_consistency = "any" ## Timeout for HTTP messages. # timeout = "5s" ## HTTP Basic Auth username = "admin" password = "thief64" ## HTTP User-Agent user_agent = "telegraf" ## UDP payload size is the maximum packet size to send. # udp_payload = "512B" ## Optional TLS Config for use on HTTP connections. # 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 ## HTTP Proxy override, if unset values the standard proxy environment ## variables are consulted to determine which proxy, if any, should be used. # http_proxy = "http://corporate.proxy:3128" ## Additional HTTP headers # http_headers = {"X-Special-Header" = "Special-Value"} ## HTTP Content-Encoding for write request body, can be set to "gzip" to ## compress body or "identity" to apply no encoding. # content_encoding = "identity" ## When true, Telegraf will output unsigned integers as unsigned values, ## i.e.: "42u". You will need a version of InfluxDB supporting unsigned ## integer values. Enabling this option will result in field type errors if ## existing data has been written. # influx_uint_support = false [[inputs.modbus]] # TCP type = "TCP" controller="192.168.178.165" port = 1502 slaveId = 71 timeout = 5 name_override = "Solar" [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "PV LeistungW" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 100, 101 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "State of energy manager W" order ="CDAB" datatype = "UINT32" scale = "" address = [ 104, 105 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Hausverbrauch aus Batterie W" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 106, 107 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Hausverbrauch aus Netz W" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 108, 109 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Gesamtverbrauch aus Batterie Wh" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 110, 111 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Gesamtverbrauch aus Netz Wh" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 112, 113 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Gesamtverbrauch PV Wh" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 114, 115 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Hausverbrauch aus PV W" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 116, 117 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Gesamtverbrauch Wh" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 118, 119 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Anteil Eigenverbrauch %" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 124, 125 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Worktime" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 144, 145 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Current cos phi" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 150, 151 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Grid frequency" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 152, 153 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Strom Phase 1 A" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 154, 155 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Leistung Phase 1 W" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 156, 157 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Spannung Phase 1 V" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 158, 159 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Strom Phase 2 A" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 160, 161 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Leistung Phase 2 W" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 162, 163 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Spannung Phase 2 V" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 164, 165 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Strom Phase 3 A" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 166, 167 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Leistung Phase 3 W" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 168, 169 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Spannung Phase 3 V" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 170, 171 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Gesamtleistung AC W" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 172, 173 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Gesamtblindleistung AC Var" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 174, 175 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Gesamtscheinleistung AC VA" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 178, 179 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Batterie laden A" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 190, 191 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Anzahl Batteriezyklen" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 194, 195 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Batteriestrom A" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 200, 201 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "PSSB fuse state" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 202, 203 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Battery ready flag" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 208, 209 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Current state of charge" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 210, 211 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Batterie temperatur C" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 214, 215 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Batteriespannung V" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 216, 217 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Cos phi (powermeter)" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 218, 219 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Frequency (powermeter)" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 220, 221 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Current phase 1 (powermeter)" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 222, 223 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Active power phase 1 (powermeter)" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 224, 225 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Reactive power phase 1 (powermeter)" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 226, 227 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Apparent power phase 1 (powermeter)" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 228, 229 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Voltage phase 1 (powermeter)" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 230, 231 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Current phase 2 (powermeter)" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 232, 233 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Active power phase 2 (powermeter)" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 234, 235 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Reactive power phase 2 (powermeter)" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 236, 237 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Apparent power phase 2 (powermeter)" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 238, 239 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Voltage phase 2 (powermeter)" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 240, 241 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Current phase 3 (powermeter)" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 242, 243 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Active power phase 3 (powermeter)" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 244, 245 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Reactive power phase 3 (powermeter)" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 246, 247 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Apparent power phase 3 (powermeter)" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 248, 249 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Voltage phase 3 (powermeter)" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 250, 251 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Gesamtleistung (powermeter) W" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 252, 253 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Gesamtblindleistung (powermeter) Var" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 254, 255 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Gesamtscheinleistung (powermeter) VA" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 256, 257 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Strom Strang1 A" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 258, 259 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Leistung Strang 1 W" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 260, 261 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Spannung Strang 1 V" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 266, 267 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Strom Strang 2 A" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 268, 269 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Leistung Strang 2 W" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 270, 271 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Spannung Strang 2 V" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 276, 277 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Strom Strang 3 A" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 278, 279 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Leistung Strang 3" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 280, 281 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Spannung Strang 3" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 286, 287 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Gesamtertrag Wh" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 320, 321 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Tagesertrag Wh" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 322, 323 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Jahresertrag Wh" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 324, 325 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Monatsertrag Wh" order ="CDAB" datatype = "FLOAT32-IEEE" scale = "" address = [ 326, 327 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Batteriebruttokapazität Ah" order ="ABCD" datatype = "UINT32" scale = "" address = [ 512, 513 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Battery current SOC" order ="AB" datatype = "UINT16" scale = "" address = [ 514 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Kapazität Wh" order ="ABCD" datatype = "UINT32" scale = "" address = [ 529, 530 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Inverter Max Power" order ="AB" datatype = "UINT16" scale = "" address = [ 531 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Inverter Generation Power (current)" order ="AB" datatype = "INT16" scale = "" address = [ 575 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Generation Energy" order ="ABCD" datatype = "UINT32" scale = "" address = [ 577, 578 ] [[inputs.modbus.Registers.HoldingRegisters.Tags]] name = "Aktuelle Batterieladung +- W" order ="AB" datatype = "INT16" scale = "" address = [ 582 ]