From c9b56d1a49b01e66139b94899645d1ba988681b2 Mon Sep 17 00:00:00 2001 From: cui fliter Date: Thu, 3 Mar 2022 20:03:07 +0800 Subject: [PATCH] all: fix some typos (#10389) Signed-off-by: cuishuang --- CHANGELOG.md | 2 +- discovery/kubernetes/kubernetes.go | 2 +- discovery/xds/kuma.go | 2 +- tsdb/agent/series.go | 2 +- tsdb/db.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 406abe48a..fed6cc437 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ * [CHANGE] Tracing: Migrate from Jaeger to OpenTelemetry based tracing. #9724, #10203, #10276 * [ENHANCEMENT] Azure SD: Set Prometheus User-Agent on requests. #10209 * [ENHANCEMENT] Uyuni SD: Reduce the number of logins to Uyuni. #10072 -* [ENHANCEMENT] Scrape: Log when an invalid media type is encounted during a scrape. #10186 +* [ENHANCEMENT] Scrape: Log when an invalid media type is encountered during a scrape. #10186 * [ENHANCEMENT] Scrape: Accept application/openmetrics-text;version=1.0.0 in addition to version=0.0.1. #9431 * [ENHANCEMENT] Remote-read: Add an option to not use external labels as selectors for remote read. #10254 * [ENHANCEMENT] UI: Optimize the alerts page and add a search bar. #10142 diff --git a/discovery/kubernetes/kubernetes.go b/discovery/kubernetes/kubernetes.go index 0e43f9feb..d7a864c00 100644 --- a/discovery/kubernetes/kubernetes.go +++ b/discovery/kubernetes/kubernetes.go @@ -525,7 +525,7 @@ func (d *Discovery) Run(ctx context.Context, ch chan<- []*targetgroup.Group) { } case RoleIngress: // Check "networking.k8s.io/v1" availability with retries. - // If "v1" is not avaiable, use "networking.k8s.io/v1beta1" for backward compatibility + // If "v1" is not available, use "networking.k8s.io/v1beta1" for backward compatibility var v1Supported bool if retryOnError(ctx, 10*time.Second, func() (err error) { diff --git a/discovery/xds/kuma.go b/discovery/xds/kuma.go index 5ef573720..03816e762 100644 --- a/discovery/xds/kuma.go +++ b/discovery/xds/kuma.go @@ -159,7 +159,7 @@ func convertKumaUserLabels(labels map[string]string) model.LabelSet { // kumaMadsV1ResourceParser is an xds.resourceParser. func kumaMadsV1ResourceParser(resources []*anypb.Any, typeURL string) ([]model.LabelSet, error) { if typeURL != KumaMadsV1ResourceTypeURL { - return nil, errors.Errorf("recieved invalid typeURL for Kuma MADS v1 Resource: %s", typeURL) + return nil, errors.Errorf("received invalid typeURL for Kuma MADS v1 Resource: %s", typeURL) } var targets []model.LabelSet diff --git a/tsdb/agent/series.go b/tsdb/agent/series.go index 04c9f5fc3..ddb64fc55 100644 --- a/tsdb/agent/series.go +++ b/tsdb/agent/series.go @@ -189,7 +189,7 @@ func (s *stripeSeries) Set(hash uint64, series *memSeries) { ) // We can't hold both locks at once otherwise we might deadlock with a - // simulatenous call to GC. + // simultaneous call to GC. // // We update s.series first because GC expects anything in s.hashes to // already exist in s.series. diff --git a/tsdb/db.go b/tsdb/db.go index c85cd84cf..93639146a 100644 --- a/tsdb/db.go +++ b/tsdb/db.go @@ -311,7 +311,7 @@ func newDBMetrics(db *DB, r prometheus.Registerer) *dbMetrics { return m } -// DBStats contains statistics about the DB seperated by component (eg. head). +// DBStats contains statistics about the DB separated by component (eg. head). // They are available before the DB has finished initializing. type DBStats struct { Head *HeadStats