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

Multichain telemetry support #10623

Merged
merged 32 commits into from
Oct 13, 2023

Conversation

george-dorin
Copy link
Contributor

@george-dorin george-dorin commented Sep 13, 2023

This PR adds multi-chain telemetry support, telemetry endpoints can be defined in the config TOML.
Moving forward we want to deprecate TelemetryIngress.URL and TelemetryIngress. ServerPubKey.

[TelemetryIngress]
UniConn = true
-URL = 'prom.test'
-ServerPubKey = 'test-pub-key'
Logging = false
BufferSize = 100
MaxBatchSize = 50
SendInterval = '500ms'
SendTimeout = '10s'
UseBatchSend = tru

+[[TelemetryIngress.Endpoints]]
+Network = 'EVM'
+ChainID = '1'
+URL = 'prom.test'
+ServerPubKey = 'test-pub-key'

+[[TelemetryIngress.Endpoints]]
+Network = 'EVM'
+ChainID = '2'
+URL = 'prom2.test'
+ServerPubKey = 'test-pub-key2'

GenMonitoringEndpoint now takes two extra parameters network and chainID to route telemetry to the correct endpoint:

-GenMonitoringEndpoint(contractID string, telemType synchronization.TelemetryType) ocrtypes.MonitoringEndpoint
+GenMonitoringEndpoint(contractID string, telemType synchronization.TelemetryType, network string, chainID string) ocrtypes.MonitoringEndpoint

@github-actions
Copy link
Contributor

I see that you haven't updated any README files. Would it make sense to do so?

docs/CHANGELOG.md Outdated Show resolved Hide resolved
@george-dorin george-dorin requested a review from jmank88 October 4, 2023 14:28
jmank88
jmank88 previously approved these changes Oct 4, 2023
…port

# Conflicts:
#	core/services/synchronization/telemetry_ingress_batch_client.go
@george-dorin george-dorin requested a review from a team as a code owner October 12, 2023 22:24
@cl-sonarqube-production
Copy link

@george-dorin george-dorin added this pull request to the merge queue Oct 13, 2023
Merged via the queue into develop with commit eab0984 Oct 13, 2023
84 checks passed
@george-dorin george-dorin deleted the feature/BCF-2393-multichain-telemetry-support branch October 13, 2023 07:21
@sirenko sirenko restored the feature/BCF-2393-multichain-telemetry-support branch October 17, 2023 05:58
asoliman92 pushed a commit that referenced this pull request Jul 31, 2024
* Initial draft

* Add manager

* Update config TOML

* Update config tests

* Add telemetry manager tests

* Fix lint

* Add CHANGELOG.md

* Update TelemetryService Send interface

* Fix bad merge

* Fix hanging tests

* Change config from TelemetryIngressEndpoint to TelemetryIngress.Endpoints

* - Fix wrong context being passed

* - Remove protocol prefix from telemetry URL
- Drop context from TelemPayload

* - Fix context in tests

* - Update CHANGELOG.md

* - Add fields back and show error

* - Fix failing tests

* Move changelog entry to [dev]

* Update so that telemetry can still be configured the old way

* Update CONFIG.md
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.

5 participants