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

client/authority-discovery: Instrument code with Prometheus #5195

Merged
merged 5 commits into from
Mar 11, 2020

Conversation

mxinden
Copy link
Contributor

@mxinden mxinden commented Mar 9, 2020

Introduce Prometheus metrics into the authority discovery module
enabling one to observe:

  • authority_discovery_times_published_total

  • authority_discovery_amount_external_addresses_last_published

  • authority_discovery_times_requested_total

  • authority_discovery_dht_event_received


This is still missing a corresponding Polkadot pull request given that one now needs to pass a registry to the authority discovery module.

Corresponding Polkadot pull request: paritytech/polkadot#893

Introduce Prometheus metrics into the authority discovery module
enabling one to observe:

- authority_discovery_times_published_total

- authority_discovery_amount_external_addresses_last_published

- authority_discovery_times_requested_total

- authority_discovery_dht_event_received
Copy link
Contributor

@expenses expenses left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good, metric documentation could be improved a little bit (English 🤷‍♀️).

client/authority-discovery/src/lib.rs Outdated Show resolved Hide resolved
client/authority-discovery/src/lib.rs Outdated Show resolved Hide resolved
client/authority-discovery/src/lib.rs Outdated Show resolved Hide resolved
@mxinden
Copy link
Contributor Author

mxinden commented Mar 10, 2020

Thanks @expenses, appreciated! Can you take another look?

Copy link
Contributor

@expenses expenses left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

client/authority-discovery/src/lib.rs Outdated Show resolved Hide resolved
@gavofyork
Copy link
Member

@mxinden tests failing?

@gavofyork gavofyork added A7-looksgoodtestsfail and removed A0-please_review Pull request needs code review. labels Mar 10, 2020
@bkchr
Copy link
Member

bkchr commented Mar 10, 2020

@mxinden merging master should fix it.

@gavofyork gavofyork merged commit e53f42e into paritytech:master Mar 11, 2020
General-Beck pushed a commit to General-Beck/substrate that referenced this pull request Mar 12, 2020
…ch#5195)

* client/authority-discovery: Instrument code with Prometheus

Introduce Prometheus metrics into the authority discovery module
enabling one to observe:

- authority_discovery_times_published_total

- authority_discovery_amount_external_addresses_last_published

- authority_discovery_times_requested_total

- authority_discovery_dht_event_received

* client/authority-discovery/src/lib.rs: Reword metric help texts

Co-Authored-By: Ashley <[email protected]>

* client/authority-discovery/src/lib.rs: Reword metric help text

Co-Authored-By: Ashley <[email protected]>

* client/authority-discovery/tests: Fix struct instantiation + basic test

Co-authored-by: Ashley <[email protected]>
General-Beck pushed a commit to General-Beck/substrate that referenced this pull request Mar 17, 2020
…ch#5195)

* client/authority-discovery: Instrument code with Prometheus

Introduce Prometheus metrics into the authority discovery module
enabling one to observe:

- authority_discovery_times_published_total

- authority_discovery_amount_external_addresses_last_published

- authority_discovery_times_requested_total

- authority_discovery_dht_event_received

* client/authority-discovery/src/lib.rs: Reword metric help texts

Co-Authored-By: Ashley <[email protected]>

* client/authority-discovery/src/lib.rs: Reword metric help text

Co-Authored-By: Ashley <[email protected]>

* client/authority-discovery/tests: Fix struct instantiation + basic test

Co-authored-by: Ashley <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants