Comments (4)
@bryk @cheld @floreks @zreigz I am thinking about architecture of this implementation and it would be great if you would have any suggestions. Currently I can see two ways how it could be implemented:
- We're using emicklei/go-restful to provide restful webservices, and we can try to use logging provided by it. It needs to be configured in the way, that we want (still not sure about it, what do we need in logs?).
- We can log every request from
apihandler.go
file. It would be easier to configure and messages could be more specific, but it won't be as generic as first solution.
Do you have any tips? Maybe you can see another solution?
from dashboard.
I think it would be good to use what go-restful
provides. We can define for every web service different log function or common for every ws. This example shows it pretty good.
https://github.com/emicklei/go-restful/blob/master/examples/restful-NCSA-logging.go
Only thing to establish is whether we need to log differently every WS or use commong log formatting for all.
from dashboard.
We should have two layers of logging. One generic, which basically logs all HTTP requests, without knowing what they do. This is actually very useful for debugging. It can show method, URI, cookies or headers. The other specific to api methods, which would help in debugging, like log.info('creating replica set %#v', foo)
.
from dashboard.
I cannot help much as I have briefly looked in the backend code yet.
In Java I would recommend not to mix logs during concurrent rest calls and add some kind of session information to each log. So logs are clean and can easily be filtered for a specific session or specific action.
But, in our case everything different so just ignore my comment :)
from dashboard.
Related Issues (20)
- I wish I could see snapshots and snapshot classes on the dashboard.
- unable to save settings in 7.0.0 when installed to a non-default namespace HOT 4
- dashboard loading with 5s and timeout HOT 5
- No fill on workload charts for some languages
- Reactivity bug in web UI login form HOT 2
- Retain CSRF token private key on Helm chart upgrades HOT 3
- Define registries of sub-charts in air-gappend installation HOT 3
- Unable to skip login by adding Authorization header HOT 3
- kubernetes-dashboard-kong not starting HOT 2
- unable to login with "kubectl proxy" way HOT 4
- Exec-ing into pod not working - "Server lost session" HOT 4
- No longer possible to put it behind Basic Authentication HOT 6
- Helm installation broken through dependencies in Chart.yaml HOT 2
- Facing latency issue in kubernetes dashboard in v 7.1.2 HOT 10
- Bearer Token Authentication not responding HOT 8
- Bearer token not working HOT 6
- Add support for prefers-reduced-motion
- Lower the api pod replicas from 3 to 1 HOT 3
- Login page not consistently skipped with bearer token HOT 1
- Unable to login after update to chart 7.1.2 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 dashboard.