forked from samcamwilliams/HyperBEAM
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(metrics): extend hb_metrics to abstract prometheus metrics
Create hb_metrics process that abstracts metrics subsystem implementation and exposes the API for registering and interacting with metrics.
- Loading branch information
1 parent
8649c32
commit e3f7df0
Showing
4 changed files
with
653 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[ | ||
{hb, [ | ||
{metrics, [ | ||
#{ | ||
type => histogram, | ||
name => "ao_cache_write_time", | ||
description => "Histogram of write operation duration", | ||
buckets => [5, 10, 100, 500, 1000] | ||
}, | ||
#{ | ||
type => counter, | ||
name => "ao_cache_read", | ||
description => "Counts ao cache read operation" | ||
}, | ||
#{ | ||
type => counter, | ||
name => "ao_cache_write", | ||
description => "Counts ao cache write operation" | ||
}, | ||
#{ | ||
type => counter, | ||
name => "ao_cache_list", | ||
description => "Counts ao cache list operation" | ||
}, | ||
|
||
#{ | ||
type => counter, | ||
name => "ao_cache_resolve", | ||
description => "Counts ao cache resolve operation" | ||
}, | ||
|
||
#{ | ||
type => counter, | ||
name => "ao_cache_type", | ||
description => "Counts ao cache type operation" | ||
}, | ||
|
||
#{ | ||
type => counter, | ||
name => "ao_make_link", | ||
description => "Counts ao_cache ao_make_link operation" | ||
} | ||
|
||
|
||
|
||
]} | ||
]} | ||
]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.