Bcache 输入插件
此插件从 stats_total 目录和 dirty_data 文件收集 块层缓存的统计信息。
引入于: Telegraf v0.2.0 标签: system 操作系统支持: linux
全局配置选项
插件支持其他全局和插件配置设置,用于修改指标、标签和字段,创建别名以及配置插件顺序等任务。更多详情请参阅 CONFIGURATION.md。
配置
# Read metrics of bcache from stats_total and dirty_data
# This plugin ONLY supports Linux
[[inputs.bcache]]
## Bcache sets path
## If not specified, then default is:
bcachePath = "/sys/fs/bcache"
## By default, Telegraf gather stats for all bcache devices
## Setting devices will restrict the stats to the specified
## bcache devices.
bcacheDevs = ["bcache0"]Metrics
标签
backing_dev由缓存支持的设备bcache_dev用于缓存的设备
字段
dirty_data: 缓存中此 backing device 的脏数据量。与缓存集版本相比,此项会持续更新,但可能略有偏差bypassed: 绕过缓存的 IO 量(包括读取和写入)cache_bypass_hits: 旨在绕过缓存的 IO 的命中次数cache_bypass_misses: 旨在绕过缓存的 IO 的未命中次数cache_hits: bcache 看到的单个 IO 的命中次数;部分命中被计为未命中。cache_misses: bcache 看到的单个 IO 的未命中次数;部分命中被计为未命中。cache_hit_ratio: 命中与未命中之比cache_miss_collisions: 当数据本应由于未命中而插入缓存,但与写入操作发生竞争,且数据已存在的情况(通常为零,因为缓存未命中的同步机制已重写)cache_readaheads: 预读发生的次数。
示例输出
bcache,backing_dev="md10",bcache_dev="bcache0" dirty_data=11639194i,bypassed=5167704440832i,cache_bypass_hits=146270986i,cache_bypass_misses=0i,cache_hit_ratio=90i,cache_hits=511941651i,cache_miss_collisions=157678i,cache_misses=50647396i,cache_readaheads=0i此页面是否有帮助?
感谢您的反馈!
支持和反馈
感谢您成为我们社区的一员!我们欢迎并鼓励您对 Telegraf 和本文档提出反馈和 bug 报告。要获取支持,请使用以下资源
具有年度合同或支持合同的客户可以 联系 InfluxData 支持。