Replace unicode chars
This commit is contained in:
4
main.go
4
main.go
@@ -28,7 +28,7 @@ func newExporter(reg prometheus.Registerer) *exporter {
|
||||
e := &exporter{
|
||||
uptime: prometheus.NewGaugeVec(prometheus.GaugeOpts{
|
||||
Name: "ct_log_uptime_ratio",
|
||||
Help: "24h uptime ratio (0–1) for a CT log endpoint, sourced from gstatic.com.",
|
||||
Help: "24h uptime ratio (0-1) for a CT log endpoint, sourced from gstatic.com.",
|
||||
}, []string{"log_url", "endpoint"}),
|
||||
fetchOk: prometheus.NewGauge(prometheus.GaugeOpts{
|
||||
Name: "ct_log_uptime_fetch_success",
|
||||
@@ -116,7 +116,7 @@ func main() {
|
||||
addr := flag.String("listen", ":9781", "address to listen on")
|
||||
csvURL := flag.String("url", "https://www.gstatic.com/ct/compliance/endpoint_uptime_24h.csv", "URL of the uptime CSV")
|
||||
interval := flag.Duration("interval", 12*time.Hour, "how often to fetch the CSV")
|
||||
jitter := flag.Duration("jitter", 5*time.Minute, "maximum ±jitter applied to the fetch interval")
|
||||
jitter := flag.Duration("jitter", 5*time.Minute, "maximum +/-jitter applied to the fetch interval")
|
||||
flag.Parse()
|
||||
|
||||
reg := prometheus.NewRegistry()
|
||||
|
||||
Reference in New Issue
Block a user