在telegraf代理中,我将间隔设置为5s。但是在influxdb中,有时我看到时间戳之间的间隔很长,例如40s到50s。因此,grafana中的图形显示空白点,给用户留下了错误的印象。
下面是时间戳。请注意时差为49秒的第三行。因此,在11:52:08 AM到11:52:57 AM之间,grafana将绘制一个空白点,这就是问题所在。但是,我使用性能监视器监视了CPU指标,“空白时间”和“用户时间”之类的计数器在该空白期间确实有数据。
任何想法,我在做什么错了?
Wednesday, October 2, 2019 04:52:02 AM .... +2s
Wednesday, October 2, 2019 04:52:08 AM .... +6s
Wednesday, October 2, 2019 04:52:57 AM .... +49s
Wednesday, October 2, 2019 04:53:01 AM .... +4s
Wednesday, October 2, 2019 04:53:05 AM .... +4s
Wednesday, October 2, 2019 04:53:22 AM .... +17s
Wednesday, October 2, 2019 04:53:26 AM .... +4s
Wednesday, October 2, 2019 04:53:51 AM .... +25s
Wednesday, October 2, 2019 04:53:55 AM .... +4s
Wednesday, October 2, 2019 04:54:06 AM .... +11s
Wednesday, October 2, 2019 04:54:12 AM .... +6s
Wednesday, October 2, 2019 04:54:16 AM .... +4s
[global_tags]
domain = "$USERDOMAIN"
username = "$USERNAME"
hostname = "$COMPUTERNAME"
[agent]
interval = "5s"
round_interval = true
metric_buffer_limit = 2000
flush_buffer_when_full = true
collection_jitter = "3s"
flush_interval = "10s"
flush_jitter = "3s"
precision = "s"
debug = false
quiet = true
hostname = "$COMPUTERNAME"
# logfile = "C:\\Program Files\\Monitor.log"
[[outputs.influxdb]]
urls = ["http://primary.xxxxx.com:8686", "http://secondary.xxxxx.com:8686"]
database = "xxxx"
timeout = "5s"
user_agent = "monitor"
[[inputs.win_perf_counters]]
[[inputs.win_perf_counters.object]]
ObjectName = "Processor"
Instances = ["*"]
Counters = ["% Idle Time", "% Interrupt Time", "% Privileged Time", "% User Time", "% Processor Time", "% DPC Time",]
Measurement = "win_cpu"
IncludeTotal=true
[[inputs.win_perf_counters.object]]
ObjectName = "LogicalDisk"
Instances = ["*"]
Counters = [ "% Idle Time", "% Disk Time", "% Disk Read Time", "% Disk Write Time", "Current Disk Queue Length", "% Free Space", "Free Megabytes",]
Measurement = "win_disk"
[[inputs.win_perf_counters.object]]
ObjectName = "PhysicalDisk"
Instances = ["*"]
Counters = [ "Disk Read Bytes/sec", "Disk Write Bytes/sec", "Disk Reads/sec", "Disk Writes/sec", "% Disk Time", "% Disk Read Time", "% Disk Write Time",]
Measurement = "win_diskio"
[[inputs.win_perf_counters.object]]
ObjectName = "Network Interface"
Instances = ["*"]
Counters = [ "Bytes Received/sec", "Bytes Sent/sec", "Packets Received/sec", "Packets Sent/sec", "Packets Received Errors", "Packets Outbound Errors",]
Measurement = "win_net"
[[inputs.win_perf_counters.object]]
ObjectName = "System"
Counters = [ "Context Switches/sec", "System Calls/sec", "System Up Time",]
Instances = ["------"]
Measurement = "win_system"
[[inputs.win_perf_counters.object]]
ObjectName = "Memory"
Counters = [ "Available Bytes", "Pages/sec",]
Instances = ["------"]
Measurement = "win_mem"
[[inputs.win_perf_counters.object]]
ObjectName = "Paging File"
Counters = [ "% Usage",]
Instances = ["_Total"]
Measurement = "win_swap"
[[inputs.ping]]
urls = ["ping.xxxx.com"]
count = 1
Telegraf 1.3.6 Windows 10(64位)