Skip to content

Conversation

@BupycHuk
Copy link
Member

@BupycHuk BupycHuk commented Aug 20, 2025

The 'refresh' value controls when the variable is updated: 1=on dashboard load, 2=on time range change. Here, 2 ensures the uptime, connection counts, and active connections variables are refreshed when the time range changes, which is important for accurate reporting. See Grafana docs: https://grafana.com/docs/grafana/latest/variables/variable-types/add-query-variable/#refresh-options

Fixes percona/pmm#4357

@BupycHuk BupycHuk requested review from YashSartanpara1, Copilot and matejkubinec and removed request for YashSartanpara1 August 20, 2025 07:40
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the refresh rate configuration for several template variables in the PostgreSQL Instance Summary dashboard. The change increases the refresh interval from 1 to 2, which affects how frequently these variables are re-evaluated.

  • Changes refresh rate from 1 to 2 for multiple dashboard template variables
  • Targets variables related to uptime, connection counts, and active connections
  • Aims to improve dashboard performance by reducing query frequency

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

"refId": "StandardVariableQuery"
},
"refresh": 1,
"refresh": 2,
Copy link

Copilot AI Aug 20, 2025

Choose a reason for hiding this comment

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

The refresh value change from 1 to 2 lacks documentation about what these numeric values represent (seconds, refresh cycles, etc.) and the rationale for this specific change. Consider adding comments to clarify the refresh interval meaning and performance impact.

Suggested change
"refresh": 2,
"refresh": 2,
"__comment": "The 'refresh' value controls when the variable is updated: 1=on dashboard load, 2=on time range change. Here, 2 ensures the 'uptime' variable is refreshed when the time range changes, which is important for accurate reporting. See Grafana docs: https://grafana.com/docs/grafana/latest/variables/variable-types/add-query-variable/#refresh-options",

Copilot uses AI. Check for mistakes.
@ademidoff
Copy link
Member

@YashSartanpara1 PTAL

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.

Version 3.3.1 Connections Section on Postgresql Summary Dashboard Doesn't Refresh

3 participants