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(quorum): add prometheus exporter #602

Merged
merged 1 commit into from
Mar 30, 2021

Conversation

jagpreetsinghsasan
Copy link
Contributor

@jagpreetsinghsasan jagpreetsinghsasan commented Feb 26, 2021

Commit to be reviewed


feat(quorum): prometheus exporter metrics integration

Primary Change
--------------

1. The quorum ledger connector plugin now includes the prometheus metrics exporter integration
2. OpenAPI spec now has api endpoint for the getting the prometheus metrics

Refactorings that were also necessary to accomodate 1) and 2)
------------------------------------------------------------

3. GetPrometheusMetricsV1 class is created to handle the corresponding api endpoint
4. IPluginLedgerConnectorQuorumOptions interface in PluginLedgerConnectorQuorum class now has a prometheusExporter optional field
5. The PluginLedgerConnectorQuorum class has relevant functions and codes to incorporate prometheus exporter
6. Added Readme.md on the prometheus exporter usage

Fixes #534

Signed-off-by: Jagpreet Singh Sasan jagpreet.singh.sasan@accenture.com

petermetz
petermetz previously approved these changes Feb 26, 2021
@kikoncuo kikoncuo requested a review from takeutak March 1, 2021 10:42
Copy link
Contributor

@takeutak takeutak left a comment

Choose a reason for hiding this comment

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

I think there is almost no problem. However, could you please reply to or revise your comments on the minor point?

packages/cactus-plugin-ledger-connector-quorum/README.md Outdated Show resolved Hide resolved
takeutak
takeutak previously approved these changes Mar 3, 2021
takeutak
takeutak previously approved these changes Mar 15, 2021
petermetz
petermetz previously approved these changes Mar 19, 2021
takeutak
takeutak previously approved these changes Mar 23, 2021
@petermetz
Copy link
Contributor

@jagpreetsinghsasan I recommend rebasing this to the PR that improves the GHA flakiness (and then also making sure to mark this as dependent on that)
This is the one: #713

@petermetz
Copy link
Contributor

@jagpreetsinghsasan After rebasing to main the CI will hopefully pass and then this is ready to go

	Primary Change
	--------------

	1. The quorum ledger connector plugin now includes the prometheus metrics exporter integration
	2. OpenAPI spec now has api endpoint for the getting the prometheus metrics

	Refactorings that were also necessary to accomodate 1) and 2)
	------------------------------------------------------------

	3. GetPrometheusMetricsV1 class is created to handle the corresponding api endpoint
	4. IPluginLedgerConnectorQuorumOptions interface in PluginLedgerConnectorQuorum class now has a prometheusExporter optional field
	5. The PluginLedgerConnectorQuorum class has relevant functions and codes to incorporate prometheus exporter
	6. Added Readme.md on the prometheus exporter usage

	Fixes hyperledger-cacti#534

Signed-off-by: Jagpreet Singh Sasan <jagpreet.singh.sasan@accenture.com>
@petermetz petermetz merged commit bcc574d into hyperledger-cacti:main Mar 30, 2021
@petermetz petermetz deleted the feature-534 branch March 30, 2021 00:17
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.

3 participants