bugfix:修改telegraf outputs.kafka的时间戳以毫秒为单位

This commit is contained in:
fumingwei
2023-05-12 11:51:46 +08:00
parent 83051c3717
commit c73d03a11b
3 changed files with 3 additions and 0 deletions

View File

@@ -117,6 +117,7 @@
topic = "TRAFFIC-SHAPING-METRICS"
fielddrop = ["*pkts*max", "*bytes*max", "*session*max", "*queue*max", "*latency*sum"]
data_format = "json"
json_timestamp_units = "1ms"
json_transformation = '''
$merge([{"timestamp": timestamp}, tags, fields])
'''

View File

@@ -34,6 +34,7 @@
{% endraw %}
topic = "NETWORK-TRAFFIC-METRICS"
data_format = "json"
json_timestamp_units = "1ms"
[[inputs.socket_listener]]
service_address = "udp://:8100"
data_format = "influx"

View File

@@ -26,6 +26,7 @@
brokers = [ "{{- include "traffic-engine.config.olap-address" (list . "\",\"") }}" ]
topic = "NETWORK-TRAFFIC-METRICS"
data_format = "json"
json_timestamp_units = "1ms"
[[inputs.socket_listener]]
service_address = "udp://:8100"
data_format = "influx"