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: add mysql connection metrics #118

Merged
merged 22 commits into from
Apr 27, 2021
Merged

feat: add mysql connection metrics #118

merged 22 commits into from
Apr 27, 2021

Conversation

Reasno
Copy link
Member

@Reasno Reasno commented Mar 30, 2021

No description provided.

@Reasno Reasno added the enhancement New feature or request label Mar 30, 2021
@codecov
Copy link

codecov bot commented Mar 31, 2021

Codecov Report

Merging #118 (19f7e0b) into master (6c3f812) will increase coverage by 0.38%.
The diff coverage is 97.36%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #118      +/-   ##
==========================================
+ Coverage   76.38%   76.77%   +0.38%     
==========================================
  Files          82       83       +1     
  Lines        3083     3143      +60     
==========================================
+ Hits         2355     2413      +58     
- Misses        540      542       +2     
  Partials      188      188              
Impacted Files Coverage Δ
otgorm/log.go 66.66% <ø> (ø)
otgorm/module.go 78.12% <90.90%> (+2.48%) ⬆️
observability/jaeger.go 66.66% <100.00%> (ø)
observability/metrics.go 100.00% <100.00%> (ø)
observability/observability.go 100.00% <100.00%> (+6.25%) ⬆️
otgorm/dependency.go 88.13% <100.00%> (+0.97%) ⬆️
otgorm/gorm_metrics.go 100.00% <100.00%> (ø)
dtx/sagas/mysqlstore/mysql_store.go 83.54% <0.00%> (-3.80%) ⬇️
config/watcher/file.go 62.79% <0.00%> (+4.65%) ⬆️

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 6c3f812...19f7e0b. Read the comment docs.

@Reasno Reasno linked an issue Mar 31, 2021 that may be closed by this pull request
@Reasno Reasno self-assigned this Mar 31, 2021
@Reasno Reasno changed the title feat: add connection metrics wip: feat: add connection metrics Mar 31, 2021
@Reasno Reasno changed the title wip: feat: add connection metrics feat: add connection metrics Mar 31, 2021
@Reasno Reasno marked this pull request as draft March 31, 2021 03:33
GGXXLL and others added 2 commits April 26, 2021 18:21
* fix(otgorm): metrics missing labels

* fix: add with value, extend waiting time
@Reasno Reasno requested a review from GGXXLL April 27, 2021 02:13
@Reasno Reasno marked this pull request as ready for review April 27, 2021 02:13
@Reasno Reasno changed the title feat: add connection metrics feat: add mysql connection metrics Apr 27, 2021
@Reasno
Copy link
Member Author

Reasno commented Apr 27, 2021

redis connection metrics can be added in another PR. #127

@@ -75,7 +45,7 @@ type configOut struct {
Config []config.ExportedConfig `group:"config,flatten"`
}

func provideConfig() configOut {
func exportConfig() configOut {
Copy link
Contributor

Choose a reason for hiding this comment

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

Other package export config func name is provideConfig, unified? Which one should we use?

Copy link
Member Author

Choose a reason for hiding this comment

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

provideConfig. As this is a private function, we can always change it at any point.

GGXXLL
GGXXLL previously approved these changes Apr 27, 2021
@GGXXLL GGXXLL merged commit 0e45b6f into master Apr 27, 2021
@Reasno Reasno deleted the metrics branch April 27, 2021 10:55
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
None yet
Development

Successfully merging this pull request may close these issues.

monitor connection pools via prometheus
2 participants