Comments (7)
For context, I'm trying to get this working with your other great prometheus-sql project!
from sql-agent.
Hi @simonwillcock! Thanks for the report, it looks like you are correct per the driver documentation. I don't have an SQL Server database to test against, but I patched the code and pushed a new docker image with a commit tag:dbhi/sql-agent:1fcc067
Can you pull it down and give it a try?
from sql-agent.
Awesome, thanks! I should be able to give it a crack tomorrow and report back :)
from sql-agent.
Ok that worked well! Thanks for making that change so quickly.
However, I found a couple of other issues related to the connection parameters that the go-mssqldb lib is expecting compared to the set of parameters that prometheus-sql has documented.
I think the same function above should probably map the documented parameters to those expected by the the go-mssqldb library as follows:
Fortunately your project just passes through all the parameters, so I could just specify the alternate keys in the .yml file, but for consistency it would probably make it easier for future users to map them automatically!
Thanks again for this project and for responding so quickly for the issue above! Let me know if you want me to move this to a new issue or not.
from sql-agent.
Thanks for debugging this 😄 Here is the latest build dbhi/sql-agent:2f937ce
which includes this mapping.
from sql-agent.
Hey bruth, sorry for the delay. I've just given this a run using the default user
and host
parameters in the .yml, and it works a treat! 👍
from sql-agent.
Great! No problem at all. I will push out releases in a bit.
from sql-agent.
Related Issues (16)
- Add support for other encodings in HTTP interface HOT 2
- Support for Cassandra HOT 2
- sql-agent dont respond HOT 7
- Consider replacing connection info handling with xo/dburl package
- Add deadline parameter for setting context deadline in query
- Instrument with prometheus metrics
- Add logging HOT 2
- Add support for Presto
- Add support for Trino
- Status of this project ? HOT 2
- pq: unknown authentication response HOT 6
- Which SSL arguments should I use? HOT 1
- Missing dependecy: lib/pq (?) HOT 2
- Snowflake support HOT 6
- Exits after several minutes HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sql-agent.