forked from lesovsky/pgscv
-
-
Notifications
You must be signed in to change notification settings - Fork 9
Service discovery
Mikhail Grigorev edited this page Jan 27, 2025
·
6 revisions
Starting with pgSCV 0.10.0, it has become possible to split the /metrics
endpoint into a per-service version in the form of /metrics?target=service_name
endpoints, and the /targets
endpoint is also available, which contains a list of all endpoints in json format for setting up automatic endpoint discovery in using VictoriaMetrics (http_sd_configs).
Example configuration for VictoriaMetric:
global:
scrape_interval: 30s
scrape_configs:
- job_name: 'pgscv'
http_sd_configs:
- url: http://X.X.X.X:9890/targets