Comments (7)
My personal opinion is that your environment should take care of this. There are infinite amounts of solutions that could be supported, but all of them can be used with little to no extra tooling around Prometheus.
from common.
I agree with @brancz.
from common.
@mdlayher @cagedmantis I believe DigitalOcean relies heavily on syslog in the logging infrastructure. How do you deal with applications which only log to stdout? Anything which would make it impossible to use a wrapper to write the log stream to syslog instead?
@carlpett You added the EventLog back then for the wmi_exporter. I assume the wmi_exporter could just use implement its own logger for that? Do you run Prometheus on Windows as well? Do you see any issues writing to stdout only?
from common.
Pinging @taotetek about the logging question. I imagine we are able to just capture stdout but our internal structured logger has syslog support too, though I'd also rather have an external process be responsible for that.
from common.
@grobie We could implement it ourselves, yes.
We're not running the Prometheus server on Windows in my organisation, but I've heard that there are people elsewhere who do. Since there is no Windows Service support built in to Prometheus (there is an API that needs to be implemented in order to run as a service), anyone who does will need to have implemented some form of wrapper, and that wrapper should be able to handle output redirection. So I do not think that case is a problem.
from common.
From what I could see, our syslog sink was best-effort at best. It comes with its own various config parameters and we made some effort to map log levels etc. to those – but I don't think that was necessarily the only sane way to do it.
from common.
Alright, let's not do this for now.
If someone comes up with critical reason why any of these sinks can only be sanely implemented here and not as a wrapper, please open this issue again and we can discuss.
from common.
Related Issues (20)
- Support environment variable for log level and format
- New release? HOT 3
- Implement changes needed to support UTF-8 metric and label names in Prometheus
- OAuth 2 client_secret should be optional
- LabelSet.String sorts incorrectly HOT 2
- Authorization credentials should be optional
- Update expfmt/text_parse.go to support the new UTF-8 syntax HOT 13
- SigV4 panics on GET requests / requests with nil body
- web: Support jwt/bearer token auth
- Breaking change in 0.48.0 HOT 10
- Version bump in prometheus/common breaks client_golang build HOT 3
- Prometheus failing to reload Probe TLS cert and key from disk HOT 2
- Prevent incompatibility issues between common and dependent repositories HOT 5
- OpenMetrics: _total suffix repeated multiple times HOT 7
- "error encoding and sending metric family" on HTTP/2 HEAD request
- Can client.key be removed as its giving security blocker in security scan? HOT 1
- Support for: INFO type
- Support for configuring ciphersuites in tls_config
- `FmtText` was removed between v0.42.0 and v0.53.0 HOT 1
- Consolidate content type and content encoding functions in prometheus/common HOT 9
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 common.