Giter Club home page Giter Club logo

Comments (7)

simonwillcock avatar simonwillcock commented on July 17, 2024

For context, I'm trying to get this working with your other great prometheus-sql project!

from sql-agent.

bruth avatar bruth commented on July 17, 2024

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.

simonwillcock avatar simonwillcock commented on July 17, 2024

Awesome, thanks! I should be able to give it a crack tomorrow and report back :)

from sql-agent.

simonwillcock avatar simonwillcock commented on July 17, 2024

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.

bruth avatar bruth commented on July 17, 2024

Thanks for debugging this 😄 Here is the latest build dbhi/sql-agent:2f937ce which includes this mapping.

from sql-agent.

simonwillcock avatar simonwillcock commented on July 17, 2024

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.

bruth avatar bruth commented on July 17, 2024

Great! No problem at all. I will push out releases in a bit.

from sql-agent.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.