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

CAD-2166: delegation map size trace & export (with UTxO size) to prometheus #2158

Merged
merged 4 commits into from Dec 4, 2020

Conversation

deepfire
Copy link
Contributor

@deepfire deepfire commented Dec 2, 2020

  1. extend LedgerQueries with delegMapSize -- to query the effective delegation map size
  2. trace delegMapSize with TraceStartLeadershipCheck
  3. export both utxoSize and delegMapSize as metrics
  4. move all metrics to the cardano.node.metrics namespace. This affects:
    • cardano.node.Forge.metrics
    • cardano.node.ChainDB.metrics

WARNING: breaking change -- see point №4. This also simplifies configuration, making the following unnecessary:

https://github.com/input-output-hk/cardano-node/blob/master/configuration/cardano/mainnet-config.json#L66-L71

cc @disassembler @denisshevchenko

@deepfire deepfire force-pushed the cad-2166-delegation-map-prometheus branch from e57275a to 69e8d4f Compare December 2, 2020 17:20
@deepfire deepfire marked this pull request as ready for review December 2, 2020 17:20
@deepfire deepfire changed the title CAD-2166: delegation map trace & export to prometheus CAD-2166: delegation map size trace & export (with UTxO size) to prometheus Dec 2, 2020
@deepfire deepfire force-pushed the cad-2166-delegation-map-prometheus branch from 69e8d4f to b2e017f Compare December 3, 2020 13:59
@deepfire
Copy link
Contributor Author

deepfire commented Dec 4, 2020

bors r+

iohk-bors bot added a commit that referenced this pull request Dec 4, 2020
2158: CAD-2166:  delegation map size trace & export (with UTxO size) to prometheus r=deepfire a=deepfire

1. extend `LedgerQueries` with `delegMapSize` -- to query the effective delegation map size
1. trace `delegMapSize` with `TraceStartLeadershipCheck`
1. export both `utxoSize` and `delegMapSize` as metrics 
1. move all metrics to the `cardano.node.metrics` namespace.  This affects:
   - `cardano.node.Forge.metrics`
   - `cardano.node.ChainDB.metrics`


WARNING: breaking change -- see point №4.  This also simplifies configuration, making the following unnecessary:

https://github.com/input-output-hk/cardano-node/blob/master/configuration/cardano/mainnet-config.json#L66-L71

cc @disassembler @denisshevchenko 

Co-authored-by: Kosyrev Serge <serge.kosyrev@iohk.io>
@deepfire deepfire force-pushed the cad-2166-delegation-map-prometheus branch from b2e017f to d85c7c1 Compare December 4, 2020 12:56
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Dec 4, 2020

Canceled.

@deepfire
Copy link
Contributor Author

deepfire commented Dec 4, 2020

bors r+

iohk-bors bot added a commit that referenced this pull request Dec 4, 2020
2158: CAD-2166:  delegation map size trace & export (with UTxO size) to prometheus r=deepfire a=deepfire

1. extend `LedgerQueries` with `delegMapSize` -- to query the effective delegation map size
1. trace `delegMapSize` with `TraceStartLeadershipCheck`
1. export both `utxoSize` and `delegMapSize` as metrics 
1. move all metrics to the `cardano.node.metrics` namespace.  This affects:
   - `cardano.node.Forge.metrics`
   - `cardano.node.ChainDB.metrics`


WARNING: breaking change -- see point №4.  This also simplifies configuration, making the following unnecessary:

https://github.com/input-output-hk/cardano-node/blob/master/configuration/cardano/mainnet-config.json#L66-L71

cc @disassembler @denisshevchenko 

Co-authored-by: Kosyrev Serge <serge.kosyrev@iohk.io>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Dec 4, 2020

Build failed:

@deepfire
Copy link
Contributor Author

deepfire commented Dec 4, 2020

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Dec 4, 2020

@iohk-bors iohk-bors bot merged commit 11a398b into master Dec 4, 2020
@iohk-bors iohk-bors bot deleted the cad-2166-delegation-map-prometheus branch December 4, 2020 15:10
iohk-bors bot added a commit that referenced this pull request Dec 4, 2020
2175: Pass a metrics tracer to teeTraceChainTip r=dcoutts a=intricate

After #2158, it seems that ChainDB metrics were mistakenly being logged to `cardano.node` instead of `cardano.node.metrics`. This PR fixes that.

Co-authored-by: Luke Nadur <19835357+intricate@users.noreply.github.com>
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