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

Add alarms metrics for server #14276

Merged
merged 1 commit into from
Aug 8, 2022
Merged

Conversation

yuzhiquan
Copy link
Contributor

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.

etcdserver: add alarms metrics for etcd server.

Fix #14234

@yuzhiquan yuzhiquan force-pushed the add-alarm-metrics branch from bd87df4 to 62508cf Compare July 26, 2022 08:31
@codecov-commenter
Copy link

codecov-commenter commented Jul 26, 2022

Codecov Report

Merging #14276 (07f3852) into main (5fab045) will decrease coverage by 0.32%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main   #14276      +/-   ##
==========================================
- Coverage   75.51%   75.19%   -0.33%     
==========================================
  Files         456      457       +1     
  Lines       36919    36923       +4     
==========================================
- Hits        27881    27764     -117     
- Misses       7316     7415      +99     
- Partials     1722     1744      +22     
Flag Coverage Δ
all 75.19% <100.00%> (-0.33%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
server/etcdserver/apply/apply.go 82.56% <100.00%> (+0.16%) ⬆️
server/etcdserver/apply/metrics.go 100.00% <100.00%> (ø)
client/pkg/v3/tlsutil/tlsutil.go 83.33% <0.00%> (-8.34%) ⬇️
server/storage/mvcc/watchable_store.go 85.14% <0.00%> (-8.34%) ⬇️
server/etcdserver/api/v3rpc/interceptor.go 74.47% <0.00%> (-8.34%) ⬇️
client/pkg/v3/testutil/leak.go 62.83% <0.00%> (-7.08%) ⬇️
client/v3/concurrency/session.go 88.63% <0.00%> (-4.55%) ⬇️
client/v3/leasing/cache.go 87.77% <0.00%> (-3.89%) ⬇️
server/etcdserver/api/v3rpc/util.go 70.96% <0.00%> (-3.23%) ⬇️
client/v3/leasing/txn.go 88.09% <0.00%> (-3.18%) ⬇️
... and 15 more

Help us with your feedback. Take ten seconds to tell us how you rate us.

@yuzhiquan yuzhiquan force-pushed the add-alarm-metrics branch from 692151c to 71944f7 Compare July 28, 2022 01:52
@yuzhiquan yuzhiquan force-pushed the add-alarm-metrics branch from 71944f7 to fcecc08 Compare July 28, 2022 02:06
@yuzhiquan yuzhiquan force-pushed the add-alarm-metrics branch from fcecc08 to 3d6aadb Compare July 28, 2022 03:00
Copy link
Member

@ahrtr ahrtr left a comment

Choose a reason for hiding this comment

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

LGTM

Thank you @yuzhiquan

@yuzhiquan
Copy link
Contributor Author

LGTM

Thank you @yuzhiquan

My pleasure

@ahrtr
Copy link
Member

ahrtr commented Jul 28, 2022

Please also add a changelog item.

@yuzhiquan yuzhiquan force-pushed the add-alarm-metrics branch 2 times, most recently from 83caa5d to 7aadeba Compare July 28, 2022 08:41
@stek29
Copy link

stek29 commented Jul 31, 2022

also, just a nitpick: shouldn't commit message begin with etcdserver: too?

@yuzhiquan yuzhiquan force-pushed the add-alarm-metrics branch 2 times, most recently from 8fb3fd0 to a407be7 Compare August 1, 2022 08:50
Copy link
Member

@spzala spzala left a comment

Choose a reason for hiding this comment

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

lgtm but please see couple of minor in-line comments and answer to the question on namespace. Thanks @yuzhiquan

Copy link
Member

@spzala spzala left a comment

Choose a reason for hiding this comment

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

lgtm
Thanks @yuzhiquan

Signed-off-by: yuzhiquanlong <yuzhiquanlong@gmail.com>
@ahrtr ahrtr merged commit 649baba into etcd-io:main Aug 8, 2022
@yuzhiquan yuzhiquan deleted the add-alarm-metrics branch August 9, 2022 01:33
@ahrtr ahrtr mentioned this pull request Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Expose alarms as metrics
6 participants