Skip to content

Conversation

@priteau
Copy link
Member

@priteau priteau commented Nov 24, 2025

The existing thresholds were:

  • expiry in more than 300 days: green
  • expiry between 140 and 300 days: yellow
  • expiry in less than 140 days: red

These large values mean that Let's Encrypt certificates are always displayed in red because they are currently valid for 90 days.

Adjust thresholds to be more useful:

  • expiry in more than 30 days: green
  • expiry between 7 and 30 days: yellow
  • expiry in less than 7 days: red

The existing thresholds were:

- expiry in more than 300 days: green
- expiry between 140 and 300 days: yellow
- expiry in less than 140 days: red

These large values mean that Let's Encrypt certificates are always
displayed in red because they are currently valid for 90 days.

Adjust thresholds to be more useful:

- expiry in more than 30 days: green
- expiry between 7 and 30 days: yellow
- expiry in less than 7 days: red
@priteau priteau self-assigned this Nov 24, 2025
@priteau priteau requested a review from a team as a code owner November 24, 2025 15:32
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the color thresholds for certificate expiry in the Grafana home dashboard. The new thresholds are more appropriate for certificates with shorter lifespans, such as those from Let's Encrypt. The change is logical and correctly implemented. I have added one suggestion to improve the maintainability of the new threshold values by including comments within the JSON structure.

@Alex-Welsh Alex-Welsh merged commit a7d4edf into stackhpc/2024.1 Nov 24, 2025
22 of 23 checks passed
@Alex-Welsh Alex-Welsh deleted the grafana-certificate-expiry-caracal branch November 24, 2025 17:41
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.

3 participants