diff --git a/ssl_exporter.go b/ssl_exporter.go index a1fbb87..db35b2c 100644 --- a/ssl_exporter.go +++ b/ssl_exporter.go @@ -164,7 +164,7 @@ func (e *Exporter) Collect(ch chan<- prometheus.Metric) { ) } - if len(subjectIPs) > 0 { + if len(subjectOUs) > 0 { ch <- prometheus.MustNewConstMetric( subjectOrganizationUnits, prometheus.GaugeValue, 1, serialNum, issuerCN, ","+strings.Join(subjectOUs, ",")+",", )