probeSSLEarliestCertExpiryGauge = prometheus.NewGauge(prometheus.GaugeOpts{
Name: "probe_ssl_earliest_cert_expiry",
- Help: "Returns earliest SSL cert expiry in unixtime",
+ Help: helpSSLEarliestCertExpiry,
})
probeTLSVersion = prometheus.NewGaugeVec(prometheus.GaugeOpts{
Name: "probe_tls_version_info",
- Help: "Contains the TLS version used",
+ Help: helpProbeTLSInfo,
},
[]string{"version"},
)
probeSSLEarliestCertExpiryGauge = prometheus.NewGauge(prometheus.GaugeOpts{
Name: "probe_ssl_earliest_cert_expiry",
- Help: "Returns earliest SSL cert expiry in unixtime",
+ Help: helpSSLEarliestCertExpiry,
})
probeSSLLastChainExpiryTimestampSeconds = prometheus.NewGauge(prometheus.GaugeOpts{
Name: "probe_ssl_last_chain_expiry_timestamp_seconds",
- Help: "Returns last SSL chain expiry in timestamp seconds",
+ Help: helpSSLChainExpiryInTimeStamp,
})
probeSSLLastInformation = prometheus.NewGaugeVec(
probeTLSVersion = prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Name: "probe_tls_version_info",
- Help: "Contains the TLS version used",
+ Help: helpProbeTLSInfo,
},
[]string{"version"},
)
)
type ProbeFn func(ctx context.Context, target string, config config.Module, registry *prometheus.Registry, logger log.Logger) bool
+
+const (
+ helpSSLEarliestCertExpiry = "Returns last SSL chain expiry in unixtime"
+ helpSSLChainExpiryInTimeStamp = "Returns last SSL chain expiry in timestamp"
+ helpProbeTLSInfo = "Returns the TLS version used or NaN when unknown"
+)
func ProbeTCP(ctx context.Context, target string, module config.Module, registry *prometheus.Registry, logger log.Logger) bool {
probeSSLEarliestCertExpiry := prometheus.NewGauge(prometheus.GaugeOpts{
Name: "probe_ssl_earliest_cert_expiry",
- Help: "Returns earliest SSL cert expiry date",
+ Help: helpSSLEarliestCertExpiry,
})
probeSSLLastChainExpiryTimestampSeconds := prometheus.NewGauge(prometheus.GaugeOpts{
Name: "probe_ssl_last_chain_expiry_timestamp_seconds",
- Help: "Returns last SSL chain expiry in unixtime",
+ Help: helpSSLChainExpiryInTimeStamp,
})
probeSSLLastInformation := prometheus.NewGaugeVec(
prometheus.GaugeOpts{
probeTLSVersion := prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Name: "probe_tls_version_info",
- Help: "Returns the TLS version used, or NaN when unknown",
+ Help: helpProbeTLSInfo,
},
[]string{"version"},
)