diff --git a/discovery/consul/consul.go b/discovery/consul/consul.go index 684784929..faafc5855 100644 --- a/discovery/consul/consul.go +++ b/discovery/consul/consul.go @@ -86,8 +86,8 @@ var ( ) // Initialize metric vectors. - servicesRPCDuraion = rpcDuration.WithLabelValues("catalog", "services") - serviceRPCDuraion = rpcDuration.WithLabelValues("catalog", "service") + servicesRPCDuration = rpcDuration.WithLabelValues("catalog", "services") + serviceRPCDuration = rpcDuration.WithLabelValues("catalog", "service") // DefaultSDConfig is the default Consul SD configuration. DefaultSDConfig = SDConfig{ @@ -357,7 +357,7 @@ func (d *Discovery) watchServices(ctx context.Context, ch chan<- []*targetgroup. } srvs, meta, err := catalog.Services(opts.WithContext(ctx)) elapsed := time.Since(t0) - servicesRPCDuraion.Observe(elapsed.Seconds()) + servicesRPCDuration.Observe(elapsed.Seconds()) // Check the context before in order to exit early. select { @@ -473,7 +473,7 @@ func (srv *consulService) watch(ctx context.Context, ch chan<- []*targetgroup.Gr serviceNodes, meta, err := health.ServiceMultipleTags(srv.name, srv.tags, false, opts.WithContext(ctx)) elapsed := time.Since(t0) - serviceRPCDuraion.Observe(elapsed.Seconds()) + serviceRPCDuration.Observe(elapsed.Seconds()) // Check the context before in order to exit early. select { diff --git a/discovery/consul/consul_test.go b/discovery/consul/consul_test.go index 368f477e4..5be2bd73b 100644 --- a/discovery/consul/consul_test.go +++ b/discovery/consul/consul_test.go @@ -192,7 +192,7 @@ const ( "Service": "test", "Tags": ["tag1"], "Address": "", - "Meta": {"version":"1.0.0","environment":"stagging"}, + "Meta": {"version":"1.0.0","environment":"staging"}, "Port": 3341, "Weights": { "Passing": 1, diff --git a/docs/configuration/configuration.md b/docs/configuration/configuration.md index d7bf792f9..e2a7ba522 100644 --- a/docs/configuration/configuration.md +++ b/docs/configuration/configuration.md @@ -1568,7 +1568,7 @@ with this feature. url: # Name of the remote read config, which if specified must be unique among remote read configs. -# The name will be used in metrics and logging in place of a generated value to help users distiguish between +# The name will be used in metrics and logging in place of a generated value to help users distinguish between # remote read configs. [ name: ] diff --git a/documentation/examples/kubernetes-rabbitmq/README.md b/documentation/examples/kubernetes-rabbitmq/README.md index cc8df0361..99fa8cc8a 100644 --- a/documentation/examples/kubernetes-rabbitmq/README.md +++ b/documentation/examples/kubernetes-rabbitmq/README.md @@ -15,7 +15,7 @@ For more details on how to use Kubernetes service discovery take a look at the [documentation](https://prometheus.io/docs/operating/configuration/#kubernetes-sd-configurations-kubernetes_sd_config) and at the [available examples](./../). -After you have gotten Kubernetes service discovery up and running, add the following scrape_configs to promethues.yml. +After you have gotten Kubernetes service discovery up and running, add the following scrape_configs to prometheus.yml. ``` scrape_configs: