Skip to content

Multiple DBs #612

Closed Answered by danield72
danield72 asked this question in Q&A
Oct 17, 2024 · 2 comments · 10 replies
Discussion options

You must be logged in to vote

Oh. My. God. You will hate me.

I just realized I had a stray hyphen character in my sql_exporter.yml. Do you see it?

jobs:
  - job_name: db1_job
    collectors: [db1]
    static_configs:
      - targets:
          name: 'target1name'
          data_source_name: 'sqlserver://myusername:mypwd@mysqlserver:1433/?database=db1'
      -
            
  - job_name: db2_job
    collectors: [db2]
    static_configs:
      - target:
          name: 'target2name'
          data_source_name: 'sqlserver://myusername:mypwd@mysqlserver:1433/?database=db2'

I swear I missed that, and it just looked like a spec of dust my on my monitor.

With it gone, the crash is gone. Not only that, but the collection wor…

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
1 reply
@burningalchemist
Comment options

Comment options

You must be logged in to vote
9 replies
@danield72
Comment options

@burningalchemist
Comment options

@danield72
Comment options

@danield72
Comment options

Answer selected by danield72
@burningalchemist
Comment options

@danield72
Comment options

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