diff --git a/ansible/roles/telegraf_statistic/templates/telegraf_shaping.conf.j2.j2 b/ansible/roles/telegraf_statistic/templates/telegraf_shaping.conf.j2.j2 index f9187091..e40533d5 100644 --- a/ansible/roles/telegraf_statistic/templates/telegraf_shaping.conf.j2.j2 +++ b/ansible/roles/telegraf_statistic/templates/telegraf_shaping.conf.j2.j2 @@ -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]) ''' diff --git a/ansible/roles/telegraf_statistic/templates/telegraf_statistic.conf.j2.j2 b/ansible/roles/telegraf_statistic/templates/telegraf_statistic.conf.j2.j2 index 7f411f09..7b83888b 100644 --- a/ansible/roles/telegraf_statistic/templates/telegraf_statistic.conf.j2.j2 +++ b/ansible/roles/telegraf_statistic/templates/telegraf_statistic.conf.j2.j2 @@ -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" \ No newline at end of file diff --git a/ansible/roles/traffic-engine/files/helm/conf/telegraf_statistic.conf b/ansible/roles/traffic-engine/files/helm/conf/telegraf_statistic.conf index 590aa12d..1f115b28 100644 --- a/ansible/roles/traffic-engine/files/helm/conf/telegraf_statistic.conf +++ b/ansible/roles/traffic-engine/files/helm/conf/telegraf_statistic.conf @@ -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"