-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose the tuning options via expvar #1333
Comments
Good idea. the only issue I foresee is that some metrics systems (in particular, Uber's M3) flush all metrics periodically, which results in the single data point in the time series db, thus if you're looking at the last hour of metrics and that point was earlier, you won't get any data. Perhaps instead of metrics (which are meant for time series, even if gauges), these values are better exposed via expvar. |
That would work too. |
@Abhi-khandelwal - would you like to give this a shot? expvar is an interface which helps to instrument and expose metrics from a golang application, you can read more about it here - https://sysdig.com/blog/golang-expvar-custom-metrics/ |
@annanay25, yeah sure. |
I am picking it up. |
@jpkrohling could you please give me a starting point to work on it? |
@chandresh-pancholi take a look at how the components are bootstrapped, like the collector. Look for the bootstrap of the Admin HTTP server, as that's where the metrics should be (including the expvars). As @yurishkuro mentioned, you probably want to use expvars directly, but I think we might have a few places where they are then exposed via Once you know where the code should live, you probably just need to get the relevant Let me know if you get stuck! |
@chandresh-pancholi @yurishkuro is this one "in-progress" or I could pick it up? |
I don't think anyone's working on it, it's been idle since Feb |
Alright, then I'll work on this |
It is best not to rely on the exact list of parameters in this ticket, but look at the up-to-date list at https://www.jaegertracing.io/docs/1.19/cli/. Also, it's ok not to cover every single parameter, as long as we establish a clean framework & nomenclature for adding them. |
Requirement - what kind of business use case are you trying to solve?
It's not possible to check what's the current value for different tuning options, such as:
Proposal - what do you suggest to solve the problem or improve the existing situation?
During the startup process, store values in expvar variables and make sure /debug/expvar is always mounted on the admin port (right now it is only mounted if
--metrics-backend=expvar
is specified).The text was updated successfully, but these errors were encountered: