Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi targets metrics support #73

Merged
merged 2 commits into from
Jan 21, 2025
Merged

Conversation

dbulashev
Copy link

@dbulashev dbulashev commented Jan 21, 2025

  • added new endpoint /targets
  • added parameter target for /metrics endpoint
  • added param url_prefix to config
  • added env var PGSCV_URL_PREFIX

@CHERTS CHERTS changed the title Multitarget Multi targets metrics support Jan 21, 2025
@CHERTS
Copy link
Owner

CHERTS commented Jan 21, 2025

This is a great and important feature! Thank's @dbulashev

Now you can use automatic endpoint discovery in VictoriaMetric (http_sd_configs) and get data for each service separately.

Example configuration for VictoriaMetric:

global:
  scrape_interval: 30s

scrape_configs:
  - job_name: 'pgscv'
    http_sd_configs:
      - url: http://X.X.X.X:9890/targets

@CHERTS CHERTS merged commit ba9fea6 into CHERTS:master Jan 21, 2025
1 check passed
@CHERTS CHERTS added the enhancement New feature or request label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants