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(consortium-manual): add prometheus exporter #684

Merged
merged 1 commit into from
Mar 30, 2021

Conversation

jagpreetsinghsasan
Copy link
Contributor

@jagpreetsinghsasan jagpreetsinghsasan commented Mar 19, 2021

Commit to be reviewed


feat(consortium-manual): add prometheus exporter

Primary Change
--------------
1. The consortium-manual 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. IPluginConsortiumManualOptions interface in PluginConsortiumManual class now has a prometheusExporter optional field
5. The PluginConsortiumManual class has relevant functions and codes to incorporate prometheus exporter
6. get-node-jws-endpoint-v1.test.ts is changed to incorporate the prometheus exporter
7. Added Readme.md on the prometheus exporter usage

Resolve #538

Signed-off-by: Jagpreet Singh Sasan [email protected]

@petermetz
Copy link
Contributor

petermetz commented Mar 29, 2021

@AzaharaC @jordigiam Could you take a look at this1 test failure? I know this PR is unrelated, but that test failure looks like a randomly occurring flake in the nonce handling2 probably due to race conditions (just a guess).
What I confirmed so far is that the test works on my machine, but it failed while being executed by the CI (usually the CI is good at catching race conditions because it's slow.

#747

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

	1. The consortium-manual 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. IPluginConsortiumManualOptions interface in PluginConsortiumManual class now has a prometheusExporter optional field
	5. The PluginConsortiumManual class has relevant functions and codes to incorporate prometheus exporter
	6. get-node-jws-endpoint-v1.test.ts is changed to incorporate the prometheus exporter
	7. Added Readme.md on the prometheus exporter usage

	Fixes hyperledger-cacti#538

Signed-off-by: Jagpreet Singh Sasan <[email protected]>
@petermetz petermetz merged commit 853bdc4 into hyperledger-cacti:main Mar 30, 2021
@petermetz petermetz deleted the feature-538 branch March 30, 2021 05:48
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(consortium-manual): add prometheus metrics support to the OpenAPI specs of the plugin
3 participants