Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix
strategy:
matrix:
otp: [26, 27]
otp: [26, 27, 28]
os: [ubuntu-latest]

steps:
Expand All @@ -34,8 +34,5 @@ jobs:
- name: DIALYZE
run: make dialyze

- name: UNIT TEST
run: make eunit

- name: INTEGRATION TEST
run: make ct
2 changes: 1 addition & 1 deletion LICENSE-APACHE2
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2007-2023 Broadcom. All Rights Reserved. The term Broadcom refers to Broadcom Inc. and/or its subsidiaries.
Copyright 2007-2025 Broadcom. All Rights Reserved. The term Broadcom refers to Broadcom Inc. and/or its subsidiaries.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
9 changes: 4 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,18 @@ PROJECT = seshat
PROJECT_DESCRIPTION = Metrics library built for RabbitMQ, with a Prometheus exposition format built-in
PROJECT_VERSION = 0.6.1

dep_cth_styledout = git https://github.com/rabbitmq/cth_styledout.git master
TEST_DEPS = cth_styledout
CT_OPTS = -ct_hooks cth_styledout

define PROJECT_ENV
[
]
endef

LOCAL_DEPS = sasl crypto

# TEST_DEPS=eunit_formatters
TEST_DEPS=eunit_formatters

# PLT_APPS += eunit syntax_tools erts kernel stdlib common_test inets ssh ssl meck gen_batch_server inet_tcp_proxy

PLT_APPS += eunit
DIALYZER_OPTS += --src -r test
EUNIT_OPTS = no_tty, {report, {eunit_progress, [colored, profile]}}
include $(if $(ERLANG_MK_FILENAME),$(ERLANG_MK_FILENAME),erlang.mk)
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ counters:add(CountersRef, ?C_CARROTS_EATEN, 3),
```
To inspect the counters on the system for a given group do:
```erlang
Overview = seshat:overview(pets),
Counters = seshat:counters(pets),
```
Overview is a map of `#{Name => #{FieldName, Count}}`. E.g. for the above
Counters is a map of `#{Name => #{FieldName, Count}}`. E.g. for the above
it would look like:
```erlang
#{rabbit => #{carrots_eaten_total => 3, holes_dug_total => 0}}
Expand All @@ -66,12 +66,12 @@ There is also `seshat:format(Groups)` which for the above case will return:
values => #{rabbit => 0}}}
```


This format uses the counter `Name` as a unique value label for the metrics.
This formatting is more suitable for e.g. prometheus export. The counter name
doesn't have to be an atom. It can also be a list of two-tuples or
a pre-formatted binary.

`seshat:format/2` allows additional formatting options.

## Copyright and License

Expand Down
Loading