Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ironfish): Move metrics monitor inside telemetry #1029

Merged
merged 1 commit into from
Feb 16, 2022

Conversation

rohanjadvani
Copy link
Member

Summary

This code moves the metrics monitor inside the telemetry service so the telemetry service can choose memory data to send on an interval.

Testing Plan

Existing unit tests and ran node.

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and
what additional work is required, if any.

[ ] Yes
[x] No

@rohanjadvani rohanjadvani self-assigned this Feb 16, 2022
@rohanjadvani rohanjadvani requested a review from a team as a code owner February 16, 2022 22:40
@linear
Copy link

linear bot commented Feb 16, 2022

@NullSoldier NullSoldier enabled auto-merge (squash) February 16, 2022 22:41
@NullSoldier NullSoldier merged commit b80f614 into staging Feb 16, 2022
@NullSoldier NullSoldier deleted the feature/iro-1547 branch February 16, 2022 22:48
NullSoldier added a commit that referenced this pull request Feb 17, 2022
* Update to latest napi-rs to fix BigInt usage (#1014)

* Update RpcClient routes to use ApiNamespace enum (#1013)

Minor change to RpcClient to utilize the ApiNamespace enum for route definition. Since we have a non-stringly-typed enum already, using it here just minimizes the risk of a typo that breaks a route.

* Move telemetry tags to fields (#1026)

We are doing this to reduce cardinality. Indexes are created from the
combination of measurement and tags. This means every node session ends
up getting it's own indexes which blows out our cardinality and causes
causes InfluxDB to stop processing data. You can read more about this
issue here:

https://docs.influxdata.com/influxdb/cloud/write-data/best-practices/resolve-high-cardinalityg

* Fix ordering issue in creating telemetry node id (#1027)

The issue is that Node.Init() happens before the telemetry node id is
created for the first time. We simply move that up, and configure it on
the SDK itself which gets passed to the constructed node.

* fix miners:mined scanning status (#994)

* Return a Buffer instead of a NativeNote from decryption functions (#1025)

* feat(ironfish): Move metrics monitor inside telemetry (#1029)

* feat(ironfish): Submit peer metrics in telemetry  (#1030)

* feat(ironfish): Move metrics monitor inside telemetry

* feat(ironfish): Submit peer metrics in telemetry

* Bump version to 0.1.23 (#1028)

Co-authored-by: Derek Guenther <dguenther9@gmail.com>
Co-authored-by: mat-if <97762857+mat-if@users.noreply.github.com>
Co-authored-by: wd021 <dannywitters@gmail.com>
Co-authored-by: Rohan Jadvani <5459049+rohanjadvani@users.noreply.github.com>
AmberKiso pushed a commit to AmberKiso/ironfish that referenced this pull request Feb 23, 2022
AmberKiso pushed a commit to AmberKiso/ironfish that referenced this pull request Feb 23, 2022
dguenther pushed a commit that referenced this pull request Feb 23, 2022
* Doc update 1

Remove test:slow
Add referencing bugs fixed in the PR description.

* Update graph explorer readme.md

* Update locations of where test: commands can be run

* Add request to add bugs being fixed to PRs

* Update graph explorer readme

* Update CONTRIBUTING.md

* Bump ironfish-cli to 0.1.22

* Update to latest napi-rs to fix BigInt usage (#1014)

* Update RpcClient routes to use ApiNamespace enum (#1013)

Minor change to RpcClient to utilize the ApiNamespace enum for route definition. Since we have a non-stringly-typed enum already, using it here just minimizes the risk of a typo that breaks a route.

* Move telemetry tags to fields (#1026)

We are doing this to reduce cardinality. Indexes are created from the
combination of measurement and tags. This means every node session ends
up getting it's own indexes which blows out our cardinality and causes
causes InfluxDB to stop processing data. You can read more about this
issue here:

https://docs.influxdata.com/influxdb/cloud/write-data/best-practices/resolve-high-cardinalityg

* Fix ordering issue in creating telemetry node id (#1027)

The issue is that Node.Init() happens before the telemetry node id is
created for the first time. We simply move that up, and configure it on
the SDK itself which gets passed to the constructed node.

* fix miners:mined scanning status (#994)

* Return a Buffer instead of a NativeNote from decryption functions (#1025)

* feat(ironfish): Move metrics monitor inside telemetry (#1029)

* feat(ironfish): Submit peer metrics in telemetry  (#1030)

* feat(ironfish): Move metrics monitor inside telemetry

* feat(ironfish): Submit peer metrics in telemetry

* Bump version to 0.1.23 (#1028)

* Add telemetry status to status command (#1036)

* feat(ironfish): Update telemetry flush and metrics intervals to 5m (#1038)

* feat(ironfish): Update telemetry flush interval from 5s to 60s

* Update to 5m

* Update METRICS_INTERVAL

* fix(ironfish): Pass in metrics and remove peer network from telemetry (#1033)

* fix(ironfish): Pass in metrics and remove peer network from telemetry

* s/peersCount/p2p_PeersCount

* Change getStatus() RPC to use new metrics gauge (#1045)

* v0.1.24 (#1044)

* Doc update 1

Remove test:slow
Add referencing bugs fixed in the PR description.

* Update graph explorer readme.md

* Update locations of where test: commands can be run

* Add request to add bugs being fixed to PRs

* Update graph explorer readme

* Update CONTRIBUTING.md
AmberKiso pushed a commit to AmberKiso/ironfish that referenced this pull request Feb 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants