Skip to content

Commit

Permalink
style: gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhop committed Dec 17, 2023
1 parent 8e1bdef commit 92abf6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/ns1_exporter/ns1_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ import (
"github.com/prometheus/exporter-toolkit/web/kingpinflag"

"github.com/tjhop/ns1_exporter/internal/version"
"github.com/tjhop/ns1_exporter/pkg/metrics"
"github.com/tjhop/ns1_exporter/pkg/exporter"
"github.com/tjhop/ns1_exporter/pkg/metrics"
"github.com/tjhop/ns1_exporter/pkg/ns1"
sd "github.com/tjhop/ns1_exporter/pkg/servicediscovery"
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (w *Worker) RefreshQPSZoneData() {
zoneQPSRaw, _, err := w.client.Stats.GetZoneQPS(zName)
if err != nil {
level.Error(logger).Log("msg", "Failed to get zone-level qps data for from NS1 API", "err", err.Error(), "worker", "exporter", "zone_name", zName)
metrics.MetricExporterNS1APIFailures.Inc()
metrics.MetricExporterNS1APIFailures.Inc()
}

cache = append(cache, &ns1_internal.QPS{
Expand Down Expand Up @@ -164,7 +164,7 @@ func (w *Worker) RefreshQPSRecordData() {
recordQPSRaw, _, err := w.client.Stats.GetRecordQPS(zName, r.Domain, r.Type)
if err != nil {
level.Error(logger).Log("msg", "Failed to get record-level qps data for from NS1 API", "err", err.Error(), "worker", "exporter", "zone_name", zName, "record_name", r.Domain, "record_type", r.Type)
metrics.MetricExporterNS1APIFailures.Inc()
metrics.MetricExporterNS1APIFailures.Inc()
}

cache = append(cache, &ns1_internal.QPS{
Expand Down

0 comments on commit 92abf6a

Please sign in to comment.