Skip to content

Commit

Permalink
Add telemetry and Prometheus endpoint (informalsystems#985)
Browse files Browse the repository at this point in the history
* Initial telemetry support implementation (informalsystems#868)

* Refactored code for state and service. Replaced hyper with rouille (informalsystems#868)

* Initial logic to include the telemetry in the Supervisor (informalsystems#868)

* Refactored logic into server and service. Server working (informalsystems#868)

* Added new methods for state and server (informalsystems#868)

* Telemetry service logic working, recording a metric (informalsystems#868)

* Added more metrics (informalsystems#868)

* Added logic to disable/enable telemetry service and server (informalsystems#868)

* Added more metrics to service. Hookup the packet timeout metric (informalsystems#868)

* Move telemetry service into `ibc-telemetry` crate

* Move `metric!` macro into its own module

* Move telemetry config under `[telemetry]` section

* Disable telemetry by default, fix port to 3001

* Try to fix libm.so error

* Wrap telemetry state in Arc and simplify server a little

* Simplify server a bit more

* Fix glibc version mismatch between CI and Docker image

* Push telemetry handle down into workers

* Implement `workers`, `ibc_client_misbehaviours` and `receive_packets` metrics

* Add `ibc_client_update` metric

* Remove need for telemetry service by passing around the telemetry state

* Add ack and timeout metrics

* Fix compilation when telemetry feature is not included

* FMT

* Rename metric! macro to telemetry!

* Add `clippy --no-default-features` to CI

Co-authored-by: Andy Nogueira <me@andynogueira.dev>
Co-authored-by: Romain Ruetschi <romain@informal.systems>
Co-authored-by: Anca Zamfir <zamfiranca@gmail.com>
Co-authored-by: Adi Seredinschi <adi@informal.systems>
  • Loading branch information
5 people authored Jun 1, 2021
1 parent c9d2c43 commit 14f1170
Show file tree
Hide file tree
Showing 22 changed files with 1,218 additions and 127 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
command: fmt
args: --all -- --check

clippy_check:
clippy_all_features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -56,6 +56,20 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --all-targets

clippy_no_default_features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --no-default-features --all-targets

test-stable:
runs-on: ubuntu-latest
steps:
Expand Down
Loading

0 comments on commit 14f1170

Please sign in to comment.