diff --git a/pkg/metrics/meter.go b/pkg/metrics/meter.go
index 8744a5cd040..265bff99cb6 100644
--- a/pkg/metrics/meter.go
+++ b/pkg/metrics/meter.go
@@ -124,7 +124,7 @@ func (m *StandardMeter) Count() int64 {
return count
}
-// Mark records the occurance of n events.
+// Mark records the occurrence of n events.
func (m *StandardMeter) Mark(n int64) {
m.lock.Lock()
defer m.lock.Unlock()
diff --git a/pkg/services/alerting/extractor.go b/pkg/services/alerting/extractor.go
index 28a6b8c61a0..7f14e195799 100644
--- a/pkg/services/alerting/extractor.go
+++ b/pkg/services/alerting/extractor.go
@@ -89,7 +89,7 @@ func (e *DashAlertExtractor) GetAlerts() ([]*m.Alert, error) {
continue
}
- // backward compatability check, can be removed later
+ // backward compatibility check, can be removed later
enabled, hasEnabled := jsonAlert.CheckGet("enabled")
if hasEnabled && enabled.MustBool() == false {
continue
diff --git a/pkg/services/alerting/notifiers/sensu.go b/pkg/services/alerting/notifiers/sensu.go
index 0f2123eb9b8..00661f864b3 100644
--- a/pkg/services/alerting/notifiers/sensu.go
+++ b/pkg/services/alerting/notifiers/sensu.go
@@ -26,7 +26,7 @@ func init() {
Source
-
+
Handler
diff --git a/pkg/services/sqlstore/sqlstore.go b/pkg/services/sqlstore/sqlstore.go
index 848dd884323..7c267517b90 100644
--- a/pkg/services/sqlstore/sqlstore.go
+++ b/pkg/services/sqlstore/sqlstore.go
@@ -199,7 +199,7 @@ func LoadConfig() {
if DbCfg.Type == "sqlite3" {
UseSQLite3 = true
- // only allow one connection as sqlite3 has multi threading issues that casue table locks
+ // only allow one connection as sqlite3 has multi threading issues that cause table locks
// DbCfg.MaxIdleConn = 1
// DbCfg.MaxOpenConn = 1
}
diff --git a/pkg/setting/setting.go b/pkg/setting/setting.go
index 0e1740efdff..9ec995dd96e 100644
--- a/pkg/setting/setting.go
+++ b/pkg/setting/setting.go
@@ -306,7 +306,7 @@ func evalEnvVarExpression(value string) string {
envVar = strings.TrimSuffix(envVar, "}")
envValue := os.Getenv(envVar)
- // if env variable is hostname and it is emtpy use os.Hostname as default
+ // if env variable is hostname and it is empty use os.Hostname as default
if envVar == "HOSTNAME" && envValue == "" {
envValue, _ = os.Hostname()
}
@@ -635,14 +635,14 @@ func LogConfigurationInfo() {
if len(appliedCommandLineProperties) > 0 {
for _, prop := range appliedCommandLineProperties {
- logger.Info("Config overriden from command line", "arg", prop)
+ logger.Info("Config overridden from command line", "arg", prop)
}
}
if len(appliedEnvOverrides) > 0 {
text.WriteString("\tEnvironment variables used:\n")
for _, prop := range appliedEnvOverrides {
- logger.Info("Config overriden from Environment variable", "var", prop)
+ logger.Info("Config overridden from Environment variable", "var", prop)
}
}
diff --git a/pkg/setting/setting_test.go b/pkg/setting/setting_test.go
index 586cd8ff61d..b213c2795af 100644
--- a/pkg/setting/setting_test.go
+++ b/pkg/setting/setting_test.go
@@ -73,7 +73,7 @@ func TestLoadingSettings(t *testing.T) {
So(Domain, ShouldEqual, "test2")
})
- Convey("Defaults can be overriden in specified config file", func() {
+ Convey("Defaults can be overridden in specified config file", func() {
NewConfigContext(&CommandLineArgs{
HomePath: "../../",
Config: filepath.Join(HomePath, "tests/config-files/override.ini"),
@@ -103,7 +103,7 @@ func TestLoadingSettings(t *testing.T) {
So(DataPath, ShouldEqual, "/tmp/env_override")
})
- Convey("instance_name default to hostname even if hostname env is emtpy", func() {
+ Convey("instance_name default to hostname even if hostname env is empty", func() {
NewConfigContext(&CommandLineArgs{
HomePath: "../../",
})