mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-24 21:24:05 -08:00
Fix spelling (#7512)
Signed-off-by: John Bampton <jbampton@users.noreply.github.com>
This commit is contained in:
parent
74a6959d46
commit
98a69b77d1
|
@ -86,8 +86,8 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
// Initialize metric vectors.
|
// Initialize metric vectors.
|
||||||
servicesRPCDuraion = rpcDuration.WithLabelValues("catalog", "services")
|
servicesRPCDuration = rpcDuration.WithLabelValues("catalog", "services")
|
||||||
serviceRPCDuraion = rpcDuration.WithLabelValues("catalog", "service")
|
serviceRPCDuration = rpcDuration.WithLabelValues("catalog", "service")
|
||||||
|
|
||||||
// DefaultSDConfig is the default Consul SD configuration.
|
// DefaultSDConfig is the default Consul SD configuration.
|
||||||
DefaultSDConfig = SDConfig{
|
DefaultSDConfig = SDConfig{
|
||||||
|
@ -357,7 +357,7 @@ func (d *Discovery) watchServices(ctx context.Context, ch chan<- []*targetgroup.
|
||||||
}
|
}
|
||||||
srvs, meta, err := catalog.Services(opts.WithContext(ctx))
|
srvs, meta, err := catalog.Services(opts.WithContext(ctx))
|
||||||
elapsed := time.Since(t0)
|
elapsed := time.Since(t0)
|
||||||
servicesRPCDuraion.Observe(elapsed.Seconds())
|
servicesRPCDuration.Observe(elapsed.Seconds())
|
||||||
|
|
||||||
// Check the context before in order to exit early.
|
// Check the context before in order to exit early.
|
||||||
select {
|
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))
|
serviceNodes, meta, err := health.ServiceMultipleTags(srv.name, srv.tags, false, opts.WithContext(ctx))
|
||||||
elapsed := time.Since(t0)
|
elapsed := time.Since(t0)
|
||||||
serviceRPCDuraion.Observe(elapsed.Seconds())
|
serviceRPCDuration.Observe(elapsed.Seconds())
|
||||||
|
|
||||||
// Check the context before in order to exit early.
|
// Check the context before in order to exit early.
|
||||||
select {
|
select {
|
||||||
|
|
|
@ -192,7 +192,7 @@ const (
|
||||||
"Service": "test",
|
"Service": "test",
|
||||||
"Tags": ["tag1"],
|
"Tags": ["tag1"],
|
||||||
"Address": "",
|
"Address": "",
|
||||||
"Meta": {"version":"1.0.0","environment":"stagging"},
|
"Meta": {"version":"1.0.0","environment":"staging"},
|
||||||
"Port": 3341,
|
"Port": 3341,
|
||||||
"Weights": {
|
"Weights": {
|
||||||
"Passing": 1,
|
"Passing": 1,
|
||||||
|
|
|
@ -1568,7 +1568,7 @@ with this feature.
|
||||||
url: <string>
|
url: <string>
|
||||||
|
|
||||||
# Name of the remote read config, which if specified must be unique among remote read configs.
|
# 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.
|
# remote read configs.
|
||||||
[ name: <string> ]
|
[ name: <string> ]
|
||||||
|
|
||||||
|
|
|
@ -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)
|
[documentation](https://prometheus.io/docs/operating/configuration/#kubernetes-sd-configurations-kubernetes_sd_config)
|
||||||
and at the [available examples](./../).
|
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:
|
scrape_configs:
|
||||||
|
|
Loading…
Reference in a new issue