Skip to content

Commit 95b1f3c

Browse files
authored
Fixing typos (#70487)
1 parent 1441c90 commit 95b1f3c

File tree

25 files changed

+36
-36
lines changed

25 files changed

+36
-36
lines changed

CODE_OF_CONDUCT.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Project maintainers who do not follow or enforce the Code of Conduct in good fai
4040

4141
## Attribution
4242

43-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [https://contributor-covenant.org/version/1/4/code-of-conduct][version]
4444

45-
[homepage]: http://contributor-covenant.org
46-
[version]: http://contributor-covenant.org/version/1/4/
45+
[homepage]: https://contributor-covenant.org
46+
[version]: https://www.contributor-covenant.org/version/1/4/code-of-conduct/

docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ groups:
6666
# <string, required> which query should be used for the condition
6767
condition: A
6868
# <list, required> list of query objects that should be executed on each
69-
# evaluation - should be obtained trough the API
69+
# evaluation - should be obtained through the API
7070
data:
7171
- refId: A
7272
datasourceUid: '__expr__'

docs/sources/developers/plugins/development-with-local-grafana.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ You can run a backend plugin and attach a debugger to it, which allows you to se
109109
```
110110
1. Install your plugin into your local Grafana instance.
111111
112-
Now that your plugin is ready to run, follow the instructions bellow for your IDE of choice.
112+
Now that your plugin is ready to run, follow the instructions below for your IDE of choice.
113113
114114
### Visual Studio Code
115115

packages/grafana-runtime/src/utils/DataSourceWithBackend.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ export enum HealthStatus {
7676
enum PluginRequestHeaders {
7777
PluginID = 'X-Plugin-Id', // can be used for routing
7878
DatasourceUID = 'X-Datasource-Uid', // can be used for routing/ load balancing
79-
DashboardUID = 'X-Dashboard-Uid', // mainly useful for debuging slow queries
80-
PanelID = 'X-Panel-Id', // mainly useful for debuging slow queries
79+
DashboardUID = 'X-Dashboard-Uid', // mainly useful for debugging slow queries
80+
PanelID = 'X-Panel-Id', // mainly useful for debugging slow queries
8181
QueryGroupID = 'X-Query-Group-Id', // mainly useful to find related queries with query splitting
8282
FromExpression = 'X-Grafana-From-Expr', // used by datasources to identify expression queries
8383
}

packages/grafana-ui/src/components/Table/BarGaugeCell.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const BarGaugeCell = (props: TableCellProps) => {
104104
};
105105

106106
/**
107-
* Getting gauge values to align is very tricky without looking at all values and passing them trough display processor. For very large tables that
107+
* Getting gauge values to align is very tricky without looking at all values and passing them through display processor. For very large tables that
108108
* could pretty expensive. So this is kind of a compromise. We look at the first 1000 rows and cache the longest value.
109109
* If we have a cached value we just check if the current value is longer and update the alignmentFactor. This can obviously still lead to
110110
* unaligned gauges but it should a lot less common.

pkg/api/frontendsettings_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func TestHTTPServer_GetFrontendSettings_apps(t *testing.T) {
248248
},
249249
},
250250
{
251-
desc: "enalbed app with preload",
251+
desc: "enabled app with preload",
252252
pluginStore: func() plugins.Store {
253253
return &plugins.FakePluginStore{
254254
PluginList: []plugins.PluginDTO{

pkg/build/npm/npm.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@ func FetchNpmPackages(ctx context.Context, tag, bucketName string) error {
117117
// Latest and next is 9.1.6.
118118
// 9.2.0-beta1 is released, the latest should stay on 9.1.6, next should point to 9.2.0-beta1
119119
// No move of dist-tags
120-
// 9.1.7 is relased, the latest should point to 9.1.7, next should stay to 9.2.0-beta1
120+
// 9.1.7 is released, the latest should point to 9.1.7, next should stay to 9.2.0-beta1
121121
// No move of dist-tags
122122
// Next week 9.2.0-beta2 is released, the latest should point to 9.1.7, next should point to 9.2.0-beta2
123123
// No move of dist-tags
124-
// In two weeks 9.2.0 stable is relased, the latest and next should point to 9.2.0.
124+
// In two weeks 9.2.0 stable is released, the latest and next should point to 9.2.0.
125125
// The next dist-tag is moved to point to 9.2.0.
126126
//
127127
// 3. Releasing an older stable than the current stable

pkg/infra/tracing/tracing_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func TestTracingConfig(t *testing.T) {
110110
ExpectedAttrs: []attribute.KeyValue{},
111111
},
112112
{
113-
Name: "legacy env variables are supproted",
113+
Name: "legacy env variables are supported",
114114
Cfg: `[tracing.jaeger]`,
115115
Env: map[string]string{
116116
"JAEGER_AGENT_HOST": "example.com",
@@ -137,7 +137,7 @@ func TestTracingConfig(t *testing.T) {
137137
},
138138
} {
139139
t.Run(test.Name, func(t *testing.T) {
140-
// export envioronment variables
140+
// export environment variables
141141
if test.Env != nil {
142142
for k, v := range test.Env {
143143
t.Setenv(k, v)

pkg/services/caching/service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type CachedResourceDataResponse struct {
3131
Response *backend.CallResourceResponse
3232
// A function that should be used to cache a CallResourceResponse for a given resource request.
3333
// It can be set to nil by the method implementation (if there is an error, for example), so it should be checked before being called.
34-
// Because plugins can send multiple responses asyncronously, the implementation should be able to handle multiple calls to this function for one request.
34+
// Because plugins can send multiple responses asynchronously, the implementation should be able to handle multiple calls to this function for one request.
3535
UpdateCacheFn CacheResourceResponseFn
3636
}
3737

pkg/services/featuremgmt/manager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func (fm *FeatureManager) IsEnabled(flag string) bool {
128128
return fm.enabled[flag]
129129
}
130130

131-
// GetEnabled returns a map contaning only the features that are enabled
131+
// GetEnabled returns a map containing only the features that are enabled
132132
func (fm *FeatureManager) GetEnabled(ctx context.Context) map[string]bool {
133133
enabled := make(map[string]bool, len(fm.enabled))
134134
for key, val := range fm.enabled {

pkg/services/folder/model.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ type DeleteFolderCommand struct {
128128
}
129129

130130
// GetFolderQuery is used for all folder Get requests. Only one of UID, ID, or
131-
// Title should be set; if multilpe fields are set by the caller the dashboard
131+
// Title should be set; if multiple fields are set by the caller the dashboard
132132
// service will select the field with the most specificity, in order: ID, UID,
133133
// Title.
134134
type GetFolderQuery struct {

pkg/services/ngalert/api/api_provisioning_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func TestProvisioningApi(t *testing.T) {
9999
})
100100
})
101101

102-
t.Run("when an unspecified error occurrs", func(t *testing.T) {
102+
t.Run("when an unspecified error occurs", func(t *testing.T) {
103103
t.Run("GET returns 500", func(t *testing.T) {
104104
sut := createProvisioningSrvSut(t)
105105
sut.policies = &fakeFailingNotificationPolicyService{}

pkg/services/ngalert/backtesting/engine_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ func TestEvaluatorTest(t *testing.T) {
334334
})
335335
})
336336

337-
t.Run("when evalution fails", func(t *testing.T) {
337+
t.Run("when evaluation fails", func(t *testing.T) {
338338
expectedError := errors.New("test-error")
339339
evaluator.evalCallback = func(now time.Time) (eval.Results, error) {
340340
return nil, expectedError

pkg/services/ngalert/notifier/redis_peer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ func (p *redisPeer) WaitReady(ctx context.Context) error {
354354
}
355355
}
356356

357-
// Settle is mostly copied from uptream.
357+
// Settle is mostly copied from upstream.
358358
// Ref: https://github.com/prometheus/alertmanager/blob/2888649b473970400c0bd375fdd563486dc80481/cluster/cluster.go#L674-L712
359359
func (p *redisPeer) Settle(ctx context.Context, interval time.Duration) {
360360
const NumOkayRequired = 3

pkg/services/query/query.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import (
2626
const (
2727
HeaderPluginID = "X-Plugin-Id" // can be used for routing
2828
HeaderDatasourceUID = "X-Datasource-Uid" // can be used for routing/ load balancing
29-
HeaderDashboardUID = "X-Dashboard-Uid" // mainly useful for debuging slow queries
30-
HeaderPanelID = "X-Panel-Id" // mainly useful for debuging slow queries
29+
HeaderDashboardUID = "X-Dashboard-Uid" // mainly useful for debugging slow queries
30+
HeaderPanelID = "X-Panel-Id" // mainly useful for debugging slow queries
3131
HeaderQueryGroupID = "X-Query-Group-Id" // mainly useful for finding related queries with query chunking
3232
HeaderFromExpression = "X-Grafana-From-Expr" // used by datasources to identify expression queries
3333
)

pkg/services/store/entity/entity.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/services/store/entity/entity.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ message EntitySearchResult {
311311
// Entity identifier
312312
GRN GRN = 1;
313313

314-
// The current veresion of this entity
314+
// The current version of this entity
315315
string version = 2;
316316

317317
// Content Length

pkg/tsdb/influxdb/response_parser.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -306,13 +306,13 @@ func parseNumber(value interface{}) *float64 {
306306

307307
number, ok := value.(json.Number)
308308
if !ok {
309-
// in the current inmplementation, errors become nils
309+
// in the current implementation, errors become nils
310310
return nil
311311
}
312312

313313
fvalue, err := number.Float64()
314314
if err != nil {
315-
// in the current inmplementation, errors become nils
315+
// in the current implementation, errors become nils
316316
return nil
317317
}
318318

pkg/tsdb/prometheus/querydata/exemplar/sampler_stddev.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (e *StandardDeviationSampler) updateAggregations(val float64) {
4848
e.m2 += delta * delta2
4949
}
5050

51-
// standardDeviation calculates the amount of varation in the data
51+
// standardDeviation calculates the amount of variation in the data
5252
// https://en.wikipedia.org/wiki/Standard_deviation
5353
func (e *StandardDeviationSampler) standardDeviation() float64 {
5454
if e.count < 2 {

public/app/core/logsModel.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ export function logSeriesToLogsModel(logSeries: DataFrame[], queries: DataQuery[
422422
const hasUnescapedContent = !!message.match(/\\n|\\t|\\r/);
423423

424424
// Data sources that set up searchWords on backend use meta.custom.searchWords
425-
// Data sources that set up searchWords trough frontend can use meta.searchWords
425+
// Data sources that set up searchWords through frontend can use meta.searchWords
426426
const searchWords = series.meta?.custom?.searchWords ?? series.meta?.searchWords ?? [];
427427
const entry = hasAnsi ? ansicolor.strip(message) : message;
428428

public/app/plugins/datasource/cloudwatch/query-runner/CloudWatchMetricsQueryRunner.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ describe('CloudWatchMetricsQueryRunner', () => {
487487
});
488488
});
489489

490-
it('should generate the correct query in the case of one multilple template variables', async () => {
490+
it('should generate the correct query in the case of one multiple template variables', async () => {
491491
const { runner, fetchMock, request } = setupMockedMetricsQueryRunner({ variables: [var1, var2, var3, var4] });
492492
const queries: CloudWatchMetricsQuery[] = [
493493
{
@@ -524,7 +524,7 @@ describe('CloudWatchMetricsQueryRunner', () => {
524524
});
525525
});
526526

527-
it('should generate the correct query in the case of multilple multi template variables', async () => {
527+
it('should generate the correct query in the case of multiple multi template variables', async () => {
528528
const { runner, fetchMock, request } = setupMockedMetricsQueryRunner({ variables: [var1, var2, var3, var4] });
529529
const queries: CloudWatchMetricsQuery[] = [
530530
{
@@ -553,7 +553,7 @@ describe('CloudWatchMetricsQueryRunner', () => {
553553
});
554554
});
555555

556-
it('should generate the correct query for multilple template variables, lack scopedVars', async () => {
556+
it('should generate the correct query for multiple template variables, lack scopedVars', async () => {
557557
const { runner, fetchMock, request } = setupMockedMetricsQueryRunner({ variables: [var1, var2, var3, var4] });
558558
const queries: CloudWatchMetricsQuery[] = [
559559
{

public/app/plugins/datasource/elasticsearch/datasource.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ export class ElasticDatasource
729729
const url = this.getMultiSearchUrl();
730730

731731
const termsObservable = config.featureToggles.enableElasticsearchBackendQuerying
732-
? // TODO: This is run trough resource call, but maybe should run trough query
732+
? // TODO: This is run through resource call, but maybe should run through query
733733
from(this.postResourceRequest(url, esQuery))
734734
: this.legacyQueryRunner.request('POST', url, esQuery);
735735

public/app/plugins/datasource/prometheus/datasource.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ export class PrometheusDatasource
508508
trackQuery(response, request, startTime);
509509
})
510510
);
511-
// Run queries trough browser/proxy
511+
// Run queries through browser/proxy
512512
} else {
513513
const start = getPrometheusTime(request.range.from, false);
514514
const end = getPrometheusTime(request.range.to, true);
@@ -1233,15 +1233,15 @@ export class PrometheusDatasource
12331233
return finalQuery;
12341234
}
12351235

1236-
// Used when running queries trough backend
1236+
// Used when running queries through backend
12371237
filterQuery(query: PromQuery): boolean {
12381238
if (query.hide || !query.expr) {
12391239
return false;
12401240
}
12411241
return true;
12421242
}
12431243

1244-
// Used when running queries trough backend
1244+
// Used when running queries through backend
12451245
applyTemplateVariables(target: PromQuery, scopedVars: ScopedVars): Record<string, any> {
12461246
const variables = cloneDeep(scopedVars);
12471247

scripts/drone/steps/lib.star

+1-1
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,7 @@ def publish_grafanacom_step(edition, ver_mode):
13591359
ver_mode: if ver_mode == 'main', pass the DRONE_BUILD_NUMBER environment
13601360
variable as the value for the --build-id option.
13611361
TODO: is this actually used by the grafanacom subcommand? I think it might
1362-
just use the environment varaiable directly.
1362+
just use the environment variable directly.
13631363
13641364
Returns:
13651365
Drone step.

scripts/drone/utils/utils.star

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def pipeline(
3333
edition: used to differentiate the pipeline for enterprise builds.
3434
trigger: a Drone trigger for the pipeline.
3535
steps: the Drone steps for the pipeline.
36-
services: auxilliary services used during the pipeline.
36+
services: auxiliary services used during the pipeline.
3737
Defaults to [].
3838
platform: abstracts platform specific configuration primarily for different Drone behavior on Windows.
3939
Defaults to 'linux'.

0 commit comments

Comments
 (0)