-
Notifications
You must be signed in to change notification settings - Fork 896
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
Proposal: Dynamic configuration of metrics #4303
Comments
Given the existing metrics Views SDK specification supports the kind of query used in your example, this appears to be a request for dynamic configuration of the SDK for Views. Possibly related, need for a file-format-level encoding of Views: #1773 Possibly related, Jaeger remote sampling configuration mechanism. |
Yes, I would like to define the specification for remote dynamic configuration distribution. I'm not sure if there is currently a feature to automatically parse the request and response parameters to generate metrics.
|
(transferred to specification repository as part of #4284) |
This seems to be in the purview of instrumentation, not the SDK. The metrics SDK isn't concerned with or aware of HTTP requests and responses, or other domain specific concepts. Its more abstract and lower level.
Remote configuration is within the scope of the SDK, and is being (loosely) discussed in the OpAmp and Config SIGs (see listing of SIGs here). But it doesn't really matter that the SDK is remotely configurable if it doesn't contain the feature you're trying to remotely configure. Given the age of this issue, I'm going to close. Please feel free to re-open and clarify how the request would impact the specification. |
This OTEP is to add support for parsing request information to generate metrics.
Some business-related metrics need to be generated by parsing the request information (e.g., request body, header, response body).
For example.
Counting the number of active users per minute.
The configuration could be as follows.
Provide a method for end users to pass in request information.
Parse the request information, record the number of times the user field appears and report it once per minute.
I want this configuration to be stored on the remote server, and the client can listen to changes in the configuration to turn on or off the reporting of metrics.
The end user can enable data collection for a metric at any time for the information in the request.
This could be the number of successful or failed requests, the number of requests with a delay greater than 3ms, or the number of requests with the key equal to
user
.If the open-telemetry group is interested, I can provide a preliminary design and implementation.
The text was updated successfully, but these errors were encountered: