False highs in Grafana causing false warnings

I set up an alert in Grafana yesterday and receive two server alerts. These are always the same two servers that received a high IO, a high processor, or something else.

The fact is that they do not have such high data. In fact, they are almost messing around. All servers are configured exactly the same through Ansible. Thus, the configuration of Telegraf on all servers is the same.

Also, if I filter statistics in Grafana on the corresponding server, the data displayed on the graph is correct, as you can see in the screenshot below. Nevertheless, checking the correctness of the results leads to a false positive.

Screenshot of Grafan Graf Server with the correct data and

I checked vmstat, which also displays the correct information:

procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 1  0  47100 151152  20948 454556    2    2    16    38    2    1  2  1 96  0  1
 0  0  47100 151136  20948 454592    0    0     0     0  125  135  0  1 96  0  2
 0  0  47100 150408  20956 454584    0    0     0    84  222  282  1  3 93  0  4
 0  0  47100 150424  20956 454592    0    0     0     0  151  225  0  0 97  0  2
 0  0  47100 150424  20956 454592    0    0     0     0  115  140  0  0 96  0  4
 0  0  47100 150424  20956 454592    0    0     0     0  109  125  0  0 97  0  2
 0  0  47100 150424  20956 454592    0    0     0     0  121  131  0  0 98  0  2
 0  0  47100 150412  20972 454576    0    0     0    92  139  208  0  1 96  0  3
 0  0  47100 150456  20972 454592    0    0     0     0   65  117  0  0 99  0  1
 0  0  47100 150876  20972 454592    0    0     0    16  692  705  2  4 88  0  5

And telegraf.logif something is wrong.

2017-07-07T09:22:04Z I! Starting Telegraf (version 1.3.3)
2017-07-07T09:22:04Z I! Loaded outputs: influxdb
2017-07-07T09:22:04Z I! Loaded inputs: inputs.diskio inputs.processes inputs.swap inputs.system inputs.redis inputs.disk inputs.kernel inputs.mem inputs.net inputs.nginx inputs.postgresql inputs.cpu
2017-07-07T09:22:04Z I! Tags enabled: environment=production host=om-1-prod rails_env=production role=telegraf
2017-07-07T09:22:04Z I! Agent Config: Interval:10s, Quiet:false, Hostname:"om-1-prod", Flush Interval:10s

- ?

+4
1

.

, , Grafana. , , 40 ips. , .

: Grafana, Telegraf InfluxDB. .

0

Source: https://habr.com/ru/post/1680776/


All Articles