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

[MM-55268] Expose metrics through new ServeMetrics hook #556

Merged
merged 2 commits into from
Nov 21, 2023

Conversation

streamer45
Copy link
Collaborator

Summary

We implement the ServeMetrics hook introduced in mattermost/mattermost#24249.

@DHaussermann Adding you since we need some basic QA on the related server side PR. So the QA work is the same for both PRs as we'll be using Calls as a test plugin. We just want to verify that metrics will be exposed under http://localhost:8067/plugins/com.mattermost.calls/metrics when running a build from this PR against a MM server with the changes above.

Ticket Link

https://mattermost.atlassian.net/browse/MM-55268

@streamer45 streamer45 added 2: Dev Review Requires review by a core committer 2: QA Review Requires review by a QA tester labels Nov 3, 2023
@streamer45 streamer45 self-assigned this Nov 3, 2023
Copy link
Member

@cpoile cpoile left a comment

Choose a reason for hiding this comment

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

🎉

@streamer45 streamer45 removed the 2: Dev Review Requires review by a core committer label Nov 3, 2023
@DHaussermann
Copy link

/update-branch

Copy link

@DHaussermann DHaussermann left a comment

Choose a reason for hiding this comment

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

Tested and passed
I can now see metrics exposed at http://localhost:8067/plugins/com.mattermost.calls/metrics

Seems to be functional. I can see metrics when the plugin is in use.

LGTM!

@streamer45 streamer45 added 3: Reviews Complete All reviewers have approved the pull request and removed 2: QA Review Requires review by a QA tester labels Nov 17, 2023
@codecov-commenter
Copy link

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (8408b6e) 5.76% compared to head (e4ad5ef) 5.76%.

Files Patch % Lines
server/log.go 0.00% 2 Missing ⚠️
server/plugin.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##            main    #556      +/-   ##
========================================
- Coverage   5.76%   5.76%   -0.01%     
========================================
  Files         24      24              
  Lines       4559    4561       +2     
========================================
  Hits         263     263              
- Misses      4278    4280       +2     
  Partials      18      18              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@streamer45 streamer45 merged commit b40ee31 into main Nov 21, 2023
@streamer45 streamer45 deleted the plugin-metrics branch November 21, 2023 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants