Comments (3)
Hey @burningalchemist,
Oooh, Reloader looks like exactly what I want. Though I'm trying the Azure Active Directory authentication approach, as I've asked about in my other open issue, #169. So hopefully I can get that working.
Yeah, it makes sense that you'd have to revisit the codebase and workflow if you introduce a config file watcher. There is probably no point (and probably doesn't make sense) in pursuing this since I'm sure this project has more important priorities. And it really isn't sql_exporter's job to watch for config file changes -- not the purpose of this application.
No worries about being away; you're allowed to have a life outside this software, haha. :)
I assume you're referring to my questions here? Yes, those questions are still relevant. It'd be much appreciated if you could answer them to the best of your ability.
#37 (comment)
from sql_exporter.
@jdstone cool, will do. I'll close this issue for the time being. But I'll take your feedback as a feature request. 👍
from sql_exporter.
Hi @jdstone,
Yeah, you're right. Currently the config file is only read once on startup. What I might suggest as an option is Reloader. It's an additional component, but it solves exactly this type of problems. Please have a look.
At the moment sql_exporter has a straightforward workflow, so introducing a config file watcher requires revisiting the codebase (we need to watch for changes continuously, detect them, drop previously created objects like Exporter->Target->Collector->Query, and recreate them again with a new config, then reconnect).
I'll think about it, but for the time being to unblock you I'd recommend looking at Reloader or any similar solution. Password change is an operational event, so I'd rather make it noticeable for the applications as well.
P.S. I'm sorry, I was away from my computer for some time, so I didn't answer your previous question (regarding jobs
). Is it still relevant?
Kind regards,
Sergei
from sql_exporter.
Related Issues (20)
- Different collector file for each differrent job HOT 1
- Allow to set metric timestamp from query results
- Caching context deadline exceeded result HOT 6
- Context Deadline Exceeded HOT 9
- Support for MSSQL named pipe (np:) and shared memory (lpc:) DSNs HOT 16
- `up` metric to show that database connection was successful HOT 5
- parameter to set log file location HOT 8
- Add custom metrics to expose MSSQL server hostname HOT 1
- can we have the Postgres collector yml file example
- Is it possible to distinguish between the sql exporter process status and the target database? HOT 3
- Scrape each job separately HOT 2
- [helm] Support getting data-source-name from an existing secret HOT 12
- Ignore no rows returned HOT 6
- Better handling of NULL return values in certain cases HOT 6
- Environment variable substitution for DSN's HOT 3
- Cache Mechanism for sql exporter HOT 2
- clickhouse `context deadline exceeded` HOT 1
- Helm chart improvement: additionalContainers HOT 5
- Can it support the collection of cloud databases HOT 1
- unable to use -web.listen.address flag HOT 4
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_exporter.