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(fabric): prometheus exporter support #576

Merged
merged 1 commit into from
Mar 1, 2021

Conversation

jagpreetsinghsasan
Copy link
Contributor

@jagpreetsinghsasan jagpreetsinghsasan commented Feb 10, 2021

Commit to be reviewed


feat(fabric): add prometheus metrics support to the openapi specs of the plugin

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

1. The fabric 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. The generate-sdk command now has DateTime mapping to Date (to read Date as Date object instead of string)
4. GetPrometheusMetricsV1 class is created to handle the corresponding api endpoint
5. IPluginLedgerConnectorFabricOptions interface in PluginLedgerConnectorFabric class now has a prometheusExporter optional field
6. The PluginLedgerConnectorFabric class has relevant functions and codes to incorporate prometheus exporter
7. run-transaction-endpoint-v1.test is changed to incorporate the prometheus exporter for both fabric 1.4.x and 2.x versions
8. Added Readme.md on the prometheus exporter usage

Fixes #531

Sub issue of #458
Fixes #531

@jagpreetsinghsasan jagpreetsinghsasan changed the title feat(fabric): Prometheus Exporter Support feat(fabric): prometheus exporter support Feb 10, 2021
petermetz
petermetz previously approved these changes Feb 24, 2021
	Primary Change
	--------------

	1. The fabric 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. The generate-sdk command now has DateTime mapping to Date (to read Date as Date object instead of string)
	4. GetPrometheusMetricsV1 class is created to handle the corresponding api endpoint
	5. IPluginLedgerConnectorFabricOptions interface in PluginLedgerConnectorFabric class now has a prometheusExporter optional field
	6. The PluginLedgerConnectorFabric class has relevant functions and codes to incorporate prometheus exporter
	7. run-transaction-endpoint-v1.test is changed to incorporate the prometheus exporter for both fabric 1.4.x and 2.x versions
	8. Added Readme.md on the prometheus exporter usage

	Fixes hyperledger-cacti#531

Signed-off-by: Jagpreet Singh Sasan <jagpreet.singh.sasan@accenture.com>
@petermetz petermetz enabled auto-merge (rebase) February 26, 2021 20:03
@petermetz petermetz merged commit b892655 into hyperledger-cacti:main Mar 1, 2021
@petermetz petermetz deleted the feature-458 branch April 7, 2021 17:16
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.

feat(fabric): add prometheus metrics support to the OpenAPI specs of the plugin
3 participants