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

Commit

Permalink
docs: metrics documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rach-id committed Jan 3, 2024
1 parent e8152d8 commit 47b11f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/orchestrator.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ The orchestrator supports metrics that describe its runtime and gives more infor
- `orchestrator_processed_nonces_counter`: The count of the total number of nonces that have been processed by the orchestrator. During normal conditions, this number will be incremented by 1 every hour, i.e. 400 blocks which is the current data commitment window. The health of the orchestrator can be determined using this metric via checking if it's been constantly signing nonces. If the counter wasn't incremented for more than an hour, the orchestrator might be failing.
- `orchestrator_failed_nonces_counter`: The count of the number of nonces that the orchestrator tried to process, but failed. These nonces might be re-queued to be reprocessed subsequently. If the orchestrator manages to process them correctly, the `orchestrator_processed_nonces_counter` will be incremented. Otherwise, they might be re-enqueued to be re-processed.
- `orchestrator_failed_nonces_counter`: The count of the number of nonces that failed to be processed by the orchestrator, but were re-enqueued.
- `orchestrator_reprocessed_nonces_counter`: The count of the number of nonces that failed to be processed by the orchestrator, but were re-enqueued.
- `orchestrator_processing_time`: The time it takes for a nonce to be processed or fail after it was picked by the orchestrator processor.
To enable these metrics, make sure to set the `metrics` to true in the orchestrator configuration file:
Expand All @@ -271,7 +271,7 @@ To enable these metrics, make sure to set the `metrics` to true in the orchestra
metrics = "true"
```
And setup a correct endpoint to connect to an otel collector, by default it targets the `"localhost:4318"` endpoint. These can also be setup using the command line flags.
And setup a correct endpoint to connect to an [otel collector](https://opentelemetry.io/docs/collector/installation/), by default it targets the `"localhost:4318"` endpoint. These can also be setup using the command line flags.
The orchestrator provides also the LibP2P native metrics. These are also enabled when the above parameter is set to `true` and are served, by default, to the `"localhost:30001/metrics"`, which can be updated using the orchestrator config file or the command line flags.
Expand Down
4 changes: 2 additions & 2 deletions docs/relayer.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ To enable these metrics, make sure to set the `metrics` to true in the relayer c
metrics = "true"
```

And setup a correct endpoint to connect to an otel collector, by default it targets the `"localhost:4318"` endpoint. These can also be setup using the command line flags.
And setup a correct endpoint to connect to an [otel collector](https://opentelemetry.io/docs/collector/installation/), by default it targets the `"localhost:4318"` endpoint. These can also be setup using the command line flags.

The relayer provides also the LibP2P native metrics. These are also enabled when the above parameter is set to `true` and are served, by default, to the `"localhost:30001/metrics"`, which can be updated using the relayer config file or the command line flags.

An example configuration is provided in the `e2e/telemetry` folder along with the corresponding docker-compose file.
An example configuration is provided in the `e2e/telemetry` folder along with the corresponding docker-compose file `e2e/docker-compose.yml`.

0 comments on commit 47b11f9

Please sign in to comment.