mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-20 07:19:17 +01:00
update wiki pages
parent
6f46942e46
commit
29618f9c95
@ -204,23 +204,23 @@ The following meta labels are available on discovered targets during [relabeling
|
||||
|
||||
The list of discovered Consul targets is refreshed at the interval, which can be configured via `-promscrape.consulSDCheckInterval` command-line flag.
|
||||
|
||||
If you have performance issues with consul_sd_configs on a large cluster, then consider using [consulagent_sd_configs](#consulagent_sd_configs) instead.
|
||||
If you have performance issues with `consul_sd_configs` on a large cluster, then consider using [consulagent_sd_configs](#consulagent_sd_configs) instead.
|
||||
|
||||
## consulagent_sd_configs
|
||||
|
||||
Consul Agent SD configuration allows retrieving scrape targets from [Consul's Agent API](https://developer.hashicorp.com/consul/api-docs/agent/service).
|
||||
When using the Agent API, each running vmagent will only get services registered in the local Consul Agent running on the same node when discovering new targets.
|
||||
It's suitable for huge clusters for which using the [Catalog API](https://developer.hashicorp.com/consul/api-docs/catalog#list-services) would be too slow or resource intensive,
|
||||
in other cases we recommend to use [consul_sd_configs](#consul_sd_configs).
|
||||
Consul Agent SD configuration allows retrieving scrape targets from [Consul Agent API](https://developer.hashicorp.com/consul/api-docs/agent/service).
|
||||
When using the Agent API, only services registered in the locally running Consul Agent are discovered.
|
||||
It is suitable for huge clusters for which using the [Catalog API](https://developer.hashicorp.com/consul/api-docs/catalog#list-services) would be too slow or resource intensive,
|
||||
in other cases it is recommended to use [consul_sd_configs](#consul_sd_configs).
|
||||
|
||||
Configuration example:
|
||||
|
||||
```yaml
|
||||
scrape_configs:
|
||||
- job_name: consul
|
||||
- job_name: consulagent
|
||||
consulagent_sd_configs:
|
||||
|
||||
# server is an optional Consul agent to connect to. By default localhost:8500 is used
|
||||
# server is an optional Consul Agent to connect to. By default localhost:8500 is used
|
||||
- server: "localhost:8500"
|
||||
|
||||
# token is an optional Consul API token.
|
||||
|
Loading…
Reference in New Issue
Block a user