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 #27 from Xaelias/master
Browse files Browse the repository at this point in the history
EE] Add metrics for primary index on flash
  • Loading branch information
Harmen authored Mar 13, 2019
2 parents 7c5b788 + 73247b4 commit 5a403ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func counter(name string, desc string) metric {

// promkey makes the prom metric name out of an aerospike stat name
func promkey(sys, key string) string {
k := strings.Replace(key, "-", "_", -1)
replacer := strings.NewReplacer("-", "_", ".", "_")
k := replacer.Replace(key)
return namespace + "_" + sys + "_" + k
}
4 changes: 4 additions & 0 deletions namespaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@ var (
gauge("n_nodes_quiesced", "n nodes quiesced"),
gauge("effective_is_quiesced", "effective is quiesced"),
gauge("pending_quiesce", "pending quiesce"),
gauge("index-type.mounts-high-water-pct", "index type mounts high water pct"),
gauge("index-type.mounts-size-limit", "index type mounts size limit"),
gauge("index_flash_used_bytes", "index flash used bytes"),
gauge("index_flash_used_pct", "index flash used pct"),
}
)

Expand Down

0 comments on commit 5a403ab

Please sign in to comment.