all: fix some typos (#10389)

Signed-off-by: cuishuang <imcusg@gmail.com>
This commit is contained in:
cui fliter 2022-03-03 20:03:07 +08:00 committed by GitHub
parent 1ecebc3a20
commit c9b56d1a49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View file

@ -4,7 +4,7 @@
* [CHANGE] Tracing: Migrate from Jaeger to OpenTelemetry based tracing. #9724, #10203, #10276 * [CHANGE] Tracing: Migrate from Jaeger to OpenTelemetry based tracing. #9724, #10203, #10276
* [ENHANCEMENT] Azure SD: Set Prometheus User-Agent on requests. #10209 * [ENHANCEMENT] Azure SD: Set Prometheus User-Agent on requests. #10209
* [ENHANCEMENT] Uyuni SD: Reduce the number of logins to Uyuni. #10072 * [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] 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] 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 * [ENHANCEMENT] UI: Optimize the alerts page and add a search bar. #10142

View file

@ -525,7 +525,7 @@ func (d *Discovery) Run(ctx context.Context, ch chan<- []*targetgroup.Group) {
} }
case RoleIngress: case RoleIngress:
// Check "networking.k8s.io/v1" availability with retries. // 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 var v1Supported bool
if retryOnError(ctx, 10*time.Second, if retryOnError(ctx, 10*time.Second,
func() (err error) { func() (err error) {

View file

@ -159,7 +159,7 @@ func convertKumaUserLabels(labels map[string]string) model.LabelSet {
// kumaMadsV1ResourceParser is an xds.resourceParser. // kumaMadsV1ResourceParser is an xds.resourceParser.
func kumaMadsV1ResourceParser(resources []*anypb.Any, typeURL string) ([]model.LabelSet, error) { func kumaMadsV1ResourceParser(resources []*anypb.Any, typeURL string) ([]model.LabelSet, error) {
if typeURL != KumaMadsV1ResourceTypeURL { 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 var targets []model.LabelSet

View file

@ -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 // 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 // We update s.series first because GC expects anything in s.hashes to
// already exist in s.series. // already exist in s.series.

View file

@ -311,7 +311,7 @@ func newDBMetrics(db *DB, r prometheus.Registerer) *dbMetrics {
return m 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. // They are available before the DB has finished initializing.
type DBStats struct { type DBStats struct {
Head *HeadStats Head *HeadStats