Skip to content

Does this exporter support IBM DB2 and Oracle DB? #299

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

You must be logged in to vote

Hi @shingou0120, I'm sorry for the late response - had many things around.

Generally, any database that has a driver in golang, supporting sql/database interface, and supported by dburl can be used by sql_exporter.

Following your case I found next things:

  • Oracle DB is supported. 👍 The suitable driver for Oracle DB is likely https://github.com/sijms/go-ora.

  • As for IBM DB2 - it's a bit tricky. There is a driver written in go, but it's not supported by dburl dependency, so a pull request is needed on the upstream.

These drivers are rather specific, and aren't available out of the box, but it's not difficult to add them (one of them at the moment):

  1. add a driver to one of the maps here
  2. g…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by burningalchemist
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request response pending
3 participants
Converted from issue

This discussion was converted from issue #207 on August 26, 2023 18:44.