Skip to content

Commit

Permalink
fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
imryao committed Dec 19, 2021
1 parent 01a4dc4 commit ee28dfb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func NewExporter(endpoint string, scrapeTimeout time.Duration) (*Exporter, error
"scrape_duration_seconds": {txt: "Scrape duration in seconds"},
"uptime_seconds": {txt: "V2Ray uptime in seconds"},
"traffic_uplink_bytes_total": {txt: "Number of transmitted bytes", lbls: []string{"dimension", "target"}},
"traffic_downlink_bytes_total": {txt: "Number of receieved bytes", lbls: []string{"dimension", "target"}},
"traffic_downlink_bytes_total": {txt: "Number of received bytes", lbls: []string{"dimension", "target"}},
} {
e.metricDescriptions[k] = e.newMetricDescr(k, desc.txt, desc.lbls)
}
Expand Down Expand Up @@ -150,7 +150,7 @@ func (e *Exporter) scrapeV2RaySysMetrics(ctx context.Context, ch chan<- promethe
// See: https://prometheus.io/docs/instrumenting/writing_exporters/#drop-less-useful-statistics

// These metrics below are not directly exposed by Go collector.
// Therefore we only add the "memstats_" prefix without changing their original names.
// Therefore, we only add the "memstats_" prefix without changing their original names.
e.registerConstMetricGauge(ch, "memstats_num_gc", float64(resp.GetNumGC()))
e.registerConstMetricGauge(ch, "memstats_pause_total_ns", float64(resp.GetPauseTotalNs()))

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"time"

flags "github.com/jessevdk/go-flags"
"github.com/jessevdk/go-flags"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/sirupsen/logrus"
)
Expand Down

0 comments on commit ee28dfb

Please sign in to comment.