pingcap / tiup

A component manager for TiDB
https://tiup.io
Apache License 2.0
409 stars 304 forks source link

update prometheus config when scale in #2387

Closed Yujie-Xie closed 3 months ago

Yujie-Xie commented 3 months ago

What problem does this PR solve?

https://github.com/pingcap/tiup/issues/2327 https://github.com/pingcap/tiup/issues/2375

What is changed and how it works?

Check List

Tests

Code changes

Side effects

Related changes

Release notes:

NONE
ti-chi-bot[bot] commented 3 months ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign kaaaaaaang for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files: - **[OWNERS](https://github.com/pingcap/tiup/blob/master/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
codecov-commenter commented 3 months ago

Codecov Report

Attention: Patch coverage is 50.00000% with 27 lines in your changes are missing coverage. Please review.

Project coverage is 55.96%. Comparing base (9e11d0e) to head (684f9d9).

:exclamation: Current head 684f9d9 differs from pull request most recent head e9e296e. Consider uploading reports for the commit e9e296e to get more accurate results

Files Patch % Lines
pkg/cluster/manager/scale_in.go 48.57% 14 Missing and 4 partials :warning:
pkg/cluster/manager/destroy.go 52.63% 7 Missing and 2 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2387 +/- ## ========================================== - Coverage 56.07% 55.96% -0.11% ========================================== Files 329 329 Lines 35040 35082 +42 ========================================== - Hits 19646 19632 -14 - Misses 13056 13100 +44 - Partials 2338 2350 +12 ``` | [Flag](https://app.codecov.io/gh/pingcap/tiup/pull/2387/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | Coverage Δ | | |---|---|---| | [cluster](https://app.codecov.io/gh/pingcap/tiup/pull/2387/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `45.20% <50.00%> (-0.12%)` | :arrow_down: | | [dm](https://app.codecov.io/gh/pingcap/tiup/pull/2387/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `25.54% <31.48%> (-0.03%)` | :arrow_down: | | [playground](https://app.codecov.io/gh/pingcap/tiup/pull/2387/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `15.78% <ø> (-0.01%)` | :arrow_down: | | [tiup](https://app.codecov.io/gh/pingcap/tiup/pull/2387/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `33.59% <ø> (-0.05%)` | :arrow_down: | | [unittest](https://app.codecov.io/gh/pingcap/tiup/pull/2387/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `22.20% <0.00%> (-0.03%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.