Skip to content

Commit 6f8a654

Browse files
authored
Merge pull request #369 from pommi/credhub_dashboard_certs_min_expiry_date
CredHub Certificate Expiry Date dashboard: show earliest of the expiry dates in case of a certificate chain
2 parents d32d984 + ac106b6 commit 6f8a654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jobs/credhub_dashboards/templates/credhub_certs.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
],
171171
"targets": [
172172
{
173-
"expr": "max(round(max_over_time(credhub_certificate_expires_at{environment=~\"$environment\",deployment=~\"$bosh_deployment\"}[1h]))) by (name, path) * 1000",
173+
"expr": "min(round(max_over_time(credhub_certificate_expires_at{environment=~\"$environment\",deployment=~\"$bosh_deployment\"}[1h]))) by (name, path) * 1000",
174174
"format": "table",
175175
"instant": true,
176176
"intervalFactor": 1,

0 commit comments

Comments
 (0)