There were 2 issues with current Probe (blackbox) grafana dashboard:
When dashboard is deployed, it was failing to load because by accident, template variable target was doing a prometheus query using harcoded Prometheus datasource. This can be truth or not, there is another template var checking the possible correct datasource name.
The singlestat showing the expiration date of SSL certificate, whose format is duration(s), was showing YES instead of the actual date 1month, 2 weeks, 2 days on some grafana versions like grafana v6.5.1 (from grafana operator 3.5), different to the version used when adding the dashboard:
It seems this is caused on some grafana versions, when using specifically on a singlestat panel, value mappings ( on that case null -> N/A, 1 -> NO, 0 -> YES), and having at the same time having format duration(s), so on that case value mappings are not very important, so I have just removed them.
Now correct expiration date is always shown in case there is a certificate (on that case 1month, 2 weeks, 2 days):
The only drawback with that change, is that on cases where there is no certificate (plain HTTP, TCP...), instead of showing N/A it shows No Data:
There were 2 issues with current Probe (blackbox) grafana dashboard:
target
was doing a prometheus query using harcodedPrometheus
datasource. This can be truth or not, there is another template var checking the possible correct datasource name.duration(s)
, was showingYES
instead of the actual date1month, 2 weeks, 2 days
on some grafana versions like grafana v6.5.1 (from grafana operator 3.5), different to the version used when adding the dashboard:It seems this is caused on some grafana versions, when using specifically on a singlestat panel, value mappings ( on that case
null
->N/A
,1
->NO
,0
->YES
), and having at the same time having formatduration(s)
, so on that case value mappings are not very important, so I have just removed them.Now correct expiration date is always shown in case there is a certificate (on that case
1month, 2 weeks, 2 days
):The only drawback with that change, is that on cases where there is no certificate (plain HTTP, TCP...), instead of showing
N/A
it showsNo Data
: