From d056be710bce31e1638552b0af6e6c4cbd9f1305 Mon Sep 17 00:00:00 2001 From: Haleygo Date: Fri, 3 Mar 2023 18:02:13 +0800 Subject: [PATCH] fix some typo (#3898) --- app/victoria-metrics/main.go | 2 +- lib/promscrape/client.go | 4 ++-- lib/protoparser/common/unmarshal_work.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/victoria-metrics/main.go b/app/victoria-metrics/main.go index 231fae32e..362aa8dd8 100644 --- a/app/victoria-metrics/main.go +++ b/app/victoria-metrics/main.go @@ -53,7 +53,7 @@ func main() { if err := promscrape.CheckConfig(); err != nil { logger.Fatalf("error when checking -promscrape.config: %s", err) } - logger.Infof("-promscrape.config is ok; exitting with 0 status code") + logger.Infof("-promscrape.config is ok; exiting with 0 status code") return } diff --git a/lib/promscrape/client.go b/lib/promscrape/client.go index fa2b60c9e..24d4bb6c2 100644 --- a/lib/promscrape/client.go +++ b/lib/promscrape/client.go @@ -33,7 +33,7 @@ var ( "Note that disabling HTTP keep-alive may increase load on both vmagent and scrape targets") streamParse = flag.Bool("promscrape.streamParse", false, "Whether to enable stream parsing for metrics obtained from scrape targets. This may be useful "+ "for reducing memory usage when millions of metrics are exposed per each scrape target. "+ - "It is posible to set 'stream_parse: true' individually per each 'scrape_config' section in '-promscrape.config' for fine grained control") + "It is possible to set 'stream_parse: true' individually per each 'scrape_config' section in '-promscrape.config' for fine grained control") ) type client struct { @@ -260,7 +260,7 @@ func (c *client) ReadData(dst []byte) ([]byte, error) { swapResponseBodies := len(dst) == 0 if swapResponseBodies { // An optimization: write response directly to dst. - // This should reduce memory uage when scraping big targets. + // This should reduce memory usage when scraping big targets. dst = resp.SwapBody(dst) } diff --git a/lib/protoparser/common/unmarshal_work.go b/lib/protoparser/common/unmarshal_work.go index 22bb8c999..47eb730a2 100644 --- a/lib/protoparser/common/unmarshal_work.go +++ b/lib/protoparser/common/unmarshal_work.go @@ -23,7 +23,7 @@ type UnmarshalWork interface { // StartUnmarshalWorkers starts unmarshal workers. func StartUnmarshalWorkers() { if unmarshalWorkCh != nil { - logger.Panicf("BUG: it looks like startUnmarshalWorkers() has been alread called without stopUnmarshalWorkers()") + logger.Panicf("BUG: it looks like startUnmarshalWorkers() has been already called without stopUnmarshalWorkers()") } gomaxprocs := cgroup.AvailableCPUs() unmarshalWorkCh = make(chan UnmarshalWork, gomaxprocs)