forked from samcamwilliams/HyperBEAM
-
Notifications
You must be signed in to change notification settings - Fork 5
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 173838a
Showing
7 changed files
with
774 additions
and
148 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 |
---|---|---|
@@ -1,23 +1,3 @@ | ||
<img src="https://arweave.net/dOpRkKrNNQ4HHebxZlPCo0BWfrjwJ-CEBQs2EPgrwbg" /> | ||
|
||
Soon. | ||
|
||
<!-- toc --> | ||
|
||
- [Development](#development) | ||
|
||
<!-- tocstop --> | ||
|
||
## Development | ||
|
||
Environment Setup TBD | ||
|
||
This repo uses `npm` and `node` to install and execute top level, repo-wide, tooling. So first, you should run `npm i` | ||
at the root to install those dependencies. This will set up git hooks that will help ensure you're following some of the | ||
guidelines outlined in this document: | ||
|
||
- All Erlang files are formatted using [`erlfmt`](https://github.com/WhatsApp/erlfmt) | ||
- All Commit Messages follow our [Conventional Commits Config](https://www.conventionalcommits.org/en/v1.0.0/) | ||
- All Markdown files should contain a Table of Contents | ||
|
||
Once you've install the top level tooling, each of these conventions are enforced, via git a commit hook, automatically. |
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
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.