Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #40 from Xaelias/master
Browse files Browse the repository at this point in the history
Adding truncate / truncate_lut metrics for namespaces and sets
  • Loading branch information
alicebob authored May 6, 2020
2 parents 210d3f7 + 8f43e13 commit 2be7cc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions namespaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ var (
// storage-engine=memory
// tomb-raider-eligible-age=86400
// tomb-raider-period=86400
// truncate_lut=0
// truncated_records=0
// write-commit-level-override=off
// xmem_id=0
counter("batch_sub_proxy_complete", "batch sub proxy complete"),
Expand Down Expand Up @@ -152,6 +150,7 @@ var (
counter("scan_udf_bg_abort", "scan udf bg abort"),
counter("scan_udf_bg_complete", "scan udf bg complete"),
counter("scan_udf_bg_error", "scan udf bg error"),
counter("truncated_records", "truncated records"),
counter("udf_sub_lang_delete_success", "udf sub lang delete success"),
counter("udf_sub_lang_error", "udf sub lang error"),
counter("udf_sub_lang_read_success", "udf sub lang read success"),
Expand Down Expand Up @@ -217,6 +216,7 @@ var (
gauge("stop_writes", "stop writes"),
gauge("stop-writes-pct", "stop writes pct"),
gauge("tombstones", "tombstones"),
gauge("truncate_lut", "The most covering truncate_lut for this namespace"),
// including additional key metrics as recommended by aerospike https://www.aerospike.com/docs/operations/monitor/key_metrics/index.html
gauge("clock_skew_stop_writes", "clock skew stop writes"),
gauge("dead_partitions", "dead partitions"),
Expand Down
3 changes: 2 additions & 1 deletion sets.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ var (
// command.
// See `asinfo -l -v sets` for the full list.
SetMetrics = []metric{
gauge("objects", "objects"),
gauge("memory_data_bytes", "memory data bytes"),
gauge("objects", "objects"),
gauge("truncate_lut", "The most covering truncate_lut for this set"),
counter("stop-writes-count", "stop writes count"),
}
)
Expand Down

0 comments on commit 2be7cc5

Please sign in to comment.