Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Add metrics documentation (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgfn authored Aug 17, 2023
1 parent 0125bd1 commit 27c1acc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/metrics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Metrics

Jellyfish exports several metrics in the Prometheus format. They are available on port `9568` at `/metrics`.

| Name | Labels | Description |
| ------------------------------------------------------- | --------- | ------------------------------------------------- |
| `jellyfish_traffic_ingress_total_bytes` | | Total traffic received |
| `jellyfish_traffic_ingress_throughput_bytes_per_second` | | Current throughput for received traffic |
| `jellyfish_traffic_egress_total_bytes` | | Total traffic sent |
| `jellyfish_traffic_egress_throughput_bytes_per_second` | | Current throughput for sent traffic |
| `jellyfish_rooms` | | Amount of rooms currently present in Jellyfish |
| `jellyfish_room_peers` | `room_id` | Amount of peers currently present in a given room |
| `jellyfish_room_peer_time_total_seconds` | `room_id` | Total peer time accumulated for a given room |

The default metrics from Phoenix and Erlang VM are exported as well.
For description of these metrics, refer [here (Phoenix)](https://hexdocs.pm/phoenix/Phoenix.Logger.html)
and [here (VM)](https://hexdocs.pm/telemetry_metrics/Telemetry.Metrics.html#module-vm-metrics).
1 change: 1 addition & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const sidebars = {
'deploying/fly_io'
]
},
'metrics',
'examples',
'design_docs',
{
Expand Down

0 comments on commit 27c1acc

Please sign in to comment.