zabbix table -- History and Trends

These two terms can cause some confusion, but their understanding is crucial for small and medium environments.

History

All collected data, doesn’t matter what type, will be stored on history tables.

Trends

Trends basically are the collected data (only numeric) consolidated by hour. Zabbix Server hourly takes all values from history tables and calculates minimum, average and maximum for one hour period.

Note: string items, like character, log and text, doesn’t have trends

Housekeeper

Both data still remains on database until Housekeeper from Zabbix Server deletes it based on Keep historyand Keep trends configurations:

Item History Configuration

So if you have an item with 60 seconds Update interval and 7 days for Keep history it will generates (60*24*7) 10080 rows per-item on history table.

For trend table, with 730 days configuration, it will generates (730*24*7) 17520 rows per-item.

Database tables for history/trends and theirs item type:

  • history – numeric (float)
  • history_uint – numeric (unsigned integers)
  • history_str – character (up to 255 bytes)
  • history_log – log
  • history_text – text
  • trends – numeric (float)
  • trends_uint – numeric (unsigned integers)

If you have a large environment, I recommend you to disable housekeeping, the explanation in this post.

Recommendations

  1. Consider not more than 7 days for history (3 days for medium environments)
  2. Avoid intervals less than 60 seconds
  3. Keep your eyes on disksize from history/trend tables
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值