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

Improve 'Mimir / Reads resources' dashboard to work with read-write deployment mode #3504

Merged

Conversation

pracucci
Copy link
Collaborator

@pracucci pracucci commented Nov 23, 2022

What this PR does

Similarly to the PR #3497, in this PR I'm improving the 'Mimir / Reads resources' dashboard to work with read-write deployment mode too.

In details:

  • Added "Summary" row to "Mimir / Reads resources" dashboard
  • Fixed double .*.* suffix in the instance names regex used in baremetal dashboards
  • Use $._config.instance_names and $._config.container_names in all CPU/memory/disk panels (networking panels will be addressed in a follow up PR)
  • Use containerGoHeapInUsePanel() everywhere (instead of the deprecated goHeapInUsePanel())

Out of scope of this PR:

  • Add read-write support to compactor and alertmanager resources dashboards

Screenshots of microservices deployment:
Screenshot 2022-11-23 at 17 09 32

Screenshots of read-write deployment:
Screenshot 2022-11-23 at 17 09 38

Which issue(s) this PR fixes or relates to

Part of #3361

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

…eployment mode

Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci force-pushed the fix-other-resources-dashboards-with-read-write-deployment-mode branch from a099ac9 to 338c2f6 Compare November 23, 2022 16:06
memory_working_usage:
|||
node_memory_MemTotal_bytes{%(namespace)s,%(instanceLabel)s=~".*%(instanceName)s.*"}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note to reviewers: the .* prefix and suffix shouldn't be hardcoded in the query, but part of instanceName. For this reason, I moved it to $._config.instance_names.

@pracucci pracucci marked this pull request as ready for review November 23, 2022 16:10
@pracucci pracucci requested a review from a team as a code owner November 23, 2022 16:10
pracucci added a commit that referenced this pull request Nov 23, 2022
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Copy link
Contributor

@jhesketh jhesketh left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@dimitarvdimitrov dimitarvdimitrov left a comment

Choose a reason for hiding this comment

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

LGTM

@pracucci pracucci merged commit c708660 into main Nov 24, 2022
@pracucci pracucci deleted the fix-other-resources-dashboards-with-read-write-deployment-mode branch November 24, 2022 08:34
@grafanabot
Copy link
Contributor

Hello @pracucci!
Backport pull requests need to be either:

  • Pull requests which address bugs,
  • Urgent fixes which need product approval, in order to get merged,
  • Docs changes.

Please, if the current pull request addresses a bug fix, label it with the type/bug label.
If it already has the product approval, please add the product-approved label. For docs changes, please add the type/docs label.
If none of the above applies, please consider removing the backport label and target the next major/minor release.
Thanks!

masonmei pushed a commit to udmire/mimir that referenced this pull request Dec 16, 2022
…eployment mode (grafana#3504)

* Improve 'Mimir / Reads resources' dashboard to work with read-write deployment mode

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Add CHANGELOG entry

Signed-off-by: Marco Pracucci <marco@pracucci.com>

Signed-off-by: Marco Pracucci <marco@pracucci.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants