Skip to content

Different collector file for each differrent job #348

Closed Answered by burningalchemist
JesusFrontelo asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @JesusFrontelo, collector_files is a global field that defines list of available collectors loaded by sql_exporter. But you can specify different collectors per job like here:

  - job_name: test1
    collectors: [coll1]
    static_configs:
      - targets:
          data1: 'mysql://test:test@localhost:3306/test'
  - job_name: test2
    collectors: [coll2]
    static_configs:
      - targets:
          data1: 'mysql://test:test@localhost:3306/test'

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by burningalchemist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #347 on October 03, 2023 14:33.