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

chore(observability): Add context information to jetty metrics #1740

Conversation

florianrusch-zf
Copy link
Contributor

@florianrusch-zf florianrusch-zf commented Jul 25, 2022

What this PR changes/adds

The PR adds the Tags jetty_context and jetty_port to the jetty connection metrics (e.g. jetty_connections_max)

PR will result in this:

Why it does that

To support specific alerts for each context

Linked Issue(s)

Closes #1738

Checklist

  • added appropriate tests? (Not necessary in my opinion)
  • performed checkstyle check locally?
  • added/updated copyright headers?
  • documented public classes/methods?
  • added/updated relevant documentation?
  • added relevant details to the changelog? (skip with label no-changelog)
  • formatted title correctly? (take a look at the CONTRIBUTING and styleguide for details)

@github-actions github-actions bot added this to In progress in Connector Jul 25, 2022
@florianrusch-zf florianrusch-zf marked this pull request as ready for review July 25, 2022 13:18
@florianrusch-zf florianrusch-zf force-pushed the 1738-enrich-jetty-metrics-context-info branch from ec1616d to b9cb0eb Compare July 26, 2022 15:59
@florianrusch-zf florianrusch-zf changed the title observability: Add context information to jetty metrics chore: Add context information to jetty metrics Jul 26, 2022
@florianrusch-zf florianrusch-zf changed the title chore: Add context information to jetty metrics chore(observability): Add context information to jetty metrics Jul 26, 2022
@florianrusch-zf florianrusch-zf added the enhancement New feature or request label Jul 26, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #1740 (b9cb0eb) into main (3ef48d5) will increase coverage by 0.01%.
The diff coverage is 80.00%.

@@            Coverage Diff             @@
##             main    #1740      +/-   ##
==========================================
+ Coverage   67.40%   67.41%   +0.01%     
==========================================
  Files         781      781              
  Lines       16761    16757       -4     
  Branches     1057     1057              
==========================================
- Hits        11297    11296       -1     
+ Misses       5008     5005       -3     
  Partials      456      456              
Impacted Files Coverage Δ
...taspaceconnector/extension/jetty/JettyService.java 71.76% <80.00%> (+2.10%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ef48d5...b9cb0eb. Read the comment docs.

Connector automation moved this from In progress to Review in progress Jul 27, 2022
@paullatzelsperger paullatzelsperger removed their request for review July 28, 2022 08:58
@paullatzelsperger
Copy link
Member

removing myself, as @ndr-brt is already a reviewer.

@ndr-brt ndr-brt merged commit 78c1496 into eclipse-edc:main Jul 28, 2022
Connector automation moved this from Review in progress to Done Jul 28, 2022
diegogomez-zf pushed a commit to diegogomez-zf/DataSpaceConnector that referenced this pull request Aug 3, 2022
…se-edc#1740)

* observability: Add context information to jetty metrics

* observability: Update changelog

* observability: Rework setting connector properties

The JettyMicrometerConfiguration was executed first, before the name and port were configured.

* observability: Fix typo in test description

* observability: Remove changelog
@florianrusch-zf florianrusch-zf deleted the 1738-enrich-jetty-metrics-context-info branch August 16, 2022 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Connector
  
Done
Development

Successfully merging this pull request may close these issues.

Enrich jetty connection metrics with context information
4 participants