Skip to content

Comments

feat: scrape selected jobs via query params#433

Merged
burningalchemist merged 2 commits intomasterfrom
job-select
Jan 29, 2024
Merged

feat: scrape selected jobs via query params#433
burningalchemist merged 2 commits intomasterfrom
job-select

Conversation

@burningalchemist
Copy link
Owner

@burningalchemist burningalchemist commented Jan 27, 2024

resolves #178

We can call the endpoint with the query parameter jobs[] to scrape only selected jobs:

localhost:9399/metrics?jobs[]=dbtargets1&jobs[]=dbtargets2

In Prometheus configuration we can use this syntax under the scrape config:

  ...
  params:
    jobs[]:
      - dbtargets1
      - dbtargets2
  ...

@burningalchemist burningalchemist marked this pull request as ready for review January 28, 2024 13:33
@burningalchemist burningalchemist force-pushed the job-select branch 3 times, most recently from 655c2fd to 25bf848 Compare January 29, 2024 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Call a specific job scrape via a query string

1 participant