sensu-plugins / sensu-plugins-zfs

Sensu ZFS Plugin
http://sensu-plugins.io
MIT License
3 stars 12 forks source link

Aggregate zfs arc metrics #20

Closed phumpal closed 5 years ago

phumpal commented 5 years ago

Pull Request Checklist

Is this in reference to an existing issue?

General

New Plugins

Purpose

Known Compatibility Issues

phumpal commented 5 years ago

Here is test output

test-postgres-shard-1.zfs.hits 2868822954 1556825272
test-postgres-shard-1.zfs.misses 44810328 1556825272
test-postgres-shard-1.zfs.demand_data_hits 2022617314 1556825272
test-postgres-shard-1.zfs.demand_data_misses 15428289 1556825272
test-postgres-shard-1.zfs.demand_metadata_hits 744720363 1556825272
test-postgres-shard-1.zfs.demand_metadata_misses 5353143 1556825272
test-postgres-shard-1.zfs.prefetch_data_hits 101268309 1556825272
test-postgres-shard-1.zfs.prefetch_data_misses 23895086 1556825272
test-postgres-shard-1.zfs.prefetch_metadata_hits 216968 1556825272
test-postgres-shard-1.zfs.prefetch_metadata_misses 133810 1556825272
test-postgres-shard-1.zfs.mru_hits 149078437 1556825272
test-postgres-shard-1.zfs.mru_ghost_hits 16441558 1556825272
test-postgres-shard-1.zfs.mfu_hits 2714358035 1556825272
test-postgres-shard-1.zfs.mfu_ghost_hits 1410912 1556825272
test-postgres-shard-1.zfs.deleted 20600397 1556825272
test-postgres-shard-1.zfs.mutex_miss 5235 1556825272
test-postgres-shard-1.zfs.access_skip 255 1556825272
test-postgres-shard-1.zfs.evict_skip 28643285 1556825272
test-postgres-shard-1.zfs.evict_not_enough 319388 1556825272
test-postgres-shard-1.zfs.evict_l2_cached 0 1556825272
test-postgres-shard-1.zfs.evict_l2_eligible 4608187704320 1556825272
test-postgres-shard-1.zfs.evict_l2_ineligible 304165767168 1556825272
test-postgres-shard-1.zfs.evict_l2_skip 0 1556825272
test-postgres-shard-1.zfs.hash_elements 220775 1556825272
test-postgres-shard-1.zfs.hash_elements_max 307602 1556825272
test-postgres-shard-1.zfs.hash_collisions 15990391 1556825272
test-postgres-shard-1.zfs.hash_chains 20222 1556825272
test-postgres-shard-1.zfs.hash_chain_max 6 1556825272
test-postgres-shard-1.zfs.p 111204327 1556825272
test-postgres-shard-1.zfs.c 6204160216 1556825272
test-postgres-shard-1.zfs.c_min 5603590144 1556825272
test-postgres-shard-1.zfs.c_max 6225395712 1556825272
test-postgres-shard-1.zfs.size 6138277088 1556825272
test-postgres-shard-1.zfs.compressed_size 5918885376 1556825272
test-postgres-shard-1.zfs.uncompressed_size 21761900032 1556825272
test-postgres-shard-1.zfs.overhead_size 129624576 1556825272
test-postgres-shard-1.zfs.hdr_size 72590784 1556825272
test-postgres-shard-1.zfs.data_size 5990874624 1556825272
test-postgres-shard-1.zfs.metadata_size 57635328 1556825272
test-postgres-shard-1.zfs.dbuf_size 3177712 1556825272
test-postgres-shard-1.zfs.dnode_size 11355120 1556825272
test-postgres-shard-1.zfs.bonus_size 2643520 1556825272
test-postgres-shard-1.zfs.anon_size 385024 1556825272
test-postgres-shard-1.zfs.anon_evictable_data 0 1556825272
test-postgres-shard-1.zfs.anon_evictable_metadata 0 1556825272
test-postgres-shard-1.zfs.mru_size 89333760 1556825272
test-postgres-shard-1.zfs.mru_evictable_data 49427456 1556825272
test-postgres-shard-1.zfs.mru_evictable_metadata 1568768 1556825272
test-postgres-shard-1.zfs.mru_ghost_size 4904359936 1556825272
test-postgres-shard-1.zfs.mru_ghost_evictable_data 4755972096 1556825272
test-postgres-shard-1.zfs.mru_ghost_evictable_metadata 148387840 1556825272
test-postgres-shard-1.zfs.mfu_size 5958791168 1556825272
test-postgres-shard-1.zfs.mfu_evictable_data 5809313280 1556825272
test-postgres-shard-1.zfs.mfu_evictable_metadata 8697856 1556825272
test-postgres-shard-1.zfs.mfu_ghost_size 860292608 1556825272
test-postgres-shard-1.zfs.mfu_ghost_evictable_data 821182464 1556825272
test-postgres-shard-1.zfs.mfu_ghost_evictable_metadata 39110144 1556825272
test-postgres-shard-1.zfs.l2_hits 0 1556825272
test-postgres-shard-1.zfs.l2_misses 0 1556825272
test-postgres-shard-1.zfs.l2_feeds 0 1556825272
test-postgres-shard-1.zfs.l2_rw_clash 0 1556825272
test-postgres-shard-1.zfs.l2_read_bytes 0 1556825272
test-postgres-shard-1.zfs.l2_write_bytes 0 1556825272
test-postgres-shard-1.zfs.l2_writes_sent 0 1556825272
test-postgres-shard-1.zfs.l2_writes_done 0 1556825272
test-postgres-shard-1.zfs.l2_writes_error 0 1556825272
test-postgres-shard-1.zfs.l2_writes_lock_retry 0 1556825272
test-postgres-shard-1.zfs.l2_evict_lock_retry 0 1556825272
test-postgres-shard-1.zfs.l2_evict_reading 0 1556825272
test-postgres-shard-1.zfs.l2_evict_l1cached 0 1556825272
test-postgres-shard-1.zfs.l2_free_on_write 0 1556825272
test-postgres-shard-1.zfs.l2_abort_lowmem 0 1556825272
test-postgres-shard-1.zfs.l2_cksum_bad 0 1556825272
test-postgres-shard-1.zfs.l2_io_error 0 1556825272
test-postgres-shard-1.zfs.l2_size 0 1556825272
test-postgres-shard-1.zfs.l2_asize 0 1556825272
test-postgres-shard-1.zfs.l2_hdr_size 0 1556825272
test-postgres-shard-1.zfs.memory_throttle_count 0 1556825272
test-postgres-shard-1.zfs.memory_direct_count 159 1556825272
test-postgres-shard-1.zfs.memory_indirect_count 491169 1556825272
test-postgres-shard-1.zfs.memory_all_bytes 8054489088 1556825272
test-postgres-shard-1.zfs.memory_free_bytes 652189696 1556825272
test-postgres-shard-1.zfs.memory_available_bytes 526340096 1556825272
test-postgres-shard-1.zfs.arc_no_grow 0 1556825272
test-postgres-shard-1.zfs.arc_tempreserve 0 1556825272
test-postgres-shard-1.zfs.arc_loaned_bytes 0 1556825272
test-postgres-shard-1.zfs.arc_prune 0 1556825272
test-postgres-shard-1.zfs.arc_meta_used 147402464 1556825272
test-postgres-shard-1.zfs.arc_meta_limit 4669046784 1556825272
test-postgres-shard-1.zfs.arc_dnode_limit 466904678 1556825272
test-postgres-shard-1.zfs.arc_meta_max 250639640 1556825272
test-postgres-shard-1.zfs.arc_meta_min 16777216 1556825272
test-postgres-shard-1.zfs.sync_wait_for_async 126963 1556825272
test-postgres-shard-1.zfs.demand_hit_predictive_prefetch 20935888 1556825272
test-postgres-shard-1.zfs.arc_need_free 0 1556825272
test-postgres-shard-1.zfs.arc_sys_free 125851392 1556825272
phumpal commented 5 years ago

I think permissions on the script may need to be different.

cc @majormoses PTAL when you have a moment.

phumpal commented 5 years ago

What do you mean? As in do you need to be sudo to execute this? If not I think the permissions look good to me.

Nevermind.

Must've been my mind playing tricks on me. I'm almost certain they were different last I checked.

blacksails commented 5 years ago

A description of the metric script in the readme would also be great :)

phumpal commented 5 years ago

@blacksails sounds good. I'll do that in the morning when my head is clear.

Thanks for the suggestion! 👍

phumpal commented 5 years ago

README has been updated. Let me know if there's any other changes and I'll squash and rebase before release.

phumpal commented 5 years ago

Gentle ping @majormoses

majormoses commented 5 years ago

released: https://rubygems.org/gems/sensu-plugins-zfs/versions/2.1.0

phumpal commented 5 years ago

Thanks!