From c38816828f1bae0ed5469982a05846cef9fade7b Mon Sep 17 00:00:00 2001 From: garanews Date: Wed, 7 Oct 2020 17:51:31 +0200 Subject: [PATCH] fix few typo (#8023) Signed-off-by: garanews --- documentation/examples/prometheus-dockerswarm.yml | 2 +- tsdb/chunks/head_chunks_test.go | 2 +- tsdb/head.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/examples/prometheus-dockerswarm.yml b/documentation/examples/prometheus-dockerswarm.yml index efb228fa9..ccbaf2630 100644 --- a/documentation/examples/prometheus-dockerswarm.yml +++ b/documentation/examples/prometheus-dockerswarm.yml @@ -10,7 +10,7 @@ scrape_configs: # Create a job for Docker daemons. # - # This exemple requires Docker daemons to be configured to expose + # This example requires Docker daemons to be configured to expose # Prometheus metrics, as documented here: # https://docs.docker.com/config/daemon/prometheus/ - job_name: 'docker' diff --git a/tsdb/chunks/head_chunks_test.go b/tsdb/chunks/head_chunks_test.go index 70ffaba59..bfb4262ad 100644 --- a/tsdb/chunks/head_chunks_test.go +++ b/tsdb/chunks/head_chunks_test.go @@ -261,7 +261,7 @@ func TestHeadReadWriter_Truncate(t *testing.T) { // TestHeadReadWriter_Truncate_NoUnsequentialFiles tests // that truncation leaves no unsequential files on disk, mainly under the following case // * There is an empty file in between the sequence while the truncation -// deletes files only upto a sequence before that (i.e. stops deleting +// deletes files only up to a sequence before that (i.e. stops deleting // after it has found a file that is not deletable). // This tests https://github.com/prometheus/prometheus/issues/7412 where // the truncation used to check all the files for deletion and end up diff --git a/tsdb/head.go b/tsdb/head.go index 759d983b1..60c26a418 100644 --- a/tsdb/head.go +++ b/tsdb/head.go @@ -2323,7 +2323,7 @@ func (mc *mmappedChunk) OverlapsClosedInterval(mint, maxt int64) bool { // SeriesLifecycleCallback specifies a list of callbacks that will be called during a lifecycle of a series. // It is always a no-op in Prometheus and mainly meant for external users who import TSDB. // All the callbacks should be safe to be called concurrently. -// It is upto the user to implement soft or hard consistency by making the callbacks +// It is up to the user to implement soft or hard consistency by making the callbacks // atomic or non-atomic. Atomic callbacks can cause degradation performance. type SeriesLifecycleCallback interface { // PreCreation is called before creating a series to indicate if the series can be created.