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: restore JVM metrics endpoint capability #527

Merged
2 commits merged into from
May 19, 2023

Conversation

ghost
Copy link

@ghost ghost commented May 15, 2023

Overview

Previously, the ZIO metrics library was used to expose JMX metrics. At some point, this was broken, due to a refactor and there are no e2e tests.

This PR fixes the end point such that JMX metrics are available

Checklist

My PR contains...

  • No code changes (changes to documentation, CI, metadata, etc.)
  • Bug fixes (non-breaking change which fixes an issue)
  • Improvements (misc. changes to existing features)
  • Features (non-breaking change which adds functionality)

My changes...

  • are breaking changes
  • are not breaking changes
  • If yes to above: I have updated the documentation accordingly

Documentation

  • My changes do not require a change to the project documentation
  • My changes require a change to the project documentation
  • If yes to above: I have updated the documentation accordingly

Tests

  • My changes can not or do not need to be tested
  • My changes can and should be tested by unit and/or integration tests
  • If yes to above: I have added tests to cover my changes
  • If yes to above: I have taken care to cover edge cases in my tests

@ghost ghost force-pushed the feature/tech-debt-atl-2977-implement-jvm-metrics branch from 4a81468 to d8b3a79 Compare May 15, 2023 15:49
@github-actions
Copy link
Contributor

github-actions bot commented May 15, 2023

Atala PRISM Test Results

  50 files  +1    50 suites  +1   31s ⏱️ ±0s
370 tests +2  370 ✔️ +2  0 💤 ±0  0 ±0 
371 runs  +2  371 ✔️ +2  0 💤 ±0  0 ±0 

Results for commit aeff870. ± Comparison against base commit cb01657.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented May 15, 2023

Atala PRISM Code Coverage

File Coverage
All files 22%

Minimum allowed coverage is 12%

Generated by 🐒 cobertura-action against aeff870

@github-actions
Copy link
Contributor

github-actions bot commented May 15, 2023

E2E Test Results

10 files  ±0  10 suites  ±0   5m 38s ⏱️ +16s
19 tests ±0  19 ✔️ ±0  0 💤 ±0  0 ±0 
30 runs  ±0  30 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit aeff870. ± Comparison against base commit cb01657.

♻️ This comment has been updated with latest results.

@ghost ghost force-pushed the feature/tech-debt-atl-2977-implement-jvm-metrics branch from 05159d0 to 4db1cce Compare May 16, 2023 20:37
@ghost ghost requested a review from antonbaliasnikov as a code owner May 16, 2023 20:37
@ghost ghost force-pushed the feature/tech-debt-atl-2977-implement-jvm-metrics branch from 4db1cce to aeff870 Compare May 16, 2023 20:39
@yshyn-iohk
Copy link
Member

We need to discuss the purpose of testing the stuff that doesn't belongs to the business logic and is a part of the non-functional/infrastructure integration.

@ghost ghost merged commit 7d603f0 into main May 19, 2023
8 checks passed
@ghost ghost deleted the feature/tech-debt-atl-2977-implement-jvm-metrics branch May 19, 2023 05:40
atala-dev added a commit that referenced this pull request May 23, 2023
# [1.3.0](prism-agent-v1.2.0...prism-agent-v1.3.0) (2023-05-23)

### Features

* restore JVM metrics endpoint capability ([#527](#527)) ([7d603f0](7d603f0))
ghost pushed a commit that referenced this pull request Aug 17, 2023
…epo subject to the Developer Certificate of Origin (DCO), Version 1.1.

40a0578 fix: consumer variable nesting correction (#606)
d0372f1 fix: include helm Chart.yaml in git commit for release process (#604)
63f38d4 feat: add helm-chart for agent  (#603)
ab9d2b8 docs: ADR for AuthN/AuthZ in multi-tenancy (#537)
7d603f0 feat: restore JVM metrics endpoint capability (#527)
9b1558f feat: migrate issue endpoint to tapir (#516)
4ee0943 feat: Allow override of network name (#295)
6d3e5a0 feat(prism-agent): add JVM metrics endpoint, add health/version endpoint (#390)
2f60f22 Fix/e2e test fixes (#381)
198643e feat(prism-agent): set OAS version to 0.41.0 (#386)
3b348ac fix(infra): set local PRISM_AGENT_VERSION to 0.40.0 (#379)
32787ad ci(shared): added manual feedback for linting and changed linting config (#303)
dcb6b51 ci(shared): enable megalinter checks on pullrequests (#300)
405f367 fix(prism-agent): didcomm endpoint now exposed in docker file and with correct path (#241)
2dcf5e3 fix(infra): change didcomm endpoint - remove suffix (#240)
32e33f1 feat(infra): switch to single instance of postgres for running locally (#203)
e3a1aa6 feat(infra): switch to APISIX for local running instead of HAProxy (#196)
df24ad9 feat(infra): improved scripts for runinng locally or develping locally (#153)
dc641b1 chore(shared): move api folder into runnable and reset build settings for dockerRepository and version.sbt (#152)
775880a feat(shared): set OAS servers to `k8s-dev.atalaprism.io` and add API Key auth method - also update local docker-compose implementation (#126)
67bd340 feat(prism-agent): implement Flyway migrations from castor and pollux library and call on agent startup (#117)
cd11493 feat(shared): add Flyway Migrations and expose in ZIO Layer to be used in consuming service (#115)
a5b583f feat(shared): Add environmnet configuration for Iris DB and bump scala version in other components to enable build (#96)
6e388b3 [ATL-1869] docs: Bootstrap ADR decision log using log4brains, RFC-0016 (#34)

Signed-off-by: David Poltorak <david.poltorak@iohk.io>
antonbaliasnikov pushed a commit that referenced this pull request Aug 21, 2023
…epo subject to the Developer Certificate of Origin (DCO), Version 1.1.

40a0578 fix: consumer variable nesting correction (#606)
d0372f1 fix: include helm Chart.yaml in git commit for release process (#604)
63f38d4 feat: add helm-chart for agent  (#603)
ab9d2b8 docs: ADR for AuthN/AuthZ in multi-tenancy (#537)
7d603f0 feat: restore JVM metrics endpoint capability (#527)
9b1558f feat: migrate issue endpoint to tapir (#516)
4ee0943 feat: Allow override of network name (#295)
6d3e5a0 feat(prism-agent): add JVM metrics endpoint, add health/version endpoint (#390)
2f60f22 Fix/e2e test fixes (#381)
198643e feat(prism-agent): set OAS version to 0.41.0 (#386)
3b348ac fix(infra): set local PRISM_AGENT_VERSION to 0.40.0 (#379)
32787ad ci(shared): added manual feedback for linting and changed linting config (#303)
dcb6b51 ci(shared): enable megalinter checks on pullrequests (#300)
405f367 fix(prism-agent): didcomm endpoint now exposed in docker file and with correct path (#241)
2dcf5e3 fix(infra): change didcomm endpoint - remove suffix (#240)
32e33f1 feat(infra): switch to single instance of postgres for running locally (#203)
e3a1aa6 feat(infra): switch to APISIX for local running instead of HAProxy (#196)
df24ad9 feat(infra): improved scripts for runinng locally or develping locally (#153)
dc641b1 chore(shared): move api folder into runnable and reset build settings for dockerRepository and version.sbt (#152)
775880a feat(shared): set OAS servers to `k8s-dev.atalaprism.io` and add API Key auth method - also update local docker-compose implementation (#126)
67bd340 feat(prism-agent): implement Flyway migrations from castor and pollux library and call on agent startup (#117)
cd11493 feat(shared): add Flyway Migrations and expose in ZIO Layer to be used in consuming service (#115)
a5b583f feat(shared): Add environmnet configuration for Iris DB and bump scala version in other components to enable build (#96)
6e388b3 [ATL-1869] docs: Bootstrap ADR decision log using log4brains, RFC-0016 (#34)

Signed-off-by: David Poltorak <david.poltorak@iohk.io>
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants