Connecting to SAP ASE database #232
-
HI, I added
In my case this looks like
I've tried many different formats. Switching
I set the exporter log level to debug, and I am seeing these logs
Seems similar to this issue: #179 If I update the data_source_name to something like this. (change to localhost from actual host name)
I see the the error
This leads me to believe the connection parameters were correct earlier before. But still, not sure at what point it is going wrong. If anyone has encountered this, or has any tips, it would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
Hi @mandzyu, The fact that you get However, since you get Also, I noticed that Please give it a try, and let me know, I'm happy to help. |
Beta Was this translation helpful? Give feedback.
-
Спасибо Сергей, One thing to note. I first tried using the https://github.com/SAP/go-ase driver. The official go driver for ASE, but any time I ran it, I got It was at this point that I noticed your documentation: I checked dburl, and saw that they are using https://github.com/thda/tds as the go driver for ase. When I added this to the imports, and removed the official driver, I was able to get past the issue of I am starting to think it might be something with this driver: thda/tds. On their documentation, they state: Do you think it could be an issue with using this driver? I'm wondering why dburl would use an unofficial driver that is not receiving maintenance? |
Beta Was this translation helpful? Give feedback.
-
Yes if we can set up a call that would be great. I am in the PST time zone. I see that you are located in Berlin. 8:30 AM would work for me. That should be 5:30 PM for you. Any weekday would work for me as long as I know a day or two in advance. |
Beta Was this translation helpful? Give feedback.
-
Hey @mandzyu, Please checkout this branch On my end, I have two PRs and one open issue:
Cheers, |
Beta Was this translation helpful? Give feedback.
-
Just ran the curl command. Successfully connected to the DB and returning metrics. Thank you so much for the help
|
Beta Was this translation helpful? Give feedback.
Hey @mandzyu,
Please checkout this branch
ase-temp
(link). We have a single driver (go-ase only) for now. So you just need to checkout the branch, and build withmake build
. With-log.level=debug
you should also observe the DSN which is passed to the driver. Be careful, it exposes the password (we'll remove it later). Please let me know if it worked. 👍On my end, I have two PRs and one open issue:
dburl
to treatase
scheme to connect with a new driver;sql_exporter
as a workaround until the go-ase issue is fixed. I might also provide it as a patch for now since it's just 3 lines. We'll see 👍Cheers,
Sergei