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

metrics/grafana: add more Golang MemStats metrics #16902

Merged
merged 4 commits into from
Apr 29, 2020

Conversation

SunRunAway
Copy link
Contributor

What problem does this PR solve?

Issue Number: close #16900

Problem Summary:
Currently, it only has go_memstats_heap_alloc_bytes metric in grafana. We need more metrics showing runtime.MemStats.

What is changed and how it works?

Proposal: xxx

What's Changed:

Add these metrics:

  1. go_memstats_heap_sys_bytes ("hide": true)
  2. go_memstats_heap_inuse_bytes ("hide": false)
  3. go_memstats_heap_alloc_bytes ("hide": true)
  4. go_memstats_heap_idle_bytes ("hide": true)
  5. go_memstats_heap_released_bytes ("hide": true)

How it Works:

Related changes

  • Need to cherry-pick to the release branch
    • 4.0

Check List

Tests

  • No code

Side effects

  • None

Release note

  • None

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@zz-jason zz-jason added the status/LGT1 Indicates that a PR has LGTM 1. label Apr 28, 2020
@jackysp
Copy link
Member

jackysp commented Apr 28, 2020

/run-monitor-test

@sre-bot
Copy link
Contributor

sre-bot commented Apr 28, 2020

Visit the grafana server at: http://172.16.5.5:31533, it will last for 5 hours

@tiancaiamao
Copy link
Contributor

LGTM @jackysp

@tiancaiamao tiancaiamao added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Apr 28, 2020
Copy link
Member

@jackysp jackysp left a comment

Choose a reason for hiding this comment

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

LGTM

@jackysp
Copy link
Member

jackysp commented Apr 29, 2020

/merge

@sre-bot sre-bot added the status/can-merge Indicates a PR has been approved by a committer. label Apr 29, 2020
@sre-bot
Copy link
Contributor

sre-bot commented Apr 29, 2020

/run-all-tests

@codecov
Copy link

codecov bot commented Apr 29, 2020

Codecov Report

Merging #16902 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #16902   +/-   ##
===========================================
  Coverage   80.3975%   80.3975%           
===========================================
  Files           508        508           
  Lines        137498     137498           
===========================================
  Hits         110545     110545           
  Misses        18291      18291           
  Partials       8662       8662           

@sre-bot
Copy link
Contributor

sre-bot commented Apr 29, 2020

@SunRunAway merge failed.

@sre-bot
Copy link
Contributor

sre-bot commented Apr 29, 2020

cherry pick to release-4.0 in PR #16928

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/metrics status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

grafana: add more Golang MemStats metrics
5 participants