Skip to content

PMM-13860: finalize HA Overview dashboard - #5691

Open
fabio-silva wants to merge 64 commits into
mainfrom
PMM-13860-finalize-ha-overview-dashboard
Open

PMM-13860: finalize HA Overview dashboard#5691
fabio-silva wants to merge 64 commits into
mainfrom
PMM-13860-finalize-ha-overview-dashboard

Conversation

@fabio-silva

@fabio-silva fabio-silva commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Ticket number: PMM-13860

Screenshot 2026-07-28 at 15 38 39 Screenshot 2026-07-28 at 15 38 51 Screenshot 2026-07-28 at 15 39 01 Screenshot 2026-07-28 at 15 39 11 Screenshot 2026-07-28 at 15 39 17 Screenshot 2026-07-28 at 15 39 28 Screenshot 2026-07-28 at 15 39 34

@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 20.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 45.29%. Comparing base (31318c7) to head (d740f89).
⚠️ Report is 108 commits behind head on main.

Files with missing lines Patch % Lines
managed/cmd/pmm-managed/main.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5691      +/-   ##
==========================================
+ Coverage   43.59%   45.29%   +1.69%     
==========================================
  Files         415      548     +133     
  Lines       43134    45760    +2626     
  Branches        0      591     +591     
==========================================
+ Hits        18804    20725    +1921     
- Misses      22454    23072     +618     
- Partials     1876     1963      +87     
Flag Coverage Δ
admin 34.93% <ø> (+0.15%) ⬆️
agent 51.41% <ø> (+2.37%) ⬆️
managed 44.99% <20.00%> (+2.01%) ⬆️
unittests 41.29% <ø> (?)
vmproxy 72.22% <ø> (ø)

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

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fabio-silva fabio-silva added the auto-update-branch used by .github/workflows/auto-update-base.yaml label Jul 23, 2026
@fabio-silva
fabio-silva requested a review from Copilot July 23, 2026 16:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates PMM’s High Availability navigation and documentation to reflect the finalized PMM HA Overview Grafana dashboard (PMM-13860), making it the default HA landing page and aligning dashboard naming across UI and docs.

Changes:

  • Point the top-level PMM HA menu entry to the PMM HA Overview Grafana dashboard and add an explicit Overview child entry.
  • Rename dashboard references from “PMM HA Health Overview” to “PMM HA Overview” in docs and plugin dashboard metadata.
  • Refresh the dashboard reference documentation to describe the updated panels/semantics (alive vs expected, leaders/primaries, etc.).

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
ui/apps/pmm/src/contexts/navigation/navigation.utils.tsx Adds the Overview item into the HA menu’s dynamically-built children list.
ui/apps/pmm/src/contexts/navigation/navigation.constants.ts Makes the HA landing URL the new Grafana dashboard and introduces NAV_HIGH_AVAILABILITY_OVERVIEW.
documentation/docs/reference/dashboards/dashboard-ha-health-overview.md Renames and rewrites the HA dashboard reference content to match the finalized “PMM HA Overview” dashboard.
documentation/docs/install-pmm/install-HA-clustered.md Updates installation docs to reference the new dashboard name and where to find it in the UI.
dashboards/pmm-app/src/plugin.json Updates the dashboard display name to “PMM HA Overview” while keeping the existing JSON path.
dashboards/dashboards/AGENTS.md Updates the dashboards folder description list to use the new dashboard name.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cursor

cursor Bot commented Jul 24, 2026

Copy link
Copy Markdown

Screenshots — PMM HA Overview

Overview (with PMM HA sidebar navigation)

PMM HA Overview - top

PMM HA Overview - with resource usage

Resources, storage & service availability

Resources, storage and availability

Pod status tables

PMM, PostgreSQL and ClickHouse pods

ClickHouse and VictoriaMetrics pods

HAProxy pods and backends

Kiosk view (clean panels)

PMM HA Overview kiosk

@fabio-silva
fabio-silva marked this pull request as ready for review July 27, 2026 09:39
@fabio-silva
fabio-silva requested review from a team and Nailya as code owners July 27, 2026 09:39
@fabio-silva
fabio-silva requested review from matejkubinec and mattiasimonato and removed request for a team July 27, 2026 09:39
@catalinaadam
catalinaadam temporarily deployed to PMM-13860-finalize-ha-overview-dashboard - pmm-doc-3.9.0 PR #5691 August 7, 2026 11:41 — with Render Destroyed
@fabio-silva
fabio-silva requested a review from a team as a code owner August 9, 2026 00:10
@fabio-silva
fabio-silva requested review from ademidoff and maxkondr and removed request for a team, Nailya, ademidoff, matejkubinec and maxkondr August 9, 2026 00:10
url: `${PMM_NEW_NAV_GRAFANA_PATH}/d/pmm-ha-health-overview/pmm-ha-health-overview`,
};

export const NAV_HIGH_AVAILABILITY_LEADER: NavItem = {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What's the reason for removing the leader information? In the initial design (not sure if still applies) - https://www.figma.com/design/pWEsw8pSWBFDiXIfCFaFkd/PMM-High-Availability-Groundwork?node-id=100-1716&m=dev - the dashboard link and leader info coexist.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@matejkubinec yes, it was in the initial design.
However, we discussed this subject and decided to remove it for now, given the dashboard is now immediately accessible from the sidebar and tells users the leader right away.
The element with the leader didn't seem a good fit on the sidebar, so for now we will make this way.

Comment thread api/ha/v1beta1/ha.proto
// Status of HA mode: "Enabled" or "Disabled".
string status = 1;
// Kubernetes namespace this instance is running in. Empty if unknown
// (e.g. non-Kubernetes installs).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is HA supposed to be running in non-Kubernetes env?

Comment thread managed/services/ha/haservice.go Outdated
return detectNamespaceAt(serviceAccountNamespaceFile, l)
}

func detectNamespaceAt(path string, l *logrus.Entry) string {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why extra func is needed here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-update-branch used by .github/workflows/auto-update-base.yaml documentation Documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants